try/catch introduces new block scopes and interrupt control flow. I find this example very readable, but expanding it into try/catches would make it rather long winded and harder to see the pattern at work as you extend the sequence:
I prefer concision and functional expressiveness because it reduces the surface area for writing buggy code. Much like how using map instead writing a for loop can eliminate out of range index bugs, chaining promises brings useful guarantees about how the code I do write can be interpreted.
Much cleaner. You can go even further by using point-free style:
get().then(set)
It's the try/catch blocks that make async/await truly worse than native promises. I use them sparingly because so often the .then syntax is both clearer and terser.
It’s not about the thrill for everyone. As a motorcyclist myself, I scorn many of the bicyclists I see out on back country roads full of blind corners and hills without a shoulder. In my opinion, it is not safe to have large speed differentials in traffic because it erodes trust in the road and other traffic. If you enjoy two wheels as much as I do, you’ll perfectly enjoy motorcycling without the rush – you’re only as fast as you want to go but at least you’ll always be managing the speed limit. I appreciate in other regions there are minimum speed limits, and I’ve heard personal stories about getting ticketed for riding a bicycle slowly on a fast road.
You’re right that deltas are still meaningful in aggregate, but in my experience the actions the users take and their retention rates are different. The ad-blocking users are more valuable in my opinion because they are more likely to be power users and advocates for your software. So looking at a graph of feature usage will not accurately portray the weighted value of each feature, based on changes to retention and virality – the devil is in the details.
In his first paragraph he says he wants to improve the visibility of his forward blinkers, so I feel this critique is undue. Like another poster said, I’m sure his only intention is to use them in an amber hue. Many LEDs on the market happen to support RGB – it’s okay to have a little fun with the available features in development.
The word I would use here instead of “architecture” is “composition.” The article reminds me of William Morris who helped transform design into a conscious, deliberate practice.
Maybe it is similar in that the shadow DOM predicts the state of the actual DOM. In this interpretation dark matter predicts the shape of our universe. It might just be how one should go about simulating a universe..!
Did you actually read the article? I did. The closest to an answer we can get right now is 47% of studied Neanderthal skulls have exostoses, called “surfer’s ear” in modern humans. This and a number of other characteristics humans share with only with aquatic mammalia lead the researchers to justify ancient humans and/or relatives spent large quantities of time in the water. Does your definition of a proposed “aquatic ape” look like a mermaid?
The word the author was looking for when they wrote "explainability" is actually "explicable," as in something that can be explained, and is converse to the more commonly used word "inexplicable."
I think this is a good point of view on the topic, and personally resonates with me. I ditched jQuery at the same time I read “JavaScript: The Good Parts” and after that I realized I was never conceptually building systems, only little puddles of functionality, when I used jQuery for FED.
Fixed that for you. There are better ways to integrate with the DOM than jQuery nowadays. It’s not a good fit unless you’re just trying to tack on a dropdown menu onto a decade old Wordpress theme, IMO.
Setting correct expectations is a generally hard problem. As a designer myself, I try to outline the whole process with my clients before work begins and I emphasize “wireframes” vs “mockups.” It’s worked for me so far, but YMMV.
The advice is sound, IMO. Fine arts teach in this way and it’s an accepted best practice.
The approach is reductionist and aims for solving the right problems first. You can reach for color, typography, etc after you’ve done the legwork to know your design satisfies basic constraints. It’s hard for me to generalize the statement, but learning to design this way (BFA at a well-known fine arts college) had an immediate positive effect on the usability of my apps and readability of print media. I still use the technique today.
The best advice I can offer is: find a hobby that captivates you.
For me, it was motorcycling. It’s not for everyone, but the reason it helped me is that it requires precision control and mental focus. When I got my first motorcycle and went for rides I didn’t have time to think about anything else; driving the bike well and improving my ability took 110% of my attention.
I burned out and tailspun in my job for about a year, but the relaxation I felt after going for a long ride showed me what’s healthy, and I followed that feeling until it got me out of the rut.
I switched to soy milk for about four months, but ultimately went back to regular milk because it has less sugar and is less sweet. I imagine without the sugar it’s not as palatable, but it was a noticeable, negative attribute for me.
The electric motorcycle Harley-Davidson just announced is rumored to be engineered to sound like a jet. I think that’s a lame call out to their “loud pipes save lives” audience, and that other makes (Euro and Japanese especially) will not be interested – there’s very little overlap between those markets despite them all being motorcycles.
Getting around the DOM is really simple: querySelector and querySelectorAll do the work for you.
Accessing properties of a known object is better handled with the selector pattern. I guess you might use BFS to implement a search feature for user-generated content on the fly? I don't think it's relevant to most FEDs roles making CRUD apps with backend searching APIs.
It is explicitly legal in WA, CO, CA and others. Those states have successfully passed laws to this effect. Because the feds don’t/can’t enforce the federal laws prohibiting cannabis on residents of those states, it is for all intents and purposes legal, no scare-quotes required.
The game Armored Core: Formula Front for the PSP has a core mechanic that let’s players “program” their fighting robots in a destructured way. IIRC it’s about adding abilities and maneuvers that the AI can learn to use in combination while battling other AIs. It has a full campaign using this mechanic.
Battling Amiibos in the Super Smash Bros game for the Wii U could be compared to this in a way, too.
It's great you're taking these "external" variables into account. To bandwagon on the environmental costs of car production, it would be cool to see motorcycles added to the lineup. A lot of motorcycles are lax on emissions control so it would be very interesting to see how they compare to hybrids and electrics.