[-] barubary@infosec.exchange 8 points 1 month ago
$ python3 -c 'f = (lambda x: x + 0.5 - 0.5); print(f(2**52))'  4503599627370495.5

#python

[-] barubary@infosec.exchange 6 points 2 months ago

Only since 2014, so barely over a decade.

[-] barubary@infosec.exchange 5 points 2 months ago

@tetris11 @Aedis More like:

isEven() {    case "$1" in        *[02468]) return 0;;        *) return 1;;    esac;}

(If all the line breaks are gone from this code snippet, blame Lemmy. It looks fine here.)

[-] barubary@infosec.exchange 9 points 3 months ago

@devilish666 C++ (non-stupid):

#include <stdio.h>
int main() {
puts("Hello, world!");
}

[-] barubary@infosec.exchange 8 points 3 months ago

s/diplomated/graduate/
s/branche/industry (sector)/

[-] barubary@infosec.exchange 5 points 4 months ago

b == 7 is a boolean value

Citation needed. I'm pretty sure it's an int.

[-] barubary@infosec.exchange 6 points 7 months ago

@affiliate Hey, you didn't even mention that char *args[] actually means char **args in a parameter list.

[-] barubary@infosec.exchange 9 points 7 months ago

@stebo02 @Bogus5553 Neither of them require a return value, but void main isn't legal C++.

[-] barubary@infosec.exchange 8 points 9 months ago

... Perl, Haskell, Lisp, ...

[-] barubary@infosec.exchange 5 points 9 months ago

@masterspace

Not to be rude but not having a linter configured and running is a pretty basic issue.

Yeah, if you're a C programmer in the 1980s, maybe. But it's 2006 now and compilers are able to do basic sanity checks all on their own.

[-] barubary@infosec.exchange 5 points 9 months ago

@masterspace

I haven’t used Perl though, what do you like better about it?

"Undeclared variable" is a compile-time error.

view more: ‹ prev next ›

barubary

joined 2 years ago