this post was submitted on 29 Apr 2024
321 points (100.0% liked)

Programming

17672 readers
48 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 8 months ago (2 children)

Just had to look at it out of curiosity and man, it looks like yet another C+=1. The code samples on Wikipedia contain one of those gaudy for-loops and a ternary, as if that was still peak language design four decades after C got published.

But what I seriously don't get: Why the hell did they develop Go then? That's yet another C+=1, with even some design similarities to Dart, e.g. it's garbage-collected but compiles to machine code.
Like, yeah, it wouldn't be the first time that different teams develop competing products at Google, but what kind of culture leads to there even being demand for two C+=1s?

[–] [email protected] 4 points 8 months ago (1 children)

I can’t get enough of JSX (React) markup syntax personally, it’s just too simple and efficient that I don’t want to learn anything else ;)

To be fair, Go is very different from Dart and if they look like C it’s because they try to give you the abstraction with the memory safety which is pretty great.

But yeah Google is kinda the developer of useless languages. Even if Go is a banger of a technology

[–] [email protected] 3 points 8 months ago (1 children)

If you have the freedom try Typescript.

The tsx files are almost identical to jsx except for the need to define the field types your ingesting.

While thats a little extra work, it allows Visual Studio Code to perform deeper analysis and provide much more helpful contextual hints.

I grew to love JSX and tried TSX out of interest and you couldn't convince to go back to pure JS

[–] [email protected] 2 points 8 months ago

TSX Code

I actually use it in all of my projects it’s so delightful lol!

[–] [email protected] 4 points 8 months ago

Dart has all the modern bell and whistles and bullshit syntax too, the Wikipedia samples hardly do it justice