546
you are viewing a single comment's thread
view the rest of the comments
[-] Lmaydev@programming.dev 12 points 10 months ago* (last edited 10 months ago)

If you are writing small and simple apps it will give you more velocity and much less boiler plate.

As apps grow it becomes harder to keep track of things and can quickly grow into a mess. You then start to need external tools to give you the features of a strong static type system.

Also from a web point of view you don't want the website to crash and burn with every error. JS will power through things like invalid types. Imagine if any error caused the website to just stop.

[-] Johanno@feddit.de 3 points 10 months ago

Si you say I should use python for websites?

[-] Nerd02@lemmy.basedcount.com 14 points 10 months ago

There's no real alternatives to JS "for websites" (meaning on the frontend, the part of your code that gets executed on your client's browser). That's what JS was invented for and what it does best.

I say "no real alternative" because technically we also have WebAssembly, which is a tool that allows you to run code written with any language on the web, but if you indeed are a beginner approaching to web development you should just forget about this for now and stick to JS as you learn.

Of course this doesn't mean that you can't use Python on your backend, your server.

[-] rederick29@sh.itjust.works 6 points 10 months ago

Why should beginners approaching web development stay away from WASM? I've used it a few times to create online demos of software I made in Rust and it was a very simple and painless experience to get it working in a website. I consider myself a beginner and I have not run into any issues with it so far.

[-] CodeBlooded@programming.dev 8 points 10 months ago* (last edited 10 months ago)

WASM is simply further down the rabbit hole for someone who is new to programming (but not someone who’s already a programmer and just doesn’t focus on web dev today). You are likely far less beginner than you think if you’re making decisions like “I’m going to compile my software written in Rust targeting WASM so I can demo it.”

load more comments (1 replies)
load more comments (3 replies)
this post was submitted on 08 Sep 2023
546 points (94.2% liked)

Programmer Humor

18253 readers
1 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS