Earlier quoted context omitted.
Honestly, it just sounds like you are bad at managing your own software projects and trying to blame it on the web team. If your code had been as easy to understand as you say it is there would have been no need to re-write it. Also, your acknowledgement that it was difficult to maintain makes my point for me.
> If your code had been as easy to understand as you say it > is there would have been no need to re-write it. In theory, only difficult-to-understand and/or difficult-to-maintain code is rewritten. In practice, the definition for “difficult-to-understand” and “difficult-to-maintain” often boil down to whatever the team decides they are familiar with... Or want to be familiar with. I wouldn’t assume there’s any corre…
You probably don't need a JavaScript framework
161–170 of 356 posts
Re: You probably don't need a JavaScript framework
#162Re: You probably don't need a JavaScript framework
#163Earlier quoted context omitted.
There's a very suitable verb for describing this process: "enterprisify" This trend toward "frameworkfulness" probably started with OOP and Java in the mid 90s, and spread from there. Fortunately they seem to be realising the ridiculousness and gradually getting out of that mindset, but unfortunately other developer cultures like JS are now headed in that direction.
Using a JS framework like jQuery or Angular or React isn't even remotely similar to Enterprise Java Beans and all that nonsense. You must be joking.
Re: You probably don't need a JavaScript framework
#164Earlier quoted context omitted.
This may surprise you, but we used to make web pages without JS. I know, it's a shocker!!! But guess what? 1 is irrelevant, 2 is irrelevant, 3 is there by default, 4 is easily solved, and so is 5. Turns out, logic on just the server side is simpler. It may not be as pretty, but please don't assume that your way is the only way.
When were you building web pages without JS? 1994? Server side logic MAY be simpler in SOME cases. Overall applications have become a lot more complex over the last 20 years and your oddated methodologies have been replaced by tested thorough solutions built and used by some of the biggest companies in the world.
Re: You probably don't need a JavaScript framework
#165Re: You probably don't need a JavaScript framework
#166Earlier quoted context omitted.
When were you building web pages without JS? 1994? Server side logic MAY be simpler in SOME cases. Overall applications have become a lot more complex over the last 20 years and your oddated methodologies have been replaced by tested thorough solutions built and used by some of the biggest companies in the world.
Dude. This site has onlylike 6 lines of JavaScript, and that's just to make the arrows disappear after you click them.
HN is not a complex app.
Re: You probably don't need a JavaScript framework
#167Re: You probably don't need a JavaScript framework
#168Earlier quoted context omitted.
I think you're referring to https://bitquabit.com/post/the-more-things-change/ , which compares React to a Win32 WndProc function.
Ah, those were the days! I think I still have that Petzold book somewhere. It had to come with examples, because Stack Overflow didn't exist yet, so that was the only way you could get stuff working in a reasonable amount of time. (Except for when it didn't work in your code for some reason.) I really like the article, but I'm not sure how else you're really going to do it. You could have magic functions that get cal…
* React is generally considered to be "just" the view layer. You feed data in, and based on that data, return what the current output of a given component should be. It does include a per-component state feature, which can easily be sufficient state management for a smaller app.
* Redux is just state management. Put all the write logic into a single "reducer" function structure, and the only way to run any of that reducer logic is to call Redux's "dispatch" function with an object describing the action that took place (such as `{type : "ADD_TODO", text : "Buy Milk"}`. That's where the switch aspect usually comes in, similar to WndProc.
* There's "official" bindings to hook together React and Redux, but also bindings for a bunch of other view libraries as well (Vue, Angular, Mithril, Deku, etc), and all they really do is subscribe to Redux's state change callback and pass the new state along.
For what it's worth, my last year of learning React and Redux has already drastically changed how I think about programming. It's a great first step into functional programming and thinking about things in terms of state and output.
Re: You probably don't need a JavaScript framework
#169Earlier quoted context omitted.
>they buried a relatively simple and elegant messaging system in tons and tons of incoherent, unmaintained, inextensible and incompatible (with websockets at the time) stuff. If all it was was a chat app then angular was over kill. Leveraging frameworks on projects for which they're unnecessary doesn't show that the frameworks are bad, just that the devs are bad. The reality was probably that those "web-boys" have to…
Your comments reflect my feelings at the time. Trying to push a round peg into a square hole. Angular had (and still has) some really useful features and so do many other frameworks/libraries. However, it's the combinatorial complexity of having a dozen of them at the same time, each with their own DSL, coding conventions, community (or lack of it), that makes it overkill. By the way, as the nature of these messaging…
Re: You probably don't need a JavaScript framework
#170One thing many people underestimate is how easy it is to run into XSS, XSRF, XSSI when not using a framework, in particular XSS when using native DOM APIs ("location.href = ..." - pwned. "e.innerHTML = ..." - pwned. "a.href = ..." - pwned. "*.src = ..." - pwned.). You might not need a framework, but you'll need a structured approach to avoid those problems, and frameworks can help a lot with security.