New Year’s is filled with resolutions to work out, diet, exercise, and get more organized. This year, I’d like to get my knee in order so I can run again, continue on my vegan endeavors, and keep our apartment decluttered now that we have an infant.
What better way to bring in the holidays than by taking a look at Node’s File System (fs) module!
In React, state must not be mutated directly, or, to say it in a dev-friendly way, state needs to be immutable. We don’t have to know all the inner-workings of React state to follow this guideline. It’s kind of like driving a car — if you want to stop or slow down, there is a set method of pushing the brake pedal, but we don’t really need to know exactly how the brakes work to enjoy the benefits of using the pedal. You wouldn’t pull up the floor board and jam a crowbar into the drive shaft while throttling the hand brake. Nor would you toss an anchor out the window and hope it grabs onto something to stop the car. These methods may actually work, but will produce some strange (and dangerous) side effects and behaviors. Better to use the brakes and not mutate state.
In fifty years when self-driving cars rule the road, what happens when someone needs to manually drive? The autopilot malfunctions and my great-grandson, Weston, must get home to watch the Cavs play the Warriors in game seven of the NBA Finals because modern medicine has figured out a way to keep LeBron and Curry playing at top performance well into their 80s.
According to their website, “Socket.io enables real-time bidirectional event-based communication.” Unpacking this description, it essentially means a browser and server can have live information sent back and forth instantaneously to multiple users. In a chat application, when one user types a message and presses enter, the message travels to the server, and from the server, it’s sent out to all of the other users connected to the socket. I like to think about a socket as a tube from your browser to the server. You shoot information up the tube where it hits the server. At the server, it’s processed and copied, and sent back down all of the other open tubes and handled by the client.
When I was a kid, my best friend’s dad owned a computer company and told us he knew the secret to Fubar. He said he was sworn to secrecy and to this day has never divulged the secret. If you’re not familiar with Fubar, he was a 1980s robot whose name stood for Futuristic Uranium Bio-Atomic Robot. He seemed so life-like and I dreamed of owning one as a kid. Of course, now that I look back at old Fubar videos, it’s pretty clear Fubar was nothing but a big remote control car with a walkie-talkie strapped to his head, probably operated by a guy in a nearby room.
I wanted to clearly present async and promises since the concepts were hard for me to understand at first. Here’s my attempt:
Do me a favor and go to Twitter’s page to sign up for a new account. Now go to your kitchen and put on a pair of oven mitts, sit down at your computer and close one eye. Try to sign up for a new account by only using the tab button but imagine you don’t know the location of the cursor.
We all want to be at our best when we’re writing code. This is why we should all develop a daily meditation practice.
Last week my manager emailed me a link to a web page with over 900 business addresses. It’s always bad when a request starts with “I know it’s a pain, but can you…” He asked me to manually add all of these addresses into an Excel spreadsheet for the company to use for marketing. I figured I had about four to five hours of mind-numbing cutting and pasting ahead of me when a lightbulb went off: Nokogiri.
I’m a creative person. I paint, write, and love to learn. As a kid, I had a million hobbies ranging from airbrushing to juggling. Over the last two years, I’ve been teaching myself French. Printmaking and metal sculpture are on my hobby bucket list.
Welcome to our website! We hope you enjoy the slick image covering the entire screen. See the brightly colored call-to-action button? Yeah, that’s right, the Sunbaked Terracotta one. Go ahead and click it. It takes you to another page with expanded and redundant information. But don’t worry, if you miss the button there are six other ways to access the page with redundant information. And if you’ve completely lost your mind, scroll down and the redundant information is at the bottom.
In 2012, a group of friends and I went to the Browns game in East Rutherford. The Giants destroyed us, putting up 41 points. I know it’s hard to keep track since we’ve had 20 quarterbacks since 1999, but this was the Brandon Weeden era, and at 0-5, we were right on track for another glorious season.
My fiancé, Kristen, and I saw The Lone Bellow at The Bowery Ballroom this week. I came to the realization that I’m getting old when it comes to my eardrum’s capacity for loud noise. The opening act, an electronic retro style band, wailed away on stage, and while the music was good, my ears were not enjoying themselves. At one point I turned to Kristen and said, “Do they have to play it so damn loud?” I thought about my comment shortly after and how a few years ago I would have probably made fun of anyone that said that at a concert.