Thread 105772282 - /g/ [Archived: 677 hours ago]

Anonymous
7/2/2025, 3:34:08 AM No.105772282
Typescript.svg
Typescript.svg
md5: 6132b2aa86ae1209a60583662613eeb9๐Ÿ”
Why does this even exist? How is it better than saarscript?
Replies: >>105772524 >>105772801 >>105774795 >>105775553 >>105776681 >>105776862 >>105777092 >>105778156 >>105778218 >>105778474 >>105778508 >>105780294 >>105780709 >>105782066
Anonymous
7/2/2025, 3:35:57 AM No.105772297
Ever heard of type system? Maybe ask chat gpt for help you mindless cretin.
Replies: >>105778401
Anonymous
7/2/2025, 4:17:23 AM No.105772524
>>105772282 (OP)
It's for low IQ people that can't write in JS without breaking shit.

>create dynamically typed language so people can build fast and easy
>create a statically typed wrapper so they can't

Fuck you trannyscript faggots
Replies: >>105772569 >>105772626 >>105775922
Anonymous
7/2/2025, 4:25:20 AM No.105772569
>>105772524
Its the opposite. Javascript is for saarboys who don't give a FUCK what type anything is and just wrap everything in a try catch and the only tests in the codebase are "does it compile"
Replies: >>105772591
Anonymous
7/2/2025, 4:29:35 AM No.105772591
>>105772569
Yeah okay enjoy wasting your time compiling and tinkering with little irrelevant ts errors.

>tests
Another big time waster that only exists for retards that can't write code without breaking shit.
Replies: >>105772869
Anonymous
7/2/2025, 4:35:09 AM No.105772626
>>105772524

Dynamic typed languages are for brainlets
Replies: >>105772692
Anonymous
7/2/2025, 4:44:53 AM No.105772692
>>105772626
You're not entirely wrong, but typescript is like training wheels for the brainlets that are too brainlet to successfully use javascript. If you need a statically typed language for whatever you're doing, then pick a better language altogether.
Replies: >>105773267
Anonymous
7/2/2025, 4:50:53 AM No.105772722
All the retards I know that love typescript are the same ones that fall for every tech meme such as:

-AI agents that produce bad slop
-Rust, but they don't even know it
-Idempotency where it doesn't belong because they just learned that word
Replies: >>105775862
Anonymous
7/2/2025, 5:07:20 AM No.105772787
People who dislike TS are cnile level retarded.
Anonymous
7/2/2025, 5:11:32 AM No.105772801
>>105772282 (OP)
TransitionScript?
Anonymous
7/2/2025, 5:12:21 AM No.105772804
I've written extremely complex web apps with JS and have never once ran into an issue that TS would solve. I can't imagine being so retarded as to need a crutch when using JS, it's already just about the easiest programming language in the world
Replies: >>105773337 >>105785892
Anonymous
7/2/2025, 5:25:53 AM No.105772869
>>105772591
Your code is likely neither maintainable or useful
Replies: >>105773159
Anonymous
7/2/2025, 5:41:29 AM No.105772940
there is no TS interpreter
Anonymous
7/2/2025, 6:23:46 AM No.105773159
>>105772869
Wrong. Mine just works while you spend forever writing yours because you don't know what the fuck you're doing without your training wheels. I'm bowling fast strikes while you push the ball slowly into your little kid bumpers. Grow up!
Replies: >>105776931 >>105777295
Anonymous
7/2/2025, 6:35:17 AM No.105773235
It's nice for telling what to fix straight away when I have to change some data structure.
Anonymous
7/2/2025, 6:41:28 AM No.105773267
>>105772692
>typescript retard: AIIIE SAVE ME FROM THESE TYPE ERRORS THAT COULD OCCUR FROM ME
>javascript retard: *drools* *slops in typecheck for infinitesimal performance loss*
Replies: >>105773371 >>105773424
Anonymous
7/2/2025, 6:52:26 AM No.105773337
>>105772804
It's their to make ur live easier, same with python types, just their to help
Anonymous
7/2/2025, 6:58:29 AM No.105773371
1751432281292
1751432281292
md5: 2d85325b6790111c12e11dfd2c1444b4๐Ÿ”
>>105773267
>typescript bad
>let's just check the types manually instead
Replies: >>105773945
Anonymous
7/2/2025, 7:05:57 AM No.105773412
web devs are there any plans on making this language part of the browser or are we still stuck transpiling to js forever?
Replies: >>105775908 >>105775964
Anonymous
7/2/2025, 7:08:56 AM No.105773424
>>105773267
>compile time is only for performance
holy nocoder
Replies: >>105773945
Anonymous
7/2/2025, 8:40:55 AM No.105773945
>>105773371
>>105773424
>typescript retard: AIIIE EVERYTHING MUST BE TYPED, I must BE TOLD HOW TO EVEN CODE WITH JAVASCRIPT
>javascript retard: *drools* *shits singular typecheck into the designated function street if he even cares to do so*
Replies: >>105779055
Anonymous
7/2/2025, 9:39:23 AM No.105774303
Cowards fear dynamic type.
Anonymous
7/2/2025, 11:06:10 AM No.105774795
>>105772282 (OP)
I know something's good when the arguments against it are as retarded as the things ITT. Will test out TS.
Thanks, OP.
Anonymous
7/2/2025, 12:06:31 PM No.105775169
Dart mogs this TS shit hard, but people using TS will never admit this, because they just love their npm shit and slow build shit. Even if Dart didn't exist, JavaScript is good enough for its purposes, but ofc the tranny-hipster cult needs to justify their salaries.
Replies: >>105785901
Anonymous
7/2/2025, 1:01:47 PM No.105775553
>>105772282 (OP)
It's invaluable for large projects
Anonymous
7/2/2025, 1:49:58 PM No.105775862
>>105772722
Lol this is extremely accurate. The only people I see pushing typescript are the midwits that latch onto every bad temporary tech fad because they think it makes them smart. They'll never be smart
Replies: >>105775888
Anonymous
7/2/2025, 1:54:11 PM No.105775888
>>105775862
midwit cope
Anonymous
7/2/2025, 1:56:41 PM No.105775908
>>105773412
How exactly would a typescript runtime differ from JavaScript runtime?
Anonymous
7/2/2025, 1:58:11 PM No.105775922
>>105772524
This.
Typescript shouldn't exist. If you need types, use a different language.
Anonymous
7/2/2025, 2:00:31 PM No.105775934
I get annoyed with it because it makes frontend more tedious and then the end result is still frontend slopware because frontend can only be slop, so why did we ever bother
Replies: >>105775956
Anonymous
7/2/2025, 2:03:20 PM No.105775956
>>105775934
It's only tedious if you are a midwit
Replies: >>105775991
Anonymous
7/2/2025, 2:04:26 PM No.105775964
>>105773412
>spend enormous effort and money to get browsers to move away from js
>force everyone to use turd with a mint leaf on top instead
you might be onto something there
Replies: >>105775972
Anonymous
7/2/2025, 2:05:07 PM No.105775972
>>105775964
What exactly would have to be changed in browsers to move from JS to TS?
Anonymous
7/2/2025, 2:06:37 PM No.105775991
>>105775956

It objectively adds dev time, that makes it tedious. There is no free lunch for having to add typing on top of vanilla JS. You have to create and maintain types throughout your code.
Replies: >>105776005 >>105776563
Anonymous
7/2/2025, 2:08:20 PM No.105776005
>>105775991
If you are a capable programmer you already know what types you will use and typing them out is an insignificant amount of time compared to time you will spent debugging mistakes that will inevitably happen in sufficiently large JavaScript project.
Replies: >>105776028
Anonymous
7/2/2025, 2:10:33 PM No.105776028
>>105776005

Yeah good thing no one writes buggy frontend code anymore, whew
Replies: >>105776040
Anonymous
7/2/2025, 2:11:31 PM No.105776040
>>105776028
>no one writes buggy frontend code anymore,
Wrong
Replies: >>105776490
Anonymous
7/2/2025, 3:06:16 PM No.105776490
>>105776040
I TRANSpiled with babel for years, while we still had platforms that didn't have async yet.

Recently i changed all imports to be compliant with ES6 modules, and now all my backend stuff can be run with "node src/file.js"
The time this saved me is ridiculous.
Things are so easy to test now.
Replies: >>105777715
Anonymous
7/2/2025, 3:15:54 PM No.105776563
>>105775991
In what sense? Types reduce "dev time" in any project of sufficient scale. Once you have dozens of people writing code on a project, contributing thousands of lines each week, you will see that TS is mandatory if you want to push code faster.
Replies: >>105776696
Anonymous
7/2/2025, 3:32:48 PM No.105776681
>>105772282 (OP)
I was reluctant for a long time and now I can't imagine writing an app without it.
Anonymous
7/2/2025, 3:35:03 PM No.105776696
>>105776563

If we're being honest I'm sick of the modern FE world and the massive amount of frameworkist bloat on it leading to shit that is arguably more jumbled and convoluted and buggy than the pure JS/JQuery we were writing 15 years ago
Replies: >>105776787
Anonymous
7/2/2025, 3:46:26 PM No.105776775
Coffescript called. It's running out of shrimp. Or something.
Anonymous
7/2/2025, 3:47:34 PM No.105776787
>>105776696
There is nothing stopping you from using the bloated and slow shit that is jquery grampa.
Replies: >>105776802
Anonymous
7/2/2025, 3:49:35 PM No.105776802
>>105776787

JQuery is quite literally faster than modern frameworks. Adding layers upon layers of abstraction on top of JS doesn't make JS go faster. Pure JS is fastest and the more you depart from it the more overhead you incur. Contrary to popular belief React is painfully slow.
Replies: >>105778100 >>105778170
Anonymous
7/2/2025, 3:50:11 PM No.105776813
so what is the endgame techstack of jun-july 2025 anno domini?
Replies: >>105776823
Anonymous
7/2/2025, 3:51:27 PM No.105776823
>>105776813

Angular + C# + Postgres
Anonymous
7/2/2025, 3:55:55 PM No.105776862
1751370159027995
1751370159027995
md5: c56fb61152ab39250c7216eaa49aacc1๐Ÿ”
>>105772282 (OP)
We've had languages with type inference since the 80s
Anonymous
7/2/2025, 4:04:18 PM No.105776931
>>105773159
>Mine just works
Sorry, TS is for people with jobs and working in big teams, not neets working on their highschool tier website.
Replies: >>105777058 >>105777082
Anonymous
7/2/2025, 4:15:41 PM No.105777058
>>105776931
>big teams
>not a jeet

this is a non sequitaar
Anonymous
7/2/2025, 4:18:17 PM No.105777082
>>105776931
Yeah man, jobs existing solely for the purpose of supporting that shit. It's cool that you make money with it, but let's be clear about something: it's cope snd TS is actually useless.
Anonymous
7/2/2025, 4:19:43 PM No.105777092
1726267517303253
1726267517303253
md5: 1d96fe55f3cb66d767fe85ba0974a8ca๐Ÿ”
>>105772282 (OP)
It's okay but retards abuse the type system and think they're clever.
Anonymous
7/2/2025, 4:28:44 PM No.105777188
why yes, all of my types are :any how could you tell?
Anonymous
7/2/2025, 4:38:11 PM No.105777295
>>105773159
I am guessing you don't have a job, and if you do, then no one consumes the code you write. If I were given 1000 lines of slop and the only guarantee that it works is "Good looking, Perfect for gorgeous looks" I would tell you to fuck off.
Replies: >>105779841
Anonymous
7/2/2025, 5:21:10 PM No.105777715
>>105776490
That doesn't mean buggy front ends no longer exist
Anonymous
7/2/2025, 5:56:17 PM No.105778100
>>105776802
>More code causes more instructions to be ran which takes more time
>The framework is supposed to save on time spent via providing very good code
whoa...
Anonymous
7/2/2025, 6:00:34 PM No.105778156
>>105772282 (OP)
jstards realized that types in programming actually matter to the programmer, typical websharter retardation, they aren't real engineer, how could they know it was important, we don't write types when we write in english...
same reason pytards kept reinventing type hint before it was added to the language officially
dynamic typing has done more harm to humanity than capitalism and communism combined, maybe webscripters should be flipping burgers instead of being in front of a computer all day
Replies: >>105778178 >>105778185 >>105778321
Anonymous
7/2/2025, 6:02:03 PM No.105778170
>>105776802
jQuery provides nothing that isn't already in the modern browsers and not even a fraction of React features.
If you were to rewrite typical web app from react to jQuery, you would have to basically implement most of the react yourself.
Replies: >>105780108
Anonymous
7/2/2025, 6:02:51 PM No.105778178
>>105778156
There are people ITT who believe the exact opposite.
Anonymous
7/2/2025, 6:04:02 PM No.105778185
>>105778156
what do "real engineers" even do? everything is webshit. dont pretend you work on nasa code or something failsafe like nuclear code. everything else is webshit
Replies: >>105778351
Anonymous
7/2/2025, 6:06:37 PM No.105778218
>>105772282 (OP)
Honestly I would rather just use Java altogether. Sane syntax and type system and not the retarded poojeet slop that is jeetscript. Also fuck Go. Literal goyimlang designed by kikes to train hordes of H1B jeets.
Replies: >>105778456
Anonymous
7/2/2025, 6:16:48 PM No.105778321
Albert-Einstein-007
Albert-Einstein-007
md5: dbd94806f36188b4442ecdb4b6efe391๐Ÿ”
>>105778156
>we don't write types when we write in english...
We don't write units when we write numbers
Anonymous
7/2/2025, 6:19:52 PM No.105778351
>>105778185
>what do "real engineers" even do?
they write software, duh
>everything is webshit
no, absolutely not.
>dont pretend you work on nasa code or something failsafe like nuclear code
well...
>everything else is webshit
embedded is still mostly C and C++, they're everywhere around you, in fact I would even say taht embedded is the biggest fieldin software engineering, all these devices run on some kind of realtime os or linux executing software written in C or C++ and they're not going anywhere soon.
they not fast enough to run web slop anyway so it will NEVER happen.
webshit overtook corpoware, the same mundane react/restful/orm/proxy/postgre stack that you find everywhere instead of the old Chashtash/sqlserver stack we could find over a decade ago.
it's not because you reinvent the same wheel at every company that it's all there is to programming.
this trash job can be done by non-dev, the stack is simple, the challenges, inexistant, it's really intern-friendly slopware whereas actual software engineering still exist alongside and it's infinitely more interesting and fulfilling.

keep reinventing the wheel if that makes you happy, just know that you're a net negative to society with your slop that barely work and need mare hardware threw at it everywhere to keep up with your new frameworks and shit.
Replies: >>105778435
Anonymous
7/2/2025, 6:25:00 PM No.105778401
>>105772297
>Ever heard of type system? Maybe ask chat gpt for help you mindless cretin.
kek! jeetop is BTFO
Replies: >>105780776
Anonymous
7/2/2025, 6:28:22 PM No.105778435
>>105778351

genuinely sounds interesting anon can I jeet my way into this like I did with webshit?
Anonymous
7/2/2025, 6:30:38 PM No.105778456
>>105778218
>Literal goyimlang designed by kikes to train hordes of H1B jeets.
I'm under the impression that it's easier to fuck up with go than it is with the alternatives
Anonymous
7/2/2025, 6:32:32 PM No.105778474
>>105772282 (OP)
Everything should have types. My dream language is TypePython
Anonymous
7/2/2025, 6:37:06 PM No.105778508
>>105772282 (OP)
i like typescript because every time im writing it i think โ€œhaha im TYPING hereโ€
Anonymous
7/2/2025, 7:22:43 PM No.105778961
Every time I see someone developing a front end I immediately profile them as an Indian.
Anonymous
7/2/2025, 7:29:16 PM No.105779032
angycat
angycat
md5: f1858851a57dfe1b606e671c7c1a76f0๐Ÿ”
I mean, I hate typescript seems like a bot's attempt at making sure people can't test things in their own workflow and the people that would tinker with programming would just choose a different language.

But I mean, I get it...It's type checking. More error control so that if something magically breaks when you're making your own monolith app you can pin down what it is that's broken and it creates a more complete separation of concerns.

However that ruins a pretty big part of what makes Javascript so appealing. very cringe, but what can you do
Anonymous
7/2/2025, 7:31:43 PM No.105779055
1635127528084
1635127528084
md5: fddea1b66cd932142f072c49ffc605a2๐Ÿ”
>>105773945
Hi I'm a front-end developer. Are you working at netflix / discord and running the code through your own tooling pipeline to see if there's performance snags??? Why aren't the other optimization build tools adequate?

What the fuck are you working on with JS that is requiring that level of performance
Replies: >>105779165
Anonymous
7/2/2025, 7:40:50 PM No.105779165
>>105779055
the fucks you talkin about
>performance
in the post you replied to, the typescript will be faster than the JS as its checked early its just going to nag the fuck out of you and waste your time as it effectively functions as a nasty nagging linter, in the JS there is going to be a in code and live typecheck making sure data is proper and not malformed in the fuckin function chain so you don't diarrhea it further in where it can potentially do anything (which is going to normally just be useless screeching in the console)
ultimately, its a adequate descriptor of the trade-off of both.
Replies: >>105779284
Anonymous
7/2/2025, 7:51:19 PM No.105779284
717059287016538153
717059287016538153
md5: 8053e0267df63c2de07edaa6352afd32๐Ÿ”
>>105779165
So raspberry pi / IOT then?

idk man I'm trying to wrap my mind around a use-case for typescript that isn't bizarre / inane chasing flavor of the month trend. I don't usually see a runtime that's that...maladaptive.
Replies: >>105779407
Anonymous
7/2/2025, 8:02:18 PM No.105779407
>>105779284
typescript was pretty much artificially crammed down the asses of anyone using javascript
luckily there was enough resistance to hold it back from any major amounts of damage
the only advantage I can see is just more clear labeling on what you are looking at if someone doesn't want to put in any comments, but its still not worth the annoyance normally.

If you want me to actually propose a improvement to javascript, I'd like them to somehow make macros complete with #define syntax and the ability to cram in code blocks, using objects to do all of that shit always feels weird
Anonymous
7/2/2025, 8:19:11 PM No.105779625
>const x: type | undefined
so goated its got the ECMAscrubs seething
Anonymous
7/2/2025, 8:39:08 PM No.105779841
>>105777295
>good looking
Lol a frontend dev. No wonder you latch onto the latest dumb time wasting craze, it's just what y'all do. Big typescript/react/vue/angular/next/vite guy over here
Replies: >>105780078
Anonymous
7/2/2025, 9:06:05 PM No.105780078
>>105779841
https://github.com/EpicGames/Signup/pull/24?source=post_page1a389d28baff

I mostly write in C family langs, but occasionaly have the pleasure of writing utilities in typeshit and jeetscript for retards like (you). I dislike both equally.

All previous points still stand. You sound like a shit tier dev with untested, unmaintainable and useless code.
Replies: >>105780489
Anonymous
7/2/2025, 9:09:43 PM No.105780108
>>105778170

We aren't going to look back on this React Everything era favorably. It's convoluted dogshit. JQuery spaghetti is somehow more readable and maintainable.
Anonymous
7/2/2025, 9:17:25 PM No.105780165
tanstack + react + typescript + cloudflare. this time it will be different
Anonymous
7/2/2025, 9:29:49 PM No.105780294
>>105772282 (OP)
anything serious is written in typescript, even old big projects get rewritten in typescript, if someone write something in javascript today, it's a massive red flag.

specially that nodejs and deno supports type stripping, and even without that, you can use tsx or other tool.

it's hard to explain to non coders that never worked with anything meaningful, but let's say this: as your codebase grows, it's easier to commit mistakes, typescript prevent many of those issues at compile time.

and i'm not even talking about babel, typescript compiler is a drop-in replacement for babel with all the features that are useful, that alone is a motive to use typescript over javascript.
Anonymous
7/2/2025, 9:51:12 PM No.105780489
>>105780078
Thank you for sharing that, sorry for not getting the reference.

Tests are gay, typescript is gay, you're mega gay. I build quality quickly and that's what dynamic languages are for. I rule. You drool. Try again, idiot.
Replies: >>105780539
Anonymous
7/2/2025, 9:54:34 PM No.105780539
>>105780489
t. honorary pajeet
Replies: >>105780648
Anonymous
7/2/2025, 10:04:13 PM No.105780648
>>105780539
Nuh uh
Anonymous
7/2/2025, 10:05:09 PM No.105780657
these threads are so braindead. I need to stick to /dpt/ and avoid /g/tards.
Replies: >>105780698
Anonymous
7/2/2025, 10:08:15 PM No.105780698
>>105780657
It's a thread about typescript... It was made for the brain dead. Why are you surprised?
Anonymous
7/2/2025, 10:09:40 PM No.105780709
>>105772282 (OP)
Because it's not retarded like ES6
Anonymous
7/2/2025, 10:15:25 PM No.105780776
>>105778401
>quoting the entire post
go back
Anonymous
7/2/2025, 10:27:29 PM No.105780903
Lots of nojob people with very strong opinions on web development itt. Anyone interested in actual web technologies should stay the fuck away from this website. Dunning-Kruger shitshow.
Replies: >>105781594
Anonymous
7/2/2025, 11:40:49 PM No.105781594
>>105780903
/g/ is a bunch of jobless non coders larping, and they can't even larp right since they expose themselves by saying stupid things or asking stupid questions like OP.
Anonymous
7/3/2025, 12:21:14 AM No.105782003
>>//ts-nocheck
>>as any
>>modifies tsconfig.json to be as lax as possible
get owned retards, I dab on you
Anonymous
7/3/2025, 12:29:16 AM No.105782066
>>105772282 (OP)
It was invented by Microsoft. Think of the implications.
Replies: >>105782084
Anonymous
7/3/2025, 12:30:31 AM No.105782084
>>105782066
They want to spend less money on maintaining garbage code?
Replies: >>105784744
Anonymous
7/3/2025, 4:50:29 AM No.105784189
For me, itโ€™s ts-ignore and typing everything as any
Anonymous
7/3/2025, 6:14:05 AM No.105784744
>>105782084
No, they hire jeets for cheap and they're not good enough to write js without training wheels
Replies: >>105785093
Anonymous
7/3/2025, 7:12:28 AM No.105785093
>>105784744
So, they want to spend less money to maintain garbage code. Since you didn't notice the equivalence of the statements then you probably need those training wheels and all the help they can possibly give you.
Anonymous
7/3/2025, 9:26:22 AM No.105785892
>>105772804
>I've been drilled by blavk bvlls without catching aids I don't see why I need condoms
Anonymous
7/3/2025, 9:27:41 AM No.105785901
>>105775169
The thing is dart is an incredibly boring language it doesn't do anything innovative nor is it is a shitlang like JS
Anonymous
7/3/2025, 2:02:25 PM No.105787730
I checked some projects using react and typescript and it looks absolutely disgusting.