Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[Thoughts]Programming musings thread[General]

Name: Anonymous 2018-09-02 17:57

Post little thoughts, jokes, news, etc. that don't necessarily warrant having their own thread.

Name: Anonymous 2018-10-10 15:38

╔═════════════════ ೋღ☃ღೋ ════════════════╗
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Repost this if ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ ~ ~ ~ you are a beautiful strong statically typed language ~ ~ ~
~ ~ ~ ~ ~ ~ ~ who don’t need no dynamic typing ~ ~ ~ ~ ~ ~ ~
╚═════════════════ ೋღ☃ღೋ ════════════════╝

Name: Anonymous 2018-10-10 18:26

╔═════════════════ ೋღ☃ღೋ ════════════════╗
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Repost this if ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ ~ ~ ~ you are a beautiful strong statically typed language ~ ~ ~
~ ~ ~ ~ ~ ~ ~ who don’t need no dynamic typing ~ ~ ~ ~ ~ ~ ~
╚═════════════════ ೋღ☃ღೋ ════════════════╝

Name: Anonymous 2018-10-11 2:32

do void pointers technically mean c is a dynamic language

Name: Anonymous 2018-10-11 3:15

>>163
No such thing as dynamic typing.

Name: Anonymous 2018-10-18 15:59

what's the point in putting code in a function if you're only going to invoke it once

Name: Anonymous 2018-10-18 16:16

>>165
makes it more organized
of course this doesn't matter if you follow the FrozenAnus school of code formatting

Name: Anonymous 2018-10-18 16:23

Name: Anonymous 2018-10-18 17:02

>>167
depending on what code the function has, it will have readability issues as he says.
compilers will inline it anyway

Name: Anonymous 2018-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: Anonymous 2018-10-19 1:06

the virgin debugger vs. the chad 5,000 print statements

Name: Anonymous 2018-10-19 1:18

Ok. Did a test implementation of my integer serialization algorithm: https://github.com/saniv/integer_serialization

Name: Anonymous 2018-10-19 2:25

>>171
Nikita, what do you do for a living? Just wondering.

Name: Anonymous 2018-10-19 3:59

Wow, nikita actually started programming again! This is great.

Name: Anonymous 2018-10-19 4:45

Make Nikita Symta again.

Name: Anonymous 2018-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: Anonymous 2018-10-19 21:03

>>175
Yeah, that's some cringy pseudo-programming.

Name: Anonymous 2018-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.

Name: Anonymous 2018-10-19 23:26

Name: Anonymous 2018-10-20 20:21

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: Anonymous 2018-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

Name: Anonymous 2018-10-20 22:14

>>179
Dependent types would have prevented this.

Name: Anonymous 2018-10-20 23:35

>>179-180
But it's a feature! brb migrating to another web server

Name: Anonymous 2018-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.

Have you tried that?
https://openresty.org/en/

Name: Anonymous 2018-10-21 1:06

>>181
only if not shipping counts as preventing bugs

Name: Anonymous 2018-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: Anonymous 2018-10-21 12:15

>>185
I don't think people interested in hypothetical stuff like dependent types are interested in real-world programming

Name: Anonymous 2018-10-22 0:09

>>186
hypothetical stuff like dependent types
You can install and use Coq right now though. Does not seem too hypothetical to me.

Name: Anonymous 2018-10-22 1:00

>>187
suck my coq
nobody in the real world uses that

Name: Anonymous 2018-10-22 6:45

depend on the type of my anus!

Name: Anonymous 2018-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.

Name: Anonymous 2018-10-26 21:50

>>190
Don't bother. I regret the time I spent learning Haskell.

Name: Anonymous 2018-10-26 23:07

>>191
Is that why you're bitter?

Name: Anonymous 2018-10-27 0:08

>>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.

Name: Anonymous 2018-10-27 16:29

don't listen to >>193

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.

Name: Anonymous 2018-10-27 17:35

>>194
I already know C++ and Java.

Name: Anonymous 2018-10-27 18:40

>>195
I already know C++
No you don't.

Name: Anonymous 2018-10-27 19:15

>>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.

Name: Anonymous 2018-10-27 19:25

>>197
If you haven't used it in a serious project, you don't know it.

Name: Anonymous 2018-10-27 19:33

>>198
I'm not masochistic.

Name: Anonymous 2018-10-27 20:07

>>197
Stop saying that things suck ass.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List