Live data from Hacker News

Write code for the web

mrmr.io

361–364 of 364 posts

Re: Write code for the web

#361

Having been in apps for the past 10 years I am not incredibly motivated to build for the web. PWA works, has local storage, and best of all no 30% profit sharing!

Isn't building PWAs building for the web?

Yes you're right! I said "not" but I meant "now. Had to think about that for a second.

Re: Write code for the web

#362

Earlier quoted context omitted.

I just wish Web wasn't such a frustrating development experience. While it has improved leaps and bounds in the last decade, I still find it to be suboptimal when compared to native offerings. Most of that frustration comes down to tooling and more specifically TypeScript. I'm not sure how to succinctly express my pain here but I have found generally that I wrestle with the type system in TypeScript far more than nat…

Keep your business logic on the server and use whatever language you want. I stick to vanilla JS and only use it for DOM manipulations. I try and leverage CSS for simple manipulations when I can. I don't go out of my way to, but it can do a lot these days.

Keeping this mindset, I encourage you try liveview in any language of your choice [1]. This approach allows you to handle business logics on the server, and update the screen in browser from the server as well.

[1] https://github.com/liveviews/liveviews

Re: Write code for the web

#363

Earlier quoted context omitted.

Keep your business logic on the server and use whatever language you want. I stick to vanilla JS and only use it for DOM manipulations. I try and leverage CSS for simple manipulations when I can. I don't go out of my way to, but it can do a lot these days.

Keeping this mindset, I encourage you try liveview in any language of your choice [1]. This approach allows you to handle business logics on the server, and update the screen in browser from the server as well. [1] https://github.com/liveviews/liveviews

Ha, I’ve been a Phoenix LiveView zealot from almost day one, thank you much ;) <3

Re: Write code for the web

#364

Earlier quoted context omitted.

I think you’re making my case for me. All of that seems easy and straightforward to you, but not to me. It’s worth noting that I struggle similarly with C++ and Rust. I just think the syntax is harder to read than a Java or a C# or a Python.

Jeez, Java is a nightmare! And I’m not a fan of Python either. I think we’ll just have to agree to differ…

I agree that Java isn’t pleasant to work in- but not because of the syntax. It’s everything else, like the JVM, Oracle’s shenanigans with licensing, etc.
Post reply on HN