← Home ← Back to /g/

Thread 105772282

97 posts 16 images /g/
Anonymous No.105772282 [Report] >>105772524 >>105772801 >>105774795 >>105775553 >>105776681 >>105776862 >>105777092 >>105778156 >>105778218 >>105778474 >>105778508 >>105780294 >>105780709 >>105782066
Why does this even exist? How is it better than saarscript?
Anonymous No.105772297 [Report] >>105778401
Ever heard of type system? Maybe ask chat gpt for help you mindless cretin.
Anonymous No.105772524 [Report] >>105772569 >>105772626 >>105775922
>>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
Anonymous No.105772569 [Report] >>105772591
>>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"
Anonymous No.105772591 [Report] >>105772869
>>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.
Anonymous No.105772626 [Report] >>105772692
>>105772524

Dynamic typed languages are for brainlets
Anonymous No.105772692 [Report] >>105773267
>>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.
Anonymous No.105772722 [Report] >>105775862
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
Anonymous No.105772787 [Report]
People who dislike TS are cnile level retarded.
Anonymous No.105772801 [Report]
>>105772282 (OP)
TransitionScript?
Anonymous No.105772804 [Report] >>105773337 >>105785892
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
Anonymous No.105772869 [Report] >>105773159
>>105772591
Your code is likely neither maintainable or useful
Anonymous No.105772940 [Report]
there is no TS interpreter
Anonymous No.105773159 [Report] >>105776931 >>105777295
>>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!
Anonymous No.105773235 [Report]
It's nice for telling what to fix straight away when I have to change some data structure.
Anonymous No.105773267 [Report] >>105773371 >>105773424
>>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*
Anonymous No.105773337 [Report]
>>105772804
It's their to make ur live easier, same with python types, just their to help
Anonymous No.105773371 [Report] >>105773945
>>105773267
>typescript bad
>let's just check the types manually instead
Anonymous No.105773412 [Report] >>105775908 >>105775964
web devs are there any plans on making this language part of the browser or are we still stuck transpiling to js forever?
Anonymous No.105773424 [Report] >>105773945
>>105773267
>compile time is only for performance
holy nocoder
Anonymous No.105773945 [Report] >>105779055
>>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*
Anonymous No.105774303 [Report]
Cowards fear dynamic type.
Anonymous No.105774795 [Report]
>>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 No.105775169 [Report] >>105785901
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.
Anonymous No.105775553 [Report]
>>105772282 (OP)
It's invaluable for large projects
Anonymous No.105775862 [Report] >>105775888
>>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
Anonymous No.105775888 [Report]
>>105775862
midwit cope
Anonymous No.105775908 [Report]
>>105773412
How exactly would a typescript runtime differ from JavaScript runtime?
Anonymous No.105775922 [Report]
>>105772524
This.
Typescript shouldn't exist. If you need types, use a different language.
Anonymous No.105775934 [Report] >>105775956
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
Anonymous No.105775956 [Report] >>105775991
>>105775934
It's only tedious if you are a midwit
Anonymous No.105775964 [Report] >>105775972
>>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
Anonymous No.105775972 [Report]
>>105775964
What exactly would have to be changed in browsers to move from JS to TS?
Anonymous No.105775991 [Report] >>105776005 >>105776563
>>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.
Anonymous No.105776005 [Report] >>105776028
>>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.
Anonymous No.105776028 [Report] >>105776040
>>105776005

Yeah good thing no one writes buggy frontend code anymore, whew
Anonymous No.105776040 [Report] >>105776490
>>105776028
>no one writes buggy frontend code anymore,
Wrong
Anonymous No.105776490 [Report] >>105777715
>>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.
Anonymous No.105776563 [Report] >>105776696
>>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.
Anonymous No.105776681 [Report]
>>105772282 (OP)
I was reluctant for a long time and now I can't imagine writing an app without it.
Anonymous No.105776696 [Report] >>105776787
>>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
Anonymous No.105776775 [Report]
Coffescript called. It's running out of shrimp. Or something.
Anonymous No.105776787 [Report] >>105776802
>>105776696
There is nothing stopping you from using the bloated and slow shit that is jquery grampa.
Anonymous No.105776802 [Report] >>105778100 >>105778170
>>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.
Anonymous No.105776813 [Report] >>105776823
so what is the endgame techstack of jun-july 2025 anno domini?
Anonymous No.105776823 [Report]
>>105776813

Angular + C# + Postgres
Anonymous No.105776862 [Report]
>>105772282 (OP)
We've had languages with type inference since the 80s
Anonymous No.105776931 [Report] >>105777058 >>105777082
>>105773159
>Mine just works
Sorry, TS is for people with jobs and working in big teams, not neets working on their highschool tier website.
Anonymous No.105777058 [Report]
>>105776931
>big teams
>not a jeet

this is a non sequitaar
Anonymous No.105777082 [Report]
>>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 No.105777092 [Report]
>>105772282 (OP)
It's okay but retards abuse the type system and think they're clever.
Anonymous No.105777188 [Report]
why yes, all of my types are :any how could you tell?
Anonymous No.105777295 [Report] >>105779841
>>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.
Anonymous No.105777715 [Report]
>>105776490
That doesn't mean buggy front ends no longer exist
Anonymous No.105778100 [Report]
>>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 No.105778156 [Report] >>105778178 >>105778185 >>105778321
>>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
Anonymous No.105778170 [Report] >>105780108
>>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.
Anonymous No.105778178 [Report]
>>105778156
There are people ITT who believe the exact opposite.
Anonymous No.105778185 [Report] >>105778351
>>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
Anonymous No.105778218 [Report] >>105778456
>>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.
Anonymous No.105778321 [Report]
>>105778156
>we don't write types when we write in english...
We don't write units when we write numbers
Anonymous No.105778351 [Report] >>105778435
>>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.
Anonymous No.105778401 [Report] >>105780776
>>105772297
>Ever heard of type system? Maybe ask chat gpt for help you mindless cretin.
kek! jeetop is BTFO
Anonymous No.105778435 [Report]
>>105778351

genuinely sounds interesting anon can I jeet my way into this like I did with webshit?
Anonymous No.105778456 [Report]
>>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 No.105778474 [Report]
>>105772282 (OP)
Everything should have types. My dream language is TypePython
Anonymous No.105778508 [Report]
>>105772282 (OP)
i like typescript because every time im writing it i think “haha im TYPING here”
Anonymous No.105778961 [Report]
Every time I see someone developing a front end I immediately profile them as an Indian.
Anonymous No.105779032 [Report]
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 No.105779055 [Report] >>105779165
>>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
Anonymous No.105779165 [Report] >>105779284
>>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.
Anonymous No.105779284 [Report] >>105779407
>>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.
Anonymous No.105779407 [Report]
>>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 No.105779625 [Report]
>const x: type | undefined
so goated its got the ECMAscrubs seething
Anonymous No.105779841 [Report] >>105780078
>>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
Anonymous No.105780078 [Report] >>105780489
>>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.
Anonymous No.105780108 [Report]
>>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 No.105780165 [Report]
tanstack + react + typescript + cloudflare. this time it will be different
Anonymous No.105780294 [Report]
>>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 No.105780489 [Report] >>105780539
>>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.
Anonymous No.105780539 [Report] >>105780648
>>105780489
t. honorary pajeet
Anonymous No.105780648 [Report]
>>105780539
Nuh uh
Anonymous No.105780657 [Report] >>105780698
these threads are so braindead. I need to stick to /dpt/ and avoid /g/tards.
Anonymous No.105780698 [Report]
>>105780657
It's a thread about typescript... It was made for the brain dead. Why are you surprised?
Anonymous No.105780709 [Report]
>>105772282 (OP)
Because it's not retarded like ES6
Anonymous No.105780776 [Report]
>>105778401
>quoting the entire post
go back
Anonymous No.105780903 [Report] >>105781594
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.
Anonymous No.105781594 [Report]
>>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 No.105782003 [Report]
>>//ts-nocheck
>>as any
>>modifies tsconfig.json to be as lax as possible
get owned retards, I dab on you
Anonymous No.105782066 [Report] >>105782084
>>105772282 (OP)
It was invented by Microsoft. Think of the implications.
Anonymous No.105782084 [Report] >>105784744
>>105782066
They want to spend less money on maintaining garbage code?
Anonymous No.105784189 [Report]
For me, it’s ts-ignore and typing everything as any
Anonymous No.105784744 [Report] >>105785093
>>105782084
No, they hire jeets for cheap and they're not good enough to write js without training wheels
Anonymous No.105785093 [Report]
>>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 No.105785892 [Report]
>>105772804
>I've been drilled by blavk bvlls without catching aids I don't see why I need condoms
Anonymous No.105785901 [Report]
>>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 No.105787730 [Report]
I checked some projects using react and typescript and it looks absolutely disgusting.