[-] barubary@infosec.exchange 9 points 2 weeks ago

@devilish666 C++ (non-stupid):

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

[-] barubary@infosec.exchange 16 points 3 weeks ago

C) It's an obvious joke.

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

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

[-] barubary@infosec.exchange 19 points 1 month ago

Because let x: y is syntactically unambiguous, but you need to know that y names a type in order to correctly parse y x. (Or at least that's the case in C where a(b) may be a variable declaration or a function call depending on what typedefs are in scope.)

[-] barubary@infosec.exchange 18 points 1 month ago* (last edited 1 month ago)

POV: You open vim for the first time.

Screenshot of vim start screen. The instruction to exit vim is highlighted in red. It reads: VIM - Vi IMproved version 9.1.697 by Bram Moolenaar et al. Modified by team+vim@tracker.debian.org Vim is open source and freely distributable Help poor children in Uganda! type :help iccf for information type :q to exit type :help or  for on-line help type :help version9 for version info

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

The same is true of std::endl. std::endl is simply defined as << '\n' << std::flush; nothing more, nothing less. In all cases where endl gives you a "properly translated" newline, so does \n.

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

std::endl provides zero portability benefits. C++ does have a portable newline abstraction, but it is called \n, not endl.

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

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

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

Strictly speaking, it should be

Unsafe block syntax in C++

{  ...}
[-] barubary@infosec.exchange 8 points 6 months ago

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

[-] barubary@infosec.exchange 14 points 2 years ago

@hstde @Spore Even better, the alphabetical index of function names was generated in English first and then translated, meaning the documentation looks like a scrambled mess in any other language because it is alphabetized according to what the English equivalent would be. #excel

view more: next ›

barubary

joined 2 years ago