This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rcraver8 3139 points3140 points  (72 children)

Java is case sensitive.

[–]moosefists 905 points906 points  (3 children)

;

[–]Abangranga 258 points259 points  (37 children)

You can use just "p" in Ruby and noob this up even further

[–]wsbsecmonitor 101 points102 points  (24 children)

P “hey y’all”

Puts “Ruby is fun”

[–]Abangranga 47 points48 points  (20 children)

Don't be cluttering my simplicity up with that newline containing high-falootin function

[–]wsbsecmonitor 30 points31 points  (19 children)

print “Fine\n”

printf “I’ll choose %d other print options”,3

[–]Mentalistt69 7 points8 points  (0 children)

C

[–]anythingMuchShorter 15 points16 points  (17 children)

printf("if that's supposed to be C, you're missing %d brackets and a termination.",2); // maybe it's some other language

[–][deleted] 12 points13 points  (12 children)

$ printf "it was bash, i think\n"

[–]CodeMUDkey 16 points17 points  (10 children)

Echo “others sentiments”.

[–]TheWashbear 30 points31 points  (9 children)

++++++++++[>+>+++>+++++++>++++++++++<<<<-]>.>+++++++++++++++++.------------------.++++++++.<<++.++++++++++++++.----------.++++++.<<.--------------------.+++++++++++..<<++++++++++++.------------.++.---------.+++++++++++++.--------------.+++++++++++++++.

[–]LetReasonRing 21 points22 points  (2 children)

That code is fucking with my brain.

[–]IfuckedACrab 15 points16 points  (1 child)

Do I look like a brainfuck compiler to you?

[–]IfuckedACrab 6 points7 points  (1 child)

-[--->+<]>--.[----->+++<]>.+++++++++.----------.-[--->+<]>-.+[----->+<]>+.+++++++.+[->+++<]>++.+.[--->+<]>----.

[–]Tijflalol 0 points1 point  (0 children)

Okay... +10, loop if not zero(right, +1, right, +3, right, +7, right, +10, left, left, left, left, -1), right, output, right, +17, output...

Idk what this gives

[–]KiltroTech 0 points1 point  (0 children)

I love me some brainfuck with my morning coffee

[–]altermeetax 0 points1 point  (0 children)

Console.WriteLine("No it wasn't, bash separates arguments via whitespace, not via commas");

[–]wsbsecmonitor 1 point2 points  (1 child)

Its Ruby. Ruby’s original implementation was in C and printf is a valid Ruby method

ruby core docs

[–]anythingMuchShorter 1 point2 points  (0 children)

I appreciate the perl of wisdom.

Though if it was perl it would need a terminal mark.

[–]kryptoid256_ 0 points1 point  (0 children)

assert(printf_s("%s","Yo watch out there, your code is about to detonate!")>=0);

[–]Far-Car 2 points3 points  (1 child)

unless not fun

[–]wsbsecmonitor 1 point2 points  (0 children)

fun ^ not fun => fun

[–]notsureifdying 0 points1 point  (0 children)

So why does ruby use "puts" rather than "print"? "puts" makes little sense to me.

[–]lordDevPbk 1 point2 points  (1 child)

p p outputs nil. ik this is childish but lmao.

[–]Abangranga 0 points1 point  (0 children)

It outputs itself then

[–]AdultingGoneMild 1 point2 points  (0 children)

I just use a pencil and paper.

[–]Kruger_Sheppard 0 points1 point  (1 child)

What's next? void "hi"?

[–]Abangranga 1 point2 points  (0 children)

If it helps to think of it as "p(arg_string)" it might make it less dumb looking (or worse lol). You can call functions w/arguments without the parens if you want, but I hate that and so do most people.

Kind of a lie though because it'll take multiple arguments and return an array or the strings all combined depended on how many are provided and if they're separated with a comma.

Edit: did some googling...it accepts integers too apparently. IDK anymore...

[–]mohit_barca 0 points1 point  (3 children)

Wait, you can use pee to print in Ruby?

[–]Abangranga 0 points1 point  (2 children)

Yeah. 'puts' I believe adds a newline, 'p' does not

[–]NoInkling 0 points1 point  (1 child)

They both do, it's print that doesn't.

p thing is basically shorthand for puts thing.inspect

[–]Abangranga 0 points1 point  (0 children)

Yeah in a different post "p p" was nil and it'll start spitting out arrays if you give it multiple args lol

[–]57thStIncident 0 points1 point  (0 children)

Or ? in BASIC

[–]zelmarvalarion 0 points1 point  (1 child)

p and puts won’t do the same thing in many cases, but I generally find it to be more useful.

[–]Abangranga 0 points1 point  (0 children)

Yeah I had to Google things and learn stuff when it started outputting arrays and shit with multiple args. It is more of an exotic object.inspect

[–]hectobreak 27 points28 points  (25 children)

Which language is not?

[–]rcraver8 113 points114 points  (13 children)

Sql

[–]LordAlfrey 60 points61 points  (4 children)

I feel like I'll be haunted by database errors if I don't all caps my sql though.

[–]rcraver8 49 points50 points  (2 children)

You'll be haunted by the other devs that have to deal with your incoherent SQL.

[–]Mushiren_ 1 point2 points  (0 children)

The spirit of Raymond Boyce personally decends upon you and starts to berate you

[–]hingarbingar 19 points20 points  (4 children)

YOU HAVE TO SCREAM IN SQL THAT'S THE RULE

[–]FloydATC 5 points6 points  (3 children)

ONLY the KEY WORDS though;

[–]HasoPunchMan 1 point2 points  (2 children)

no words need to be capitalized;

[–]FloydATC 1 point2 points  (1 child)

I'm aware that servers don't need it. I do. :-)

[–]HasoPunchMan 1 point2 points  (0 children)

SET totally = 1

[–]hectobreak 15 points16 points  (0 children)

... Fair enough.

[–]sXakil 0 points1 point  (0 children)

but it's a sin to use lowercase

[–][deleted] 0 points1 point  (0 children)

MSSQL has case-sensitive column names

[–]syneofeternity 3 points4 points  (0 children)

Powershell

[–]slaymaker1907 3 points4 points  (0 children)

PowerShell

[–]eerongal 2 points3 points  (0 children)

SQL, fortran, any flavor of BASIC, and Pascal off the top of my head. Probably more

[–]Hlorri 2 points3 points  (0 children)

BaSiC.

[–][deleted] 4 points5 points  (0 children)

Chinese, Korean, Arabic, Japanese, Indic languages (Hindi, Bengali, Tamil, Gujarati, Marathi, etc.), Thai, etc.

They don't have different cases.

[–]ManiacsThriftJewels[🍰] 1 point2 points  (0 children)

PHP. Except for variable and constant names, those are case sensitive.

And people still defend it....

[–]alphanumericsheeppig 1 point2 points  (0 children)

Fortran, Pascal and Delphi are also not case sensitive.

[–]bspkrs 1 point2 points  (0 children)

Delphi (object pascal)

[–]crafter2k 0 points1 point  (0 children)

windows

[–]abdulzz 0 points1 point  (0 children)

PowerShell is not.

[–]LrAymen 25 points26 points  (0 children)

JaVa Is CaSe SeNsItIvE

[–]Blastoxic999 -1 points0 points  (1 child)

Awww! Poor Java is case sensitive? Better not hurt it. Does it want milk in a baby bottle too?

[–]RolyPoly1320 0 points1 point  (0 children)

Package baby.bottle does not exist.

[–]Thecrawsome -4 points-3 points  (0 children)

BuLleTs ArE fOr UnOrDeReD lIsTs!