this post was submitted on 16 Jul 2023
659 points (92.3% liked)

Programmer Humor

32571 readers
506 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

No offence

you are viewing a single comment's thread
view the rest of the comments
[–] Valmond@lemmy.ml 6 points 1 year ago (4 children)

Python is cool IMO, got loads of libraries and gets your little app up in notime.

Not for larger projects though.

JavaScript is like the unsafest language I have touched in the last 20 years, yikes!

Still would use it as a web front end instead of python ofc.

[–] Hazzia@discuss.tchncs.de 4 points 1 year ago (1 children)

I've only used python as a bash alternative for scripting, even though I've heard it's capable of more. Can you explain what makes it bad for larger/frontend projects?

[–] jflorez@sh.itjust.works 5 points 1 year ago (1 children)

Before 3.9 the lack of type hints made it a nightmare for large projects. Strong typing is, among other benefits, a way of self documentation and helps IDEs with auto-complete. If I use Python I always use type hints and if I have to use JS sigo with Typescript instead

[–] pazukaza@lemmy.ml 2 points 1 year ago

Python without type hints is torture. I always need to have the fucking docs opened for anything, and if the docs are bad you're screwed, get ready to read the source code. Like fucking hell man, just let me autocomplete this shit...

[–] pazukaza@lemmy.ml 1 points 1 year ago (1 children)

Well, it's not like you have any option. Browsers only run Javascript, right?

[–] Valmond@lemmy.ml 1 points 1 year ago (1 children)

Well you can do it the 'old' way serving front (pages) from the back like PHP did it.

[–] pazukaza@lemmy.ml 1 points 1 year ago

Ah ok, server side rendering with no JS. I mean, server-side rendering is good. But a front with no JS? Idk, the page would feel pretty outdated. I wonder if there modern front-ends with zero js.

What languages did you use 2 decades before?

[–] dwraf_of_ignorance@programming.dev 1 points 1 year ago (1 children)

What languages did you use 2 decades before?

[–] Valmond@lemmy.ml 1 points 1 year ago

Turbo Pascal, Go, assembler and Basic I guess :-D