>>167 depending on what code the function has, it will have readability issues as he says. compilers will inline it anyway
Name:
Anonymous2018-10-18 23:59
>>165 so you can write enterprise unit tests for it.
there’s no point, and I’d argue that it hurts the comprehensability of your code. you have to come up with a name for this chunk of code, indirecting readers to another section of the codebase, for basically no reason.
Name:
Anonymous2018-10-19 1:06
the virgin debugger vs. the chad 5,000 print statements
>>171 Nikita, what do you do for a living? Just wondering.
Name:
Anonymous2018-10-19 3:59
Wow, nikita actually started programming again! This is great.
Name:
Anonymous2018-10-19 4:45
Make Nikita Symta again.
Name:
Anonymous2018-10-19 17:22
This NPC ``maymay'' is pretty terrible. What's worse is that people send me images like this: https://i.imgur.com/aPaBYCt.png
Name:
Anonymous2018-10-19 21:03
>>175 Yeah, that's some cringy pseudo-programming.
Name:
Anonymous2018-10-19 21:50
Does Java get rid of stuff in RAM after you close a program?
Like let's say you have a program that stores, I don't know, login credentials, or decryption keys, or an API key in RAM. Do you have to manually delete or write over that in order to make it safe, or will the JVM handle that?
Anybody know about memory forensics? Like if a program has some secure/sensitive credential data in RAM, can you then use some sort of tool to retrieve that data?
I remember someone saying this one kind of ransomware left the keys in RAM after it generated them, so you didn't need to pay the ransom, and instead all you had to do was some memory forensics stuff to find the keys which didn't get removed from RAM.
you've heard of off-by-one errors, but have you ever heard of an off-by-slash error? https://twitter.com/x0rz/status/1052899891624710145 basically allows for path traversal because of a shitty alias in a boomer tier web server that is unfortunately widely used
Name:
Anonymous2018-10-20 21:30
>>179 Funny, you remember me I have to change: location /dir/ { alias /path/dir/; } to location /dir { alias /path/dir/; } Otherwise an url without the trailing slash gives a 404. Just did it and I can't exploit that off-by-slash. If I try to got to http://host/dir/../somefiles I'm routed to http://host
>>179-180 But it's a feature! brb migrating to another web server
Name:
Anonymous2018-10-20 23:41
>>182 I can't reproduce that "feature". I'm not migrating to another web server now that I've built that nginx.conf-fu.
There's a lot of things that I don't do upstream anymore, I let nginx manage that, it's faster. I'm more and more like those chinese who build their whole apps in nginx.
>>181 only if not shipping counts as preventing bugs
Name:
Anonymous2018-10-21 2:32
>>184 Yeah, it would not ship because people interested in dependent types are smart enough to realise the issues of http and to refuse to make a server for it.
Name:
Anonymous2018-10-21 12:15
>>185 I don't think people interested in hypothetical stuff like dependent types are interested in real-world programming
You can install and use Coq right now though. Does not seem too hypothetical to me.
Name:
Anonymous2018-10-22 1:00
>>187 suck my coq nobody in the real world uses that
Name:
Anonymous2018-10-22 6:45
depend on the type of my anus!
Name:
Anonymous2018-10-26 21:30
How do I into functional programming? Is it even worth it? Figured it mite b cool just for side projects. I'm coming from a mainly Java and webdev background so I'm more used to OOP.
>>190 Start by learning untyped lambda calculus and getting familiar with recursion - Scheme + SICP is a good language for this. Afterwards move to Haskell. Yes, it is worth it. You will obtain a new programming worldview, make safer programs, and parallelise them more easily.
There is no real benefit to learning any of these functional abstracte bullshittery languages. The only reason they give to learn them is just as abstracte as the languages themselves ("You will obtain a new programming worldview"). Bitch please. How about learning C++ instead. You'd be able to write games and high performance applications--that's way more compelling of a reason.
>>196 I know it well enough to know that I don't want to do any serious projects. Pointers suck ass. Manual memory management sucks ass too. I'd rather use Python or Java.