Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Who the hell put those disgusting semicolons at the end of a statement in Swift?
And where the fuck is Rust?
And why is there random whitespace before parenthesis and after dots? Was this written with Word? Look at the << in C++! And some quote marks are styled like “this”. Wtf is this? Code! Do you speak it? -
obviously you forgot the programming languages to rule all hello world programs:
https://esolangs.org/wiki/Hello
https://esolangs.org/wiki/... -
kiki351881yWhat’s up with all that spaces? The majority of those examples will throw errors because of them
-
I legit think there's a significant benefit to having two separate functions to log with or without a newline.
Like Console.Write and Console.WriteLine in C#
I mostly use JS these days and I'm slightly annoyed by seeing people wanting to log with newlines and either not doing it or having to write a newline string manually with console.log("\nHello") -
@jiraTicket Any decent language that has extensions can simply add a print/log version with or without newline.
-
@jiraTicket
In fact, it's JavaScript who doesn't provide that.
Bash does (echo -n) , so do most sane languages.
JavaScript can also do it (in node only) with process.stdout.write(), but it's not a language feature.
But hey, maybe ostream wants to enlighten us with his superior knowledge... -
msdsk31791y@CoreFusionX
It's a fundamental confusion though because console.log is not echo, it's not supposed to be presented for the end user, it's not supposed to write permanent logs. It's a lazy man's debugger statement. -
@Lensflare there's always ways to add features later. but unless it's an obvious part of the built in standard lib 99% of projects ain't gonna use it. Projects could easily add their own fn but to be fair most will never (including me who's bothering to write a post about it, I could easily add a writeLine-fn to my js project but I won't)
I'm just saying I appreciate when it's really built in from scratch
Related Rants
-
thebhuwanesh20Why did the chicken cross the road? Assembler Chicken: First, it builds the road ...... C Chicken: It crosse...
-
BambuSource14My girlfriend has these :D (called Code:Deck - available here https://varianto25.com/playing-card...)
-
RAZERZ8Me: so, I heard you do programming! What language? Person: ehhh, English...?
source: https://aprogrammerlife.com/top-rat...
joke/meme
programming languages