Honest question, which do you guys prefer?
Honest question, which do you guys prefer?
Fuck I fucked it up.
how can you be this retarded?
also i prefer
printf("ops a %s", "fag");
Someone sold me herb cut with synthetics and really fried my brain man, take it easy on me.
no worries man, i feel you
>printf
Enjoy your buffer overflows. There's a reason it's banned in the codebases of most companies.
delete this thread and don't remake
so youre suggesting puts() or even write()?
delete your face famalam.
Token-based string formatters are an archaic mess with logic split all over the place just because it makes the most sense to the compiler. No one wants to read that shit. But I suppose you wouldn't know about writing code that anyone else would ever read.
Neither because I'm not a fucking javascript retard
How much of a brainlet are you, honestly? How is formatted print statements an "archaic mess"? "Heres is {var1} {var2} {var3} {var4}!", var1, var2, var3, var4
Pretty fucking clear unless you're actually retarded.
maybe i will
>it can be easily-deduced what it does, and so it is clear
And this, my friend, is what makes you a student (and not a particularly good one) rather than a programmer.
Then how will qt3.14s sit on it?
And that, my friend, is what makes you a LARPer, and not a professional.
Literally everybody everywhere uses string formatting like that. It's easy, it's clear, it's clean. That's ideal programming.
I don't understand it, then again I'm just working through coding academy right now and I had a Java class I took in HS
left, because right one is a syntax error
...
they don't anyway
Left.
personally I use the right, but I am inept so I wouldn't read into my choice much
I tend to use right, but I'm trying to get into the habit of using left
this
at first (when introduces to programming) i liked
System.out.println("op is a "+fag);
more,
now im all for
printf("%.2f\n", 22.f/7.f);
it allows for a lot more control
are you gay?
$"{variable} is a variable"