News for hackers. Stuff that matters.
Re:Rust Is a Scalable Language by leetrout on Tuesday March 28, 2023 @07:49PM (#35349827)
Not Op but once I experienced Go I started writing less Python by choice. Then TypeScript and hopefully soon more Rust.

Typed Python 3 is just awkward enough to not make me enjoy it on small scripts and not accurate enough (yet) to be confident in it on large projects.

I don't use numpy & friends so Python doesn't offer me much any more compared to newer typed languages once I go beyond a simple script.

Re:Rust Is a Scalable Language by culi on Tuesday March 28, 2023 @09:48PM (#35351023)
You should try out deno. TypeScript with zero set up. You can write a .ts file anywhere on your computer and run it with, e.g., `deno run hello-world.ts`. It's my new goto for quick scripts
Re:Rust Is a Scalable Language by leetrout on Tuesday March 28, 2023 @11:12PM (#35351828)
Yea! I actually wanted to teach using Deno back in 2019! It was a stretch topic for the last couple weeks of class in my syllabus but we were too far behind.

Excited to see where it continues to go and we are writing more scripts in TS at work (without Deno, tho).

Re:Rust Is a Scalable Language by prottog on Tuesday March 28, 2023 @07:52PM (#35349849)
> Then TypeScript

Have you done any backend TS? I'm curious what the best practice there is, these days.

Re:Rust Is a Scalable Language by leetrout on Tuesday March 28, 2023 @11:17PM (#35351875)
I am definitely not the person to ask there.

I have been on a couple teams that used Node. Everyone was/is still using express and various ORMs / query builders. Knex and Prisma are what I saw.

Lots of neat stuff with Zod and relatedly EdgeDB.