Earlier quoted context omitted.
Turtles all the way down.
Until you're working on a project where the turtles eat the errors... Funny story, that's how I've been describing the issue with how errors have been handled on the project I'm working on, where there are SO many areas where errors are just ignored... so they don't propagate up the chain/stack... doubly annoying in a node environment where it's all supposed to be error first (as in the first thing you think about an…
Ask HN: Is web programming a series of hacks on hacks?
611–620 of 688 posts
Re: Ask HN: Is web programming a series of hacks on hacks?
#612Earlier quoted context omitted.
honestly, in JS/Node, I find it easiest to use a SQL adapter that can handle template strings as parameterized queries... const results = await sql.query` SELECT ... WHERE foo = ${bar} `; if (!results && results.length) return; await myQueue.add(results); Which works unbelievably well... There's not nearly as much need for boilerplate/translation layers in what is already a dynamic environment. I wrote a wrapper for…
Maybe I'm missing something, but that looks like SQL Injection ready to happen.
Re: Ask HN: Is web programming a series of hacks on hacks?
#613Earlier quoted context omitted.
IMO react is a big step backwards. Adding an abstraction layer almost never produces a better result, it just makes things more complicated.
I'm glad you added the qualifier "almost" because, even in low-level C, you're typically sitting on about 4 layers of abstraction: C -> ASM / byte code -> machine code -> primitive CPU operations
All these javascript and css transpilers however, they force you to know the higher level, the lower level and many of the intricacies of how one translates to the other.
Re: Ask HN: Is web programming a series of hacks on hacks?
#614Yes. I feel like we're in the dark ages right now. JavaScript - Dynamically typed, does not scale what so ever. Code written in it becomes 'read only' very quickly. Impossible to refactor. CSS - Also becomes impossible to manage. Who knows if the class you wrote is or isn't being used in HTML or JavaScript somewhere. Same problem, read-only, it only gets bigger and more unmanageable. HTML - At the heart of it, the fo…
If anything, this understates the problem. A modal web application today takes an absolute minimum of five programming languages and three frameworks: * HTML * CSS * JS * A server-side language (eg Python) * SQL And then come the (leaky) abstractions on top of them: * A framework to make JS bearable (eg Angular) * A framework to make server-side bearable (eg Django) * A framework to make CSS bearable (eg Bootstrap) .…
Re: Ask HN: Is web programming a series of hacks on hacks?
#615Earlier quoted context omitted.
You probably do not have the complexity level of these companies either. To me js and css are kind of manageable, a bit the same way as python: use strongly enforced linters forbidding anything ambiguous, do not jump every other day in a new sexy bandwagon, and do not let one line of code commited in without an automated test running it on a ci machine. What I found harder to manage is the young FE devs themselves: f…
> What I found harder to manage is the young FE devs themselves: for them it seems every new project, or every new view in the same project, is the opportunity to use a completely different, new toolset. Oh, and some new syntaxic sugar candies supposed to "save" a couple of keystrokes (which is the worst reason you can find to use a new syntax requiring its own tools). I find this very dangerous, especially when the…
Re: Ask HN: Is web programming a series of hacks on hacks?
#616Earlier quoted context omitted.
The amount of breakages I get using my static site/blog generator has my leaning toward worst ever. If that's any indication then anything actually complicated would be breaking all the time.
This doesn't sound like a NodeJS problem.
Re: Ask HN: Is web programming a series of hacks on hacks?
#617Earlier quoted context omitted.
What huge application are built with javascript? Visual Studio Code is probably the biggest I can think of and I don't know what would be second.
Brave, Slack, Atom, Popcorn Time, I'm sure there are many others. Electron ( http://electron.atom.io/ ) is becoming a popular framework to use.
Slack and atom though? Both are simple client UI's and both have much less bloated alternatives.
Re: Ask HN: Is web programming a series of hacks on hacks?
#618Re: Ask HN: Is web programming a series of hacks on hacks?
#619Earlier quoted context omitted.
Brave, Slack, Atom, Popcorn Time, I'm sure there are many others. Electron ( http://electron.atom.io/ ) is becoming a popular framework to use.
Brave is a web browser, so I'd give electron most of the credit for making that work. Popcorn time I don't know anything about. Slack and atom though? Both are simple client UI's and both have much less bloated alternatives.
Re: Ask HN: Is web programming a series of hacks on hacks?
#620Technical: * Multiple browsers that respond to the same code slightly differently. * Multiple platforms that all need to be supported. * Countless different screen sizes to consider. * Standards that aren't supported across browsers and platforms (and different versions of each in use) * Hundreds of undifferentiated web frameworks that all claim to do the same basic task better than each other. * Thousands of ways to…
What is your source for full stack devs being under paid? Or maybe a better question is what do you consider a low wage for a full stack dev?