As long as you already have Node installed, you can install the package with npm i wuht -g.

Once wuht is globally installed on your machine, you can search any reserved JavaScript keyword in the command line by typing wuht followed by the keyword you want to look up, for example: wuht import.

This will print the entire MDN entry for whichever keyword you enter, code snippets and all:

wuht works with all of the official reserved keywords as of ES6, as well as the keywords let, await, and async.

I may try to expand the functionality to include more…

While I was a bootcamp student, no subject more consistently caused angst among the members of my cohort than the Git workflow. We had only touched on the absolute basics of Git in our coursework, and we were all consequently varying degrees of bad at it when it came time to work on projects together. It was almost an inevitability that, during project weeks, each group would at one point or another hopelessly wreck their master branch and have to turn to either Stack Overflow or an instructor for help untangling the mess. What I’m realizing nearly two years after…

There is a good chance this question has occurred to you if you are new to programming (and perhaps even if you aren’t). It seems weird. When we count on our fingers or in our heads, we’re used to counting from 1, yet the first item in an array is at index 0. There is a good reason for this and I didn’t pick up on it until I started working with C++ and began to understand what an array is from the computer’s perspective.

How an array is stored in C++

If you’re coming from JavaScript or another high level language, you’re used to arrays being…

During a recent technical interview I stumbled on a question that looked much simpler than it actually was. My interviewer put the following code up on the screen and asked me what I thought would happen:

for (var i = 1; i < 5; i++) {  setTimeout(() => console.log(i), 0)}

I saw the for loop — albeit with a deprecated var — and thought, okay, great, familiar 101 territory. The setTimeout gave me pause for a moment, but it was only timing out for 0ms. I vaguely remembered somewhere in the back of my head that a 0ms timeout…

A partner and I recently worked on a trail finding application for a Flatiron School project that pulled data for 500 trails within 100 miles of New York City from an API. You could browse the trails or search for specific ones and then visit a show page for each of them that had data from the API, a section where users could leave reviews of a trail or read other users’ reviews, and an embedded Google map that gave an exact location for the trail. …

If you’ve ever worked with Rails, there’s a good chance you’re already somewhat familiar with the form_for , which, as the Ruby Docs define it,

This means that if I have a particular class model, say, Student, I can define an instance variable @student in my students_controller.rb (either or Student.find(params[:id]) if I’m editing an existent one) and pass it to the form in my view:

If you’re new to Ruby programming, there’s a good chance you’re spending a lot of your time googling what methods to use in particular situations and how to apply them syntactically.

This is an inherent part of programming at any level and completely fine. But you may be unaware that many of the answers you’re looking for on Google are built into Ruby and readily available in the command line.

If, for instance, you want to figure out how to use Ruby’s select method, simply type “ri select” into the terminal

and it will return all of the documentation on…

Aaron Smith

Full-stack web developer and Flatiron School Graduate

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store