Hacker Newsnew | past | comments | ask | show | jobs | submit | kosmotaur's commentslogin

> I get that. But I still draw a line. When it comes to front-end development, that line is for me to stay as close as I can to raw HTML, CSS, and JavaScript. After all, that’s what users are going to get in their browsers.

No it’s not. They will get shown a collection of pixels, a bunch of which will occupy coordinates (in terms of an abstraction that holds the following promise) such that if the mouse cursor (which is yet another abstraction) matches those coordinates, a routine derived from a script language (give me an A!) will be executed mutating the DOM (give me a B!) which is built on top of more abstractions than it would take to give me the remaining S.T.R.A.C.T.I.O.N. three times over. Three might be incorrect, just trying to abstract away so that I don’t end up dumping every book on computers in this comment.

Ignorance at a not so fine level. Reads like “I’ve established myself confidently in the R.A.C. band, therefore anything that comes after is yucky yucky”.


Please make your substantive points without calling names, shallow dismissals, or swipes.

This is in the site guidelines: https://news.ycombinator.com/newsguidelines.html.


what's HA?


Home Assistant https://www.home-assistant.io/

It's a quite powerful tool to integrate a variety of different smart home devices into one location and share them between ecosystems.

I have a wifi thermostat that requires a dedicated app and does not allow for Apple Home integration. With Home Assistant I installed an integration for that thermostat, then shared it with the Apple Home bridge (also an integration) and quickly was able to allow my iphone/automations etc, to modify the thermostat. And that's only scratching the surface and something that took a few minutes.


> copypaste is a friend of readable and mantainable specs

Another generic statement: copypaste (as I understand you mean the opposite of extracting common code) between specs goes against single responsibility. Rather than `setupUser()` you open a connection, create a user fixture, write it to the db, and then paste that across all the specs. Doing quite a lot.

I can imagine a spec with let's say 20 cases. Arrangement of each takes about 6 lines to load something, change some state the test subject depends on, the usual stuff, like in the above example.

A week from now, 10 cases need an extra line of setup, which you dutifully paste across the specs which require them. You put it somewhere in the middle, as it needs an id from the first step of 6.

This happens once or twice. The commonality of the original 6 copy pasted all over the place is hashed up, interspersed with calls specific to each test. The linking factor between those 6 lines is now obscured and requiring careful analysis if only those 6 need to change.

This can be avoided if you extract the common bits out early on. Rule of three is your friend if you don't want to rush it.


625k a year? Doing what exactly? Good for you, but I have never seen a spec with even a third of that salary. Or is it that it's only FAANG who's paying that big?


Stock options - it's mentioned in the article.


What proportion that must have been compared to the base! Even if it was 60% the base is still mind blowing.



Never set foot in SV nor in the States, but from half a world away it does seem that that figure (i.e. ~600k) for total yearly comp at a FAANG company, given OP's experience, is in the general ballpark, so to speak.


Closer to ~30% base. The big money comes from stock comp, not salary.


He's at Amazon, so the base salary doesn't exceed 185k (and probably 160k).


https://www.levels.fyi is a good resource for learning about this.


Equal Experts UK replaced me with a cheaper offshore contractor


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: