News for hackers. Stuff that matters.
Re:EHTML: Front-end development can and should be simple by koehr on Wednesday November 27, 2019 @06:24PM (#21653193)
"Every moment a new JavaScript framework borns here and there, so here is mine." That is what should be written on the page, to be honest. And not even the claim, that it lets you do everything without writing any JavaScript is not true because you simply move your JavaScript into the DOM node attributes. I think this is pretty much a step backwards towards in-page PHP or some XML logic parsing.

Thanks for trying though. The fatigue is real.

Re:EHTML: Front-end development can and should be simple by dragonwriter on Wednesday November 27, 2019 @07:59PM (#21653788)
> "Every moment a new JavaScript framework borns here and there, so here is mine." That is what should be written on the page, to be honest.

It's not, both because it's incoherent English, and because it doesn't tell us what distinguishes this framework within the space of new frameworks.

> I think this is pretty much a step backwards towards in-page PHP or some XML logic parsing.

I'm not sure why programming code embedded in HTML is substantially worse than the reverse (e.g., JSX). We're mixing syntax and concerns either way.

Re:EHTML: Front-end development can and should be simple by pdonis on Wednesday November 27, 2019 @09:05PM (#21654071)
> it doesn't tell us what distinguishes this framework within the space of new frameworks.

Neither does "The main problem with all those frameworks is JavaScript".

Re:EHTML: Front-end development can and should be simple by core-questions on Wednesday November 27, 2019 @06:30PM (#21653232)
> a step backwards towards in-page PHP

In-page PHP is ugly, but it sure let normal people who had gotten comfortable with serving static HTML make dynamic web pages quickly. It's also highly performant.

Re:EHTML: Front-end development can and should be simple by aylmao on Wednesday November 27, 2019 @06:43PM (#21653301)
Lee Bryon had a fantastic talk about this during the last React Conf, check it out [1]. He talks about the cyclic nature of programming paradigms, and how we might actually be "going back to PHP" and that might not necessarily be a bad thing.

PHP does after all have a straightforward mental model and expressive syntax, but now we have learned to build better (more secure, more resilient, performant, better architected, etc) web apps. IMO very worth a watch.

[1]: https://www.youtube.com/watch?v=vG8WpLr6y_U

Re:EHTML: Front-end development can and should be simple by bhhaskin on Thursday November 28, 2019 @12:59AM (#21654950)
I would argue that we have never left PHP. WordPress powers 34% of the web. It's fast and flexible, and modern PHP is actually a delight to work in. It's also pretty secure. You have to go out of your way to make it insecure. Which is an issue with any programming language.
Re:EHTML: Front-end development can and should be simple by qwerty456127 on Wednesday November 27, 2019 @07:09PM (#21653499)
> In-page PHP is ugly

Why? Although I agree PHP itself is ugly, I always considered this particular part beautiful and alone worth tolerating the rest.

Re:EHTML: Front-end development can and should be simple by Aeolun on Wednesday November 27, 2019 @07:18PM (#21653563)
I don’t think there’s anything but in-page PHP. Some files are just skipping the HTML altogether.
Re:EHTML: Front-end development can and should be simple by guseyn on Thursday November 28, 2019 @03:07AM (#21655471)
Re:EHTML: Front-end development can and should be simple by blondin on Wednesday November 27, 2019 @08:19PM (#21653874)
same. author quickly lost me when i found these usual suspects in the repo: .babelrc, Gruntfile.js, package.json, package-lock.json, etc...

the fundamental premise still holds. we need to go back to roots and improve on HTML.

Re:EHTML: Front-end development can and should be simple by guseyn on Thursday November 28, 2019 @03:01AM (#21655437)
This lib allows you not to write js, it's just based on it.
Re:EHTML: Front-end development can and should be simple by moron4hire on Wednesday November 27, 2019 @07:42PM (#21653708)
> The fatigue is real.

Oh, get over yourself. Whatever "fatigue" you are feeling is completely of your own choice. Other people aren't beholden to you for their desire to make things.

I cannot express strongly enough how much I hate comments like this. Go live in a utilitarian dystopia if you hate people making new things so much.

Re:EHTML: Front-end development can and should be simple by brailsafe on Wednesday November 27, 2019 @08:03PM (#21653809)
My feeling on the fatigue—as I imagine theirs is—is not that "making new things" is bad in some way. It's that re-abstracting the same problem in different ways has kind of diminished the novelty of frontend development. Where before we were trying to just do things consistently across browsers and had maybe one or two major libraries or patterns to develop expertise for in the market that solved those problems. Now, to be marketable for jobs, you have to accommodate a fairly fragmented market for the same problem. It's less a matter of fatigue related to "Oh sheesh now we have some stupid way to draw 3D graphics and communicate with Bluetooth devices via JS. When are we gunna stop making new things!?". It's more that "Oh golly, another way to piece components together with JS, HTML, CSS and route the pages together, super excited to re-enter the job market when I don't have production experience with Vue, React, Angular, Svelte, Redux, MobX, Vuex, and maybe others I dunno cuz idc". These aren't necessarily perfectly true statements, and nobody is necessarily forced to do anything, but it's fucking boring to hear about, and boredom leads to fatigue.

That said, it's pointless to comment about and I do share your sentiment that the equally as frequent echo of pessimism isn't worthwhile.

Re:EHTML: Front-end development can and should be simple by moron4hire on Wednesday November 27, 2019 @08:14PM (#21653865)
So you are admitting that your Fear of Missing Out is irrational. You've developed a phobia of new libraries because... why? Because a small portion of other developers who post a lot on the internet are magpies?

Choose your own adventure already.

Re:EHTML: Front-end development can and should be simple by brailsafe on Wednesday November 27, 2019 @08:36PM (#21653957)
I don't personally have a fomo, but I'd certainly argue that it is very much rational and not necessarily a phobia. My impression is that it's just a cynical reaction to a lack of interest derived from lack of diversity in the problem domain. Your reaction would be irrational, perhaps derived from insecurity or feeling that your personal belief has been attacked repeatedly. Would you say that you personally love re-inventing the wheel, and would you prefer to have your viability in the job market depend on variable your knowledge is on the narrow scope of re-inventing the same wheel?
Re:EHTML: Front-end development can and should be simple by JMTQp8lwXL on Wednesday November 27, 2019 @07:49PM (#21653738)
It's not just the parent poster, it's many people. The fatigue is real. If we have solutions today that meet all business needs, why do we new frameworks? Good ideas should stand the test of time. I don't think we've got a real discernible reason for why React or Vue are becoming stale or too rigid.
Re:EHTML: Front-end development can and should be simple by moron4hire on Wednesday November 27, 2019 @08:04PM (#21653816)
Repeating a meme over and over again doesn't make it true, it just makes you a robot.

You choose to look at things like this and feel fatigue. Nobody forced to to look at it. Nobody told you "that's it, start retaining now". You have a fundamental fear of missing out that, instead of addressing the fear and feeling secure in your own choices, you feel necessary to externalize as criticism towards people exercising their own free will.

React existing or not existing or being old or not being old is not a reason for others to not do the work they want to do.

Re:EHTML: Front-end development can and should be simple by tomtheelder on Wednesday November 27, 2019 @08:22PM (#21653882)
I think you've got this a bit backwards. It's not that people _feel_ that they need to retain information on every shiny new thing, it's that they _have actually had_ to retain information on an overwhelming number of new shiny things for professional reasons.

As a consequence, there is a tiredness and skepticism about new things. It's not that people feel that it's necessary to retain, it's that people enjoy learning about new options, but find that their lived experience has given them a resistance to that which they might otherwise enjoy.

They approach new things with interest, but end up frustrated to find more of the same.

Also you can't just tell people to not feel things! That's not how emotions work!

Re:EHTML: Front-end development can and should be simple by moron4hire on Wednesday November 27, 2019 @08:29PM (#21653916)
> it's that they _have actually had_ to retain information on an overwhelming number of new shiny things for professional reasons.

No, they have not. Not any more than the rest of us. Not any more than any other profession.

I really think this whole thing is borne out of Code Camp graduates coming into the job market thinking all they needed was whatever minuscule collection of shell scripting incantations they learned in the Code Camp to get a "Zomg 6-figure++ salary". And if that is all the training you've had, I can easily see how it will feel like it is inadequate (because it is). But the answer is not "keep feeding the inadequate way of learning".

And it's certainly not replying to someone's thread in which they present their hard work with "uuuuugh, woe is meeee".

Re:EHTML: Front-end development can and should be simple by zapzupnz on Wednesday November 27, 2019 @08:57PM (#21654040)
> No, they have not.

Here's an idea: listen to how people feel rather than tell them how they feel.

If people have felt the need to do something and so have done, that's as good as saying they needed to — if sufficiently done en masse. Whether that attitude was justified in the first place doesn't negate the fatigue they may now feel — a feeling they're more than entitled to, even with you saying they're not.