HNHacker News
TopNewBestAskShowJobs

5cott0

506 karma · joined October 9, 2018

submissionscomments
5cott0··on What if we'd had better HTML-in-JS syntax all along?
Is the author claiming that example is any different than JSX?

https://reactjs.org/docs/react-api.html#createelement

In any case I find JSX quite productive only without React or a VDOM.

https://github.com/ScottORLY/jsx-pragma

5cott0··on My Mid-Career Job-Hunt: A Data Point for Job-Seeking Devs
I think most people in SWE jobs by the time they hit their late 20s move to engineering management, product management, or burn out.
5cott0··on Elon Musk: ‘Too many smart people go into finance and law’
> ‘Too many smart people go into finance and law’

This is overly simplistic black and white thinking.

Jane Street has probably done more to popularize functional programming then any shop out there.

Even people who make stuff need effective legal counsel. Even if all they make is memes that get them sued for libel.

5cott0··on Ask HN: What are your favorite developer-efficiency tips?
> Any tips for speed?

If you don't already have one get a good ergonomic keyboard. I recently switched to an ergodox ortholinear layout and it immediately exposed my bad typing habits. The split hand layout saves my neck and shoulders and my working posture has noticeably improved. Took about a month to get back to 80 wpm and don't feel like I've plateaued yet trying to get to 125 wpm.

I had a Judo coach who used to scream "Practice doesn't make perfect. Perfect practice makes perfect." In practice sessions focus on not making any mistakes & using only the correct fingers to strike keys. It can be hard to resist the temptation to start hammering as fast as you can in practice but slowing down once in a while can greatly improve muscle memory.

I use https://www.keybr.com/ to track stats, practice limited or different key sets, it also supports non qwerty layouts for stretching your comfort zone. For touch typing practice it displays a real-time keylogger map so you can auto-correct your finger positioning without looking at the keyboard, if you've got a fancy keyboard (Shout out Arts and Crafts HN) you can hook up the firmware to do the same.

5cott0··on Ask HN: Do you ever go back and admire a piece of code you wrote?
I'm usually like "Who wrote this shit?"
5cott0··on Ask HN: What are your favorite developer-efficiency tips?
Same. Learn to type ~100 words/minute, I was surprised by how much more productive it has made me. Using a touch type trainer for a minute or two can also be a little mental break from writing software for hours.
5cott0··on Rebuilding our tech stack for the new facebook.com
So every React app can be effortlessly refactored to use whatever shiny new latest and greatest architecture abstraction React comes up with?
5cott0··on Rebuilding our tech stack for the new facebook.com
All these things can be true and yet people will still frequently misuse them.
5cott0··on Rebuilding our tech stack for the new facebook.com
>Things like https://twitter.com/wolfiechristl/status/1071473931784212480.... are probably not decided on and implemented by the engineering team but are coming down as a requirement from the top.

I've always suspected that the Div-itis plaguing fb's website is a result of React's dependence on the 𝚘̶𝚟̶𝚎̶𝚛̶𝚞̶𝚜̶𝚎̶ misuse of higher order components.

5cott0··on The iPad's new cursor and keyboard
Article is an editorial content advertisement.
5cott0··on Facebook iOS SDK Remotely Crashing Spotify, TikTok, Pinterest, Winno and More
LeetCode easy
5cott0··on Facebook iOS SDK Remotely Crashing Spotify, TikTok, Pinterest, Winno and More
It has everything to do with it. Software engineers should take care to consider the risks and potential downsides to the shady products they build with that talent that aren't just downtime or tech debt but the larger impact to society itself. Silicon Valley prioritizes technical talent while completely disregarding strength and quality of character.
5cott0··on Facebook iOS SDK Remotely Crashing Spotify, TikTok, Pinterest, Winno and More
So you're saying we can be confident they won't break democracy again?
5cott0··on Apple will host WWDC virtually, beginning June 22
Rumor has it Apple is launching MaskKit, the framework for customizing Animoji surgical masks.
5cott0··on Apple will host WWDC virtually, beginning June 22
SwiftUI documentation.
5cott0··on Apple will host WWDC virtually, beginning June 22
>The only other real benefit of WWDC is the workshops

I get tons of mileage out of WWDC session videos to this day. Oftentimes poorly documented framework apis are only ever explained in any level of detail in the WWDC videos and examples from whatever particular year it was introduced in.

5cott0··on How to correct a team member: avoid my damaging rookie mistakes
How to correct a team member? Hold yourself accountable for your own mistakes first.
5cott0··on Rob Pike interview
> a language designed to be opaque to casual examination

Is this really the case? I thought the prevailing wisdom is that Go was designed to be as simple as possible so newbs can pick it up faster. I find Go to be quite easy to read and follow along with even though I've never written a line of it. Rust on the other hand...

5cott0··on Rules of thumb for a 1x developer
I'm only a 3x developer but I'm still hardcore.
5cott0··on Instead of deleting account, NYT appends ‘1000’ to username and email address
Gives a different meaning to The Privacy Project.
5cott0··on Agile's early evangelists wouldn't mind watching Agile die
Agile is what happens when stakeholders want a car but really need a wheelbarrow & end up with a skateboard that only has 3 wheels. Product re-brands it as a scooter and takes a victory lap & now your company culture is an extremely toxic work environment of implicit & unaccountable power structures.
5cott0··on Shirt Without Stripes
alexa, downvote this.
5cott0··on “A Cold War Every Day” inside Apple's internal tools group
Body shop wars. What gets really interesting is working for a body shop with consultants from 2 other shops on the same team.
5cott0··on Coronavirus and Credibility
There is still a concerted, coordinated effort to signal boost reckless armchair epidemiologists arguing that COVID-19 is "just the flu" and the response is destroying the economy for nothing and/or a prelude to totalitarian police state.
5cott0··on How to manage HTML DOM with vanilla JavaScript only?
Technically the runtime is the browser.

index.js var foo = document.body.getElementById("bar");

That is dom manipulation using vanilla javascript in all modern browsers. I can use webpack, rollup, parcel, or load it in a script tag, it doesn't matter it's still just plain old javascript.

5cott0··on How to manage HTML DOM with vanilla JavaScript only?
I want to give you the benefit of the doubt that you're being sardonic but just in case I meant IE doesn't support ES6 modules so thereby following your narrowly pedantic definition it isn't very vanilla.js
5cott0··on How to manage HTML DOM with vanilla JavaScript only?
That is exactly the point, using a tool like git has absolutely nothing to do with how you interact with the DOM.

Just like using webpack has nothing to do with how you interact with the DOM.

5cott0··on How to manage HTML DOM with vanilla JavaScript only?
Internet Explorer isn't Vanilla.js either.
5cott0··on How to manage HTML DOM with vanilla JavaScript only?
They're both tools. As in webpack is a tool that allows you to use a preprocessor like babel but you don't have to if you don't want to.
5cott0··on How to manage HTML DOM with vanilla JavaScript only?
Is JSONP vanilla.js?
← PreviousPage 6 of 8Next →