...

jonkoops

381

Karma

2017-07-07

Created

Recent Activity

  • Ah, yes! The universal and uncheatable LLM! Surely nothing can go wrong.

  • Commented: "Just Use HTML"

    Yes, the backend-for-frontend (BFF) architecture is an excellent fit for this purpose.

  • Commented: "Just Use HTML"

    Just use a generic data structure for your validation rules that you can apply on the front-end, and validate on the back-end. Using JavaScript and doing validation on a server are not mutually exclusive.

  • Commented: "Just Use HTML"

    There absolutely is, this is just extra cruft you need to maintain, and who says that the HTML is universal enough to be used everywhere? This is exactly where a front-end or a backend-for-frontend (BFF) makes sense.

  • Commented: "Just Use HTML"

    These 'just use HTML' shitposts really miss the mark. Every time I see this stuff it is a form with two fields, come on. Realistically, a lot of applications are forms, but they are much more complex. E.g. fields that can be added and removed, conditional logic depending on selected state, and most importantly a non-flat data structure.

    Once you start bolting on all this stuff to HTML, congratulations, you have built a web framework.

    I am not advocating that everyone should start using React. But HTML forms are severely underpowered, and you cannot escape JavaScript at some point. I would love it if forms could consume and POST JSON data, that would make this all a lot easier in a declarative manner.

HackerNews