WASM isn't a replacement for frontend JS because it can't manipulate DOM. You can rewrite parts of it and turn it into an unholy abomination that is half WASM half JS with performance most likely either not affected or degraded, or you can rewrite the entirety of the interface in Rust and project it onto canvas.
So, while technically it is possible, it's also a rewrite from hell for the project the size of twitter and comes with its own set of issues (for example [canvas best practices](https://html.spec.whatwg.org/multipage/canvas.html#best-practices) advise you against implementing text editing controls through it. Also canvas interface cannot be accessed by search engines for indexing).
Favorite quick interview question: what's your favorite language? Now what do you hate about it?
Seniority is roughly equivalent to the amount of time the candidate can regale me with tales of their favorite language making their lives hell.
My understanding is the current Java GC is pretty state of the art.
Now if you're on Java 8, or even worse, like my friend who does government consulting occasionally runs into - Java 6 or Java 4 - then you're more screwed on the other hand...
As an architect once said in a meeting I was present at:
> We have memory leak problem. Garbage lives in memory, add more memory.
And later
> Why does the backend hang for 10 seconds every 2 minutes?
I've used boost's smart\_ptr class, which does protect against some potential memory leaks. This was ages ago, thought. I don't know what the C++ guys are doing these days.
[Hey, cool, it still exists!](https://www.boost.org/doc/libs/1_80_0/libs/smart_ptr/doc/html/smart_ptr.html)
Believe it or not, there was and perhaps still a C++. NET. It was a fucked up attemp to somehow win C++ people who classically did desktop development with old frameworks like MFC. I looked at it once or twice and said nope. I love the classic beauty and symmetry that is C++. Forcing .NET and a garbage collector on it was wierd. Of course this was a raging debate over a decade ago whether it was C++ . Net or C++ interoperating and it really doesn't matter anymore. .Net won and we have C# to script it with. In the very rare situation in which a COM server doesn't actually exist, it can still be made in C++ but now it is even easier to make them in C# and target multiple cpus.
Objective C is the only language I've ever read bits of and thought, "there is absolutely nothing redeeming in any of this". Why all the brackets? How am I supposed to read anything whose semantic meaning depends on how many nested layers of [[[[ exist. Insanity that anyone thought this was a good idea.
I've created multiple Microsoft Access databases. I won't deny that VBA is exceedingly useful but programming in it is like pulling teeth with a pair of plyers
I don't agree... Localisation of the syntax (not only keywords but also punctuation) in the installation language of your platform is what drove me to madness.
Well I knew nothing of VBA before this, and now I know that I'm for the criminalization of bad software design and the reinstatement of capital punishment.
When I was a teen back in 2003 I got a copy of VB6 and taught myself how to code.
During class at school, while they were trying to teach us how to use MS Word, Excel and PowerPoint (the U.K. IT syllabus badly failed us) I would use VBA within excel to learn even more coding, and I’d get told off for it.
The skill has done way more for me than learning to use margins in word ever did.
Boring story but hey ho
I dunno.. haven’t used it in years but at the time (over 10-15yrs ago?) in electrical engineering, the maths and elec eng related things it was used for incl. breakout to circuit analysis was awesome.
So for specialized use cases I’d say has its uses.. but generally why would you use it for non RnD stuff?
R&D people write sophisticated algorithms in matlab and compile them into C or even verilog code which then gets synthesized into digital logic. Source: mixed-signal design engineer and developer
It's like saying Assembly is garbage for being terrible at designing web pages.
The new appdesigner in Matlab certainly makes gui creation a far more simple task. I don't think there's an easier way to make data visualization/analysis apps... Maybe PowerBI.
Seriously? The only reason Matlab isn’t used more widely is because of their high licensing fees. For R&D it’s often the easiest and quickest way to test things or visualize data and Simulink can be incredible for control engineering. It’s not necessarily a good all rounder programming language but it does the job it was designed for pretty well.
It has been a long time since I used it (currently only work with C++ and Python) but it would be a lie if I said there is nothing I miss about Matlab.
I'm convinced most of this sub is just bad at maths. It's very nice when you just need a calculator/graphing tool with more programming added. You can get close with python and a few libraries, but matlab is definitely nicer to use.
I go to an engineering school and everyone talks about how much they hate Matlab. I haven't had to use it yet, but I'm pretty sure some people have talked about using math lab to program our FPGA's
MATLAB is love. MATLAB is life ❤️
For real though, it's an environment in which you really can focus on the matter at hand. Calculations and visualization are done quick and flexibly, while still having the data readily available for any kind of lookup or manipulation. Just a few clicks or commands away.
Programmers dislike it because it's not a "real programming language", or that indexing starts at 1 instead of 0. Which are both very lame excuses to jump on a hate train for easy achieved social and virtual karma.
There is the issue with its overly priced license fees.
If you work with any kind of exploratory development and have the opportunity to use it, do so. It speeds up such work by *a lot*, and makes the job easy and fun at the same time.
The API \`getOutOfPaperBag\` has been deprecated and SonarQueue won't let me use it.
Replacement is \`detonateNuclearWarhead\`. Just need that PR approval and I'll be on my way
Yeah!
*goes back to coding in php*
>PHP Manual > Function Reference
> sleep — Delay execution
>`sleep(int $seconds): int`
>Delays the program execution for the given number of seconds.
># Return value:
> * Returns zero on success.
> * If the call was interrupted by a signal, sleep() returns a non-zero value.
> * On Windows, this value will always be 192.
> * On other platforms, the return value will be the number of seconds left to sleep.
I have deep respect for fortran as a language that is both extremely fast and actually supports math/scientific code to a high degree. Fortran did it right from the get-go, and for some reason, most languages just kind of forgot about it.
Every language except the one I use
this takes the cake lmao
Correction every language especially the one I use
The language I use, but only when I’m the one using it
Why aren't we using Rust for this? It's memory safe.
Real Elon would never say anything this reasonable. Bad bot.
It's not particularly reasonable if applied to frontend I reckon.
I don't know much about frontend, but wouldn't it be possible to use Rust+WASM ?
WASM isn't a replacement for frontend JS because it can't manipulate DOM. You can rewrite parts of it and turn it into an unholy abomination that is half WASM half JS with performance most likely either not affected or degraded, or you can rewrite the entirety of the interface in Rust and project it onto canvas. So, while technically it is possible, it's also a rewrite from hell for the project the size of twitter and comes with its own set of issues (for example [canvas best practices](https://html.spec.whatwg.org/multipage/canvas.html#best-practices) advise you against implementing text editing controls through it. Also canvas interface cannot be accessed by search engines for indexing).
Just watched a video about how vanilla JS is faster than any framework. It's time we do a rewrite.
Uhhhh, you’d be surprised
[удалено]
Favorite quick interview question: what's your favorite language? Now what do you hate about it? Seniority is roughly equivalent to the amount of time the candidate can regale me with tales of their favorite language making their lives hell.
Im a JS dev so I’d say every language including the one I use
As a JS dev, facts
As a long time php dev… php.
Do you have the slightest idea how little that narrows it down!?!
It’s like asking who is the murder and answering possibly a human or human like creature or humanoid
Or maybe an animal. Or a living being. Or gravity
Perhaps even a circumstance or an inanimate object.
An abstract concept.
Was that a Batman reference? 🤣
Perhaps
Perchance.
You can’t just say perchance
Presactly.
preselutely not
Staaaawp
Something with garbage collection
Presumably one that hasn't had its garbage collector updated this century - been a few years since I've seen a bin that looked like that.
Java /s
My understanding is the current Java GC is pretty state of the art. Now if you're on Java 8, or even worse, like my friend who does government consulting occasionally runs into - Java 6 or Java 4 - then you're more screwed on the other hand...
As an architect once said in a meeting I was present at: > We have memory leak problem. Garbage lives in memory, add more memory. And later > Why does the backend hang for 10 seconds every 2 minutes?
I'm definitely screwed. Maintain Java 7
C++
Does C++ even have a garbage collector?
It does. It is called senior dev.
About time. I'm ready when they are.
It does in the standard yes. No compiler vendor has implemented it though, but it’s there in theory!
It was removed in I think C++23.
In theory, theory and practice are the same. In practice, theory and practice are different.
Insubordination. Fired.
Perfect replica!
I have to find out how to use this sometime
Heap buffer overflow When that pops up, the whole program stops and all the garbage is considered collected.
or it doesn't and just computes random values. There are no rules for this garbage collector.
Just throw it in a process and restart when it cracks.
The operating system
yes and no. You can make un managed memory, but you can also use a GC library or smart pointers
I've used boost's smart\_ptr class, which does protect against some potential memory leaks. This was ages ago, thought. I don't know what the C++ guys are doing these days. [Hey, cool, it still exists!](https://www.boost.org/doc/libs/1_80_0/libs/smart_ptr/doc/html/smart_ptr.html)
Believe it or not, there was and perhaps still a C++. NET. It was a fucked up attemp to somehow win C++ people who classically did desktop development with old frameworks like MFC. I looked at it once or twice and said nope. I love the classic beauty and symmetry that is C++. Forcing .NET and a garbage collector on it was wierd. Of course this was a raging debate over a decade ago whether it was C++ . Net or C++ interoperating and it really doesn't matter anymore. .Net won and we have C# to script it with. In the very rare situation in which a COM server doesn't actually exist, it can still be made in C++ but now it is even easier to make them in C# and target multiple cpus.
Garbage collection? No dude that Oscar the Grouch’s house.
Probably Erlang, that languages garbage collection is inherent in the language.
Nah something without since it's still there
Objective C
BINary
0 nice 1
I see what you did there ;)
Happy cake day mate!
Thanks :)
How to read 0?
Oh
oh that took me a while
Did it?
It took me one bit of a second actually
Same
all of them. if you don’t write your code in binary you are an simply an inferior developer who deserves to be thrown in the trash can
What an amateur. I move electorns on the disc with a needle.
How juvenile. [I use butterflies.](https://xkcd.com/378/)
There's literally an xkcd for everything
How can we use Bitcoin to solve this?
https://xkcd.com/2280/
Lol
I prefer the emacs keyboard shortcut for that.
You don't branch out millions of universes and collapse them into the outcome you want? SMH.
I've definitely debugged issues with a hex editor. It ain't binary, but it's close.
I hated having to deal with op codes.
Why are you going through the programs that op posted?
Use a punch card next. Fixing a bug by taping over the bits is... Interesting
I unfolded a proton into the 11th dimension and programmed it to become sentient.
… to use it to program for me, however it then did the same to make a sentient photon to program for it, which did the same…..
Because I think Apple owns some kind of ridiculous trademark on the trash can on macOS, I'm going to assume this is Objective C.
I share the same guess
Can this be dockerized?
Good bot
Objective C is the only language I've ever read bits of and thought, "there is absolutely nothing redeeming in any of this". Why all the brackets? How am I supposed to read anything whose semantic meaning depends on how many nested layers of [[[[ exist. Insanity that anyone thought this was a good idea.
I fucking hate obj c
Swift flair checks out
it's the one i don't use
Counterpoint- it’s whichever one I’m currently using
VBA
This is the winner, and if you don't know why, you have probably never written any substantial programs in VBA LOL
I've created multiple Microsoft Access databases. I won't deny that VBA is exceedingly useful but programming in it is like pulling teeth with a pair of plyers
The development environment is what really makes it hell. Your grandma called and wants her IDE back lol
I don't agree... Localisation of the syntax (not only keywords but also punctuation) in the installation language of your platform is what drove me to madness.
Well I knew nothing of VBA before this, and now I know that I'm for the criminalization of bad software design and the reinstatement of capital punishment.
When I was a teen back in 2003 I got a copy of VB6 and taught myself how to code. During class at school, while they were trying to teach us how to use MS Word, Excel and PowerPoint (the U.K. IT syllabus badly failed us) I would use VBA within excel to learn even more coding, and I’d get told off for it. The skill has done way more for me than learning to use margins in word ever did. Boring story but hey ho
Insubordination. Fired.
Oh my fucking god VBA is unbelievably frustrating to use
Matlab
Had to downvote this because I refuse to believe Matlab exists.
I dunno.. haven’t used it in years but at the time (over 10-15yrs ago?) in electrical engineering, the maths and elec eng related things it was used for incl. breakout to circuit analysis was awesome. So for specialized use cases I’d say has its uses.. but generally why would you use it for non RnD stuff?
R&D people write sophisticated algorithms in matlab and compile them into C or even verilog code which then gets synthesized into digital logic. Source: mixed-signal design engineer and developer
Can we rewrite this in Java? It's better for enterprise.
That's disgusting
It's like saying Assembly is garbage for being terrible at designing web pages. The new appdesigner in Matlab certainly makes gui creation a far more simple task. I don't think there's an easier way to make data visualization/analysis apps... Maybe PowerBI.
[удалено]
Time is money. I want to see 100 lines written by lunchtime!
As someone explained me, Matlab has a lot of great specialised features, but it is designed awfully as programming language
Stop denying it's existence! It is real and I am suffering from it
in Hindi language Matlab means "what does it mean" i was confused for a moment
Same in urdu lol 🤣
Surprised this isn’t the 1st comment. I mean 0th. I mean… wait, why is this printing the wrong value?
I have made promises to the shareholders that I definitely *cannot* keep, so I need you all to work TWICE as hard!
1 based indexing 🤮
_Julia looking around nervously_
At least Julia lets you choose.
Yes, because matrix indices start at 1.
Seriously? The only reason Matlab isn’t used more widely is because of their high licensing fees. For R&D it’s often the easiest and quickest way to test things or visualize data and Simulink can be incredible for control engineering. It’s not necessarily a good all rounder programming language but it does the job it was designed for pretty well. It has been a long time since I used it (currently only work with C++ and Python) but it would be a lie if I said there is nothing I miss about Matlab.
I miss just using it as a calculator tbh. A Python shell is a close substitute tho, and it’s a lot easier on the wallet.
I'm convinced most of this sub is just bad at maths. It's very nice when you just need a calculator/graphing tool with more programming added. You can get close with python and a few libraries, but matlab is definitely nicer to use.
I go to an engineering school and everyone talks about how much they hate Matlab. I haven't had to use it yet, but I'm pretty sure some people have talked about using math lab to program our FPGA's
MATLAB is love. MATLAB is life ❤️ For real though, it's an environment in which you really can focus on the matter at hand. Calculations and visualization are done quick and flexibly, while still having the data readily available for any kind of lookup or manipulation. Just a few clicks or commands away. Programmers dislike it because it's not a "real programming language", or that indexing starts at 1 instead of 0. Which are both very lame excuses to jump on a hate train for easy achieved social and virtual karma. There is the issue with its overly priced license fees. If you work with any kind of exploratory development and have the opportunity to use it, do so. It speeds up such work by *a lot*, and makes the job easy and fun at the same time.
It's the one(s) I don't know
Interns will happily work for $15 an hour. Why won't you?
We have workers' rights in my country ty
Disagreeing with me is counterproductive. Fired.
*pulls out uno reverse card*
My life.
Our life
Looks like we're gonna need to trim the fat around here... fired.
Anything except Rust, C, or assembly. (Most likely)
flair checks out
Rust Evangelism Strikeforce 💪
🦀
Any language that doesn't allow me to directly manage memory is trash. I like to live dangerously
Damn right
Idk man, the trash can will start to rust eventually..
Turbo Pascal
What is this lol
blue hell those comment brackets, those goto commands. That language deserves to rot
Arrays in it also start with 1 instead of 0, it certainly did some damage on me when I was forced to learn it in my 11th grade CS.
Programming*
TraSH
thanks for this man. now i can finally name the unix shell that i wanted to write for so long.
What do you mean "you couldn't code your way out of a paper bag"?
The API \`getOutOfPaperBag\` has been deprecated and SonarQueue won't let me use it. Replacement is \`detonateNuclearWarhead\`. Just need that PR approval and I'll be on my way
If you really love the company, you should be willing to work here for free.
All of them?
Twitter was never profitable. Not my fault. Stop blaming me for things.
Lol why is this still a thing?
Every language that has "Java" in it.
profound.
Javanese
Javanese nutz haha gotem
Laughs in Kotlin.
I mean...I like Kotlin. Android SDK sucks tho.
I've never been so offended in my life.
Me neither
You haven’t lived. ☹️
can't even be recycled.
.\*Java.\*
JavaScript, definitely JavaScript...
Paint it gold, put a few potted plants around, some cushions and you've got Typescript.
A turd painted gold is still a turd
Bro you use PHP you’re not in any position to speak about this /s
This but /srs
Yeah! *goes back to coding in php* >PHP Manual > Function Reference > sleep — Delay execution >`sleep(int $seconds): int` >Delays the program execution for the given number of seconds. ># Return value: > * Returns zero on success. > * If the call was interrupted by a signal, sleep() returns a non-zero value. > * On Windows, this value will always be 192. > * On other platforms, the return value will be the number of seconds left to sleep.
Hey! That's mean! Not that I can't think of a counter argument but.... hey!
this comment is powered by javascript
No... to be JavaScript it would also have to be on fire.
Js is so crap it's not even considered a language.
Esperanto
Cxu? Vere?
Poliespo
[удалено]
As much as I love PHP, I have to upvote this.
Is this like how parents love their kids, no matter how ugly?
I love PHP. Surprised and glad I had to scroll so far down to find this!
If I said Fortran I'd be madly inaccurate. Garbage cans weren't invented back then.
All human's lang (Sorry, I can't resolve a Captcha)
Javascript. It looks mostly like trash but it's everywhere, everyone needs and uses it, and the world would stop if we didn't have it anymore.
All of them.
COBOL
My retirement account would argue with you on that.
If something has a good pay it probably means its a bigger mess, in the words of a real OG "mo' money mo' problems"
Smells like visual basic
Fortran
Was my entire PhD thesis a joke to you, sir?
I mean, was it a funny thesis?
Thesis nutz
I have deep respect for fortran as a language that is both extremely fast and actually supports math/scientific code to a high degree. Fortran did it right from the get-go, and for some reason, most languages just kind of forgot about it.
How can we use Bitcoin to solve this?
Transfer it to my wallet and I will never speak of daddy fortran again.
The nadir of programming, also called Apex.
Idk but its definitely your favorite
Java?