TIL swift allows emojis as variables


yes, that’s a very useful feature of the modern languages, and unicode will allow to use one exact symbol instead of =>, <=, and most importantly ==, by mapping keys, so that we’ll avoid problems like if (a=b) which is always true. (:

#programming #programming-languages #programming_languages #emoji #unicode

բնօրինակ սփիւռքում(եւ մեկնաբանութիւննե՞ր)

today we were discussing different spacecraft accidents caused by/related to software, discussed Arian-5 case, and I remembered a Soviet case, where there was a problem with decimal separator and Fortran compiler. Decimal separator in USSR was comma, but in Fortran code it should be the dot.

Also, Fortran compiler did not consider using comma instead of the dot as an error, but as different code. And my friend said - the same is possible to do in C++ - and sent me the illustration.

#include <iostream>
using namespace std;
int main()
cout << "Hello World" << endl;
if (1,2!=1.2)
cout << (1,2) << endl;
return 0;

if you run it, you’ll get

Hello World


#safety #programming #mistakes #safe #c++ #code #example #programming-languages #programming_languages #arian #fortran #source

բնօրինակ սփիւռքում(եւ մեկնաբանութիւննե՞ր)

C++ is a horrible language. It’s made more horrible by the fact that a lot of substandard programmers use it, to the point where it’s much much easier to generate total and utter crap with it. Quite frankly, even if the choice of C were to do nothing but keep the C++ programmers out, that in itself would be a huge reason to use C.

Linus Torvalds, here.

#linus #linus_torvalds #git #programming_languages #programming-languages #c++ #c #programming

բնօրինակ սփիւռքում(եւ մեկնաբանութիւննե՞ր)