Live data from Hacker News

How to write a JavaScript-free todo app using just HTML and CSS

mattzeunert.com

21–30 of 49 posts

Re: How to write a JavaScript-free todo app using just HTML and CSS

#22

These exercises will be a lot more fruitful to read through if the author can acknowledge the contrived nature of these attempts and provide a real-world advantageous use case of the techniques outlined

I guess it’s similar to code golfing. It can be interesting to try to get as far as possible with an extreme restriction.

Re: How to write a JavaScript-free todo app using just HTML and CSS

#25

> What doesn’t work: > Persistence after page reload That's not an app. TL;DR: Use styled checkboxes in a form.

Yeah, that would be a pretty basic feature. I get that he is just showing of some ´out-of-the-box' thinking. But really, it is not something practical.

In the end, he made a TODO-Layout, not a TODO-App. Interesting experiment I suppose, if you are into frontend stuff

Re: How to write a JavaScript-free todo app using just HTML and CSS

#26

I know a lot of people hate JavaScript, but is HTML+CSS really a more pleasant programming approach? The "solution" seems worse than the problem.

My guess it's just a hack to show HTML+CSS are enough to do it without a real programming language.

Re: How to write a JavaScript-free todo app using just HTML and CSS

#27
post #17

Earlier quoted context omitted.

I don't think he needs to acknowledge how contrived his solution might be or provide a real-world use case. The article very well could be taken as inspiration to approach problems from different angles.

Oh like pure academic exercises..

Javascript-free golf.

How complex of a web app can you make without using javascript.

Re: How to write a JavaScript-free todo app using just HTML and CSS

#29
post #17

These exercises will be a lot more fruitful to read through if the author can acknowledge the contrived nature of these attempts and provide a real-world advantageous use case of the techniques outlined

I don't think he needs to acknowledge how contrived his solution might be or provide a real-world use case. The article very well could be taken as inspiration to approach problems from different angles.

Indeed. It's clearly not meant to be a realistic or recommended approach. It's a practice of lateral thinking, an experiment to see how much of a problem you can solve with limited set of tools. It's easy to throw in every library, framework, technology at a problem, and they might not be necessary. Sometimes approaching a problem from this unusual perspective can yield good solutions. Often times, it's messy and hacky, but in either case you learn a lot along the way.
Post reply on HN