How I see programming languages:

C: You need to manually build a heap to run 1+1

Rust: Copy 1 15 times, add a copy of 1 and return a copy

Java: OnePlusOneStrategyBuilder is auto-injected

JavaScript: npm install OnePlusOne

Python: 1+1 -> Hey C, how much is 1+1?

Ruby: 1.plus(1) unless session_expired

SQL: Select from fake table with 1+1

Kotlin: Open Android Studio, Alt+Space, Enter.

Swift: (1+1) in a blue bubble or 11 in a green bubble

PHP:

Go: if err != nil { return nil } 1+1 if err != nil { return nil }

Reply to this note

Please Login to reply.

Discussion

is Ruby the most beautiful language

Yes, unless the others exist.

No, ruby is the most beautiful language, no exception.

I'm not a programmer but i was shocked when DHH gave some examples of Ruby on Lex Friedman podcast

Awe that's unfair you don't need a heap to do 1+1 in C XD

I got a segfault just reading this.

But I like heaps

But my favorite part, is that stack memory is enough to do a lot of work very fast.

(+ 1 1)

Everyone complains about Go's error handling until they discover how convenient is for debugging 🤣

Programming jokes are the BEST !

This is... Accurate 🤣

Scala be like: Pure monads and invent a type system so that you can sum two numbers.

Perl:

my $str = "11";

say() =()= $str =~ /1/g;

Look at PHP. Perfect. 🤌🏻

(ftw ‘(‘Lisp ‘dialects))

Lua: 1+1 = table

Haskell: 1+1

Golang LOL 😂