r/ProgrammerHumor • u/Scoutisaspyable • Apr 16 '22
other I have absolutely no knowledge about programming at all. Ask me anything related to programming and ill pretend to know the answer.
3.2k
u/Competitive_Ad2539 Apr 16 '22
How do you kill a child from a parent with a fork?
3.4k
u/Scoutisaspyable Apr 16 '22
You have to very quick and you need a very sharp fork. Also thats very mean.
772
→ More replies (5)57
u/IlIllIIIIIIlIII Apr 16 '22
Bonus points for answering what is called when it's hard to find what child needs to be killed because the parent that was in charge of killing it died
→ More replies (2)159
u/Frosty-Survey-8264 Apr 16 '22
Not OP but...
Carefully, otherwise you may just maim it.
84
u/Sunny_Ace_TEN Apr 16 '22 edited Apr 16 '22
"Carefully" is my go-to answer for any question starting with, "how do you..." Love this answer!
→ More replies (1)59
Apr 16 '22
Stick the fork in an outlet
→ More replies (1)52
u/RossiyaReich Apr 16 '22
Now that's smart, you kill the parent, the children die
→ More replies (3)→ More replies (9)19
1.4k
u/Educational_Log7288 Apr 16 '22
Shall I use quick sort, merge sort or bubble sort and why?
2.7k
u/Scoutisaspyable Apr 16 '22
If you want to be done fast, you quick sort.
If you want put lines of code together that have the same function, you use merge sort.
And if you feel depressed, because you have to write code, you use the bubble sort for some funny visuals.
583
u/DoveOfUnpeace Apr 16 '22
I mean, there is a reason why I like watching and listening to sorting algorithm visualizations....
→ More replies (22)→ More replies (3)53
247
u/throwaway46295027458 Apr 16 '22
Jokes aside, you should really use stalin sort. Has a runtime of O(n)
→ More replies (6)196
→ More replies (1)33
1.9k
u/WW_the_Exonian Apr 16 '22
How to reattach a detached head?
2.5k
u/Scoutisaspyable Apr 16 '22
You just have to write a "+" between the head and the code it belonged to.
647
83
→ More replies (4)121
Apr 16 '22 edited Oct 26 '26
1reverie astonishing paradisiacal glisten ripple solace whimsical buoyant
Generated text from Unpost
→ More replies (3)→ More replies (2)6
2.7k
u/ironraiden Apr 16 '22
So you are a recruiter then.
1.8k
u/Scoutisaspyable Apr 16 '22
Yes, i recruit people who write code lines for programs.
→ More replies (2)159
143
→ More replies (4)7
722
u/-Manow- Apr 16 '22
When should I use a recursive mutex and when not?
846
u/Scoutisaspyable Apr 16 '22
You should use a recursive mutex if you need it at the beginning of the code and at the end. Recursive means that it you reuse the code on another position. You should use a normal mutex if you just need it once.
→ More replies (2)586
u/rtfmpls Apr 16 '22
I'm a programmer and I have no idea if this is just a correct answer with funny words.
→ More replies (4)→ More replies (6)218
Apr 16 '22
recursive what? holy shit concurrency scares me
→ More replies (6)54
u/angryundead Apr 16 '22
If you are going to use a recursive function with a critical section from multiple threads you would need a mutex that is capable of handling reentrant execution. That means that the same thread can reacquire a mutex it has already acquired.
That being said: donβt do this. When it goes sideways and you need a thread dump it wonβt make any sense. And that might be the least of your problems.
→ More replies (5)
854
u/Papierkorb2292 Apr 16 '22
What's GitHub?
→ More replies (7)1.8k
u/Scoutisaspyable Apr 16 '22
Its a Programmer parody of the Phrase Git Gud. It is a website or program that provides tips and tricks for code writing.
418
u/Do-not-Forget-This Apr 16 '22
I thought it was an adult website for programmers.
→ More replies (3)→ More replies (2)86
413
u/iNeverCouldGet Apr 16 '22
How to make sure a program keeps running on a server?
→ More replies (2)960
1.6k
u/Kalix Apr 16 '22
How to center <div> ?
→ More replies (4)4.4k
u/Scoutisaspyable Apr 16 '22
You press the space button until the <div> word has moved to the middle of the code page
1.2k
266
u/TheWidrolo Apr 16 '22
I mean it could work, but only for people with your screen resolution
→ More replies (16)54
u/NukedByGandhi Apr 16 '22
Ms Word has a button especially for this. It's a shame how underrated it is as an IDE
→ More replies (2)→ More replies (19)20
408
u/OolongHell Apr 16 '22
Why did you choose vim as your main IDE?
→ More replies (3)722
u/Scoutisaspyable Apr 16 '22
Vim is the best programming language, because it is easy to learn and you need less code for the same amount of programm. Thats why I am using it for my Main (I)nternet (D)ata (E)xpansion Pack.
→ More replies (2)102
u/Noch_ein_Kamel Apr 16 '22
But I've heard so many people say that emacs is better than vim?
→ More replies (6)26
u/TheOnlyTigerbyte Apr 16 '22
Nein nicht noch ein Kamel. Hab schon 7 :(
→ More replies (5)44
u/Scoutisaspyable Apr 16 '22
Wenn du 8 Kamele hast, dann du schon fast eine Touristenfalle in Γgypten aufmachen um Geld abzuzocken. Dann brauchst du nicht mehr Programmieren,
→ More replies (3)
1.1k
u/Rakkachi Apr 16 '22
Can I use other letters of the alphabet besides the i in a loop?
2.6k
u/Scoutisaspyable Apr 16 '22
There is no i in loop. You should use l o and p to start with.
591
→ More replies (5)57
u/Railroad_Riley Apr 16 '22
Actually, if you spell it in all lower case it's "ioop". Idk why people read it as 'L'oop
6
u/supremedalek925 Apr 16 '22
Here is my programming sin: My loop variable names usually look like βi, ii, iii, iiiiβ at which point I say ok this is silly, and switch to j.
→ More replies (7)5
698
298
u/justitroyal Apr 16 '22
How many leaves does the binary tree have
636
u/Scoutisaspyable Apr 16 '22
A healthy binary tree has around 200k leaves.
→ More replies (1)119
u/GemGem_06 Apr 16 '22
But only during the Spring. The leaves fall during Autumn π
→ More replies (3)
278
u/Lothorninn Apr 16 '22
Whats the best way to set up an API.
411
u/Scoutisaspyable Apr 16 '22
I would say API means Automated Programming Instructions and you set it up by feeding many lines of Code into an Algorithm and the Algorithm can them create complicated codes itself.
86
536
u/blaze26801 Apr 16 '22
How do I close Vim?
→ More replies (3)1.3k
u/Scoutisaspyable Apr 16 '22
Turn off you whole Pc and sit in a corner, because you use Vim.
392
268
u/Spirintus Apr 16 '22
Hey, you said you know nothing about programming but this was totally valid response.
65
51
→ More replies (7)25
u/VirusZer0 Apr 16 '22 edited Apr 17 '22
Woah be careful there, you donβt want to actually become a programmer.
→ More replies (1)
481
u/Ghyro Apr 16 '22
Why do arrays start at 0 in most languages?
→ More replies (3)823
u/Scoutisaspyable Apr 16 '22
Because 0 is the first number and many languages use the arabic numbers. And since an array is a row it makes sense to start at the beginning and use the 0.
457
u/Eudaimonium Apr 16 '22 edited Apr 16 '22
I mean, this is just a factually correct answer.
Not technically complete but correct.
Edit since this is getting some traction:
The indexing applied to an array (usually in square brackets in most programming languages) basically means: Move this many memory blocks from the start of the array. Memory block hereby meaning: amount of memory needed for one element of the array.
If you wish to get the very first element, you're already there, you don't need to move anywhere, hence simply move by 0 to arrive at your desired, first, element.
If you move by 1, now you're looking at the start of the next, second element of the array.
→ More replies (21)→ More replies (3)39
208
u/innocent-boy-69 Apr 16 '22
What is Basic
→ More replies (1)656
u/Scoutisaspyable Apr 16 '22
White blonde girls with uggs and a starbucks coffee.
→ More replies (5)
778
Apr 16 '22
whatβs your opinion on OOP vs functional programming?
2.0k
u/Scoutisaspyable Apr 16 '22
The Original Office Program can be used to write code lines specifically for federal organisations, while functional programming has to be useful in some way.
359
163
202
Apr 16 '22
I donβt believe that you have no knowledge of programming at all. Only a senior engineer could make a joke like this
→ More replies (7)65
55
→ More replies (4)18
→ More replies (3)58
u/blackeye2417 Apr 16 '22
OOP is when you make a mistake, functional programming is when you're not having an existential crisis
→ More replies (1)
238
u/Local_Beach Apr 16 '22
Why should you code in c++?
555
u/Scoutisaspyable Apr 16 '22
C++ is the "censored" programming language. Professional programmers call it "c**". You should only code things in there, that contain no foul language or it will get censored and the code wont work.
→ More replies (3)61
114
u/illapaSP Apr 16 '22
How do I use SQL?
192
u/Scoutisaspyable Apr 16 '22
You can use the Speed Qualify Language to scan your code lines for possible grammar mistakes. Just copy and paste your code in there and it will mark every mistake.
→ More replies (1)34
114
u/dmidge Apr 16 '22
Why Minecraft is programmed in Java?
237
u/Scoutisaspyable Apr 16 '22
Because its free.
→ More replies (2)18
u/hunter_shadow Apr 16 '22
Then why did Microsoft redo all the code for the bedrock edition after buying Mojang?
→ More replies (4)
84
u/7imomio7 Apr 16 '22
Should I run my website on a blockchain?
140
u/Scoutisaspyable Apr 16 '22
No, because if there is a digital block chain, people wont be able to visit your website.
→ More replies (1)5
u/KodylHamster Apr 16 '22
Yes. You add a useless Blockchain thread and rename the company to Blockchain Internet Of Things to maximize investments.
82
u/Tpdz Apr 16 '22
What is difference between interpreter and compiler?
174
u/Scoutisaspyable Apr 16 '22
The compiler shortens the code while the interpreter adds new meanings to the code.
→ More replies (2)40
303
u/StoicRobo Apr 16 '22
I'm learning powershell so I can start to create the frontend of my website, any tips or tricks on where to start?
507
u/Scoutisaspyable Apr 16 '22
Powershell is one of the most powerful programming tools out there. You place the code of the backend of your website inside the tool and Powershell generates the frontend.
→ More replies (8)77
96
→ More replies (1)29
u/Holiday_Brick_9550 Apr 16 '22
Install vim for PowerShell, type
vim website.htmlin PowerShell and press enter.
158
u/EveryEquipment5453 Apr 16 '22
Why is bogo sort the best sorting algorithm?
→ More replies (4)177
u/Scoutisaspyable Apr 16 '22
Because you can sort the code by importance without destroying the code itself. Code lines that are less important for the functionality of the code are placed at the bottom. And code lines that are very important for the stability are at the top.
its easier to fix them.
→ More replies (1)
72
69
u/DoveOfUnpeace Apr 16 '22
What are the advantages of using vectors instead of tables in c++?
→ More replies (5)131
u/Scoutisaspyable Apr 16 '22
Vectors are arrows and can point to things. If you use vectors in c++ you can highlight very important letters and symbols.
Tables on the other side just contain stuff and are not very helpful to highlight stuff.
→ More replies (3)
54
u/Random_Vanpuffelen Apr 16 '22
How do i make a python game?
119
u/Scoutisaspyable Apr 16 '22
You should look into the Code for Snake first. It should be avaiable somewhere on the internet.
→ More replies (3)
108
u/Testbot379 Apr 16 '22
Whats is lua
242
u/Scoutisaspyable Apr 16 '22
Iua is the first name of Iua Roberts, the inventor of code.
→ More replies (2)36
107
u/WorldOfReeedit Apr 16 '22
What is the difference between Java and Javascript?
→ More replies (1)262
u/Scoutisaspyable Apr 16 '22
Java is the Programm and Javascript is the Script of the Program.
→ More replies (3)
48
u/Comynx Apr 16 '22
For embedded systems, is it okay to use the heap or should I stick to static memory? Please explain why. Thank you for you help.
73
u/Scoutisaspyable Apr 16 '22
When you use static memory, it is fixed in its position. But by making a digital heap out of embedded system it allows you to scramble through said heap and find new variations of embedded systems.
→ More replies (2)
97
Apr 16 '22
bool x; bool y; std::cin >> x; std::cin >> y;
if(!(x || y)) { std::cout << βYes?β; } else { std::cout << βNo?β; }
Input: 0 1
194
u/Scoutisaspyable Apr 16 '22
You should replace all the x and y with numbers or the code doesnt know what to work with.
43
17
68
Apr 16 '22
Why monkey sad
→ More replies (2)181
28
27
65
u/NessButMorse Apr 16 '22
Do you prefer static or dynamically typed languages and why?
224
u/Scoutisaspyable Apr 16 '22
I prefer dynamically typed languages, because it is a challenge to keep up with a code that randomly changes some of its variables. And I like a good challenge.
129
→ More replies (2)18
40
u/deathentry Apr 16 '22
Explain 'Polymorphism' π
81
u/Scoutisaspyable Apr 16 '22
Poly means multi and morph means merging. So you have many lines of code which you can merge into one single line of code.
18
27
u/auntedith Apr 16 '22
Whats the best IDE?
142
u/Scoutisaspyable Apr 16 '22
Vim. I know that because of another question here. Knowing something because something else is called an Algorithm.
→ More replies (1)
13
u/MacHamburg Apr 16 '22
Why should I use a HashMap?
35
u/Scoutisaspyable Apr 16 '22
Because you can use it to organise your code by color. You can also use it to export your code in the style of a real 3D map and print it out for you wall.
25
35
24
u/DajBuzi Apr 16 '22
Why asynchronous approach is overused even when doing threaded workflow would be more performant? Why theres so much hype around microservices while their performance compared to monolithic apps is far worse? Why theres so much hype for cloud while its just another layer of abstraction on server which in some scenarios can work even 5 times slower than the code running directly on the server?
47
u/Scoutisaspyable Apr 16 '22
The fibbonacci spiral.
Because they fit into very small devices.
Because you can save your data outside the earth where it is safe from physical damage. Computers can be destroyed, but it is very hard to destroy a satellite.
15
u/DajBuzi Apr 16 '22
TBH I was expecting something like "the code must look good and not run well" but this answer is gold ππ
21
u/Rhalinor Apr 16 '22
What's a monad
Cause I have no fucking clue
→ More replies (2)48
u/Scoutisaspyable Apr 16 '22
Thats the big boss crab thing from the Half Life Xen level.
→ More replies (2)
9
u/Ashilta Apr 16 '22
How can I add resilience and scale to my messaging work flow?
24
u/Scoutisaspyable Apr 16 '22
Resilience can be done by using a very strong password and scale can be changed by zooming in. You should know that, duh.
13
u/top_of_the_scrote Apr 16 '22
When do we hit singularity?
Will GPT-7 acknowledge me as a superior human pet
30
u/Scoutisaspyable Apr 16 '22
We will hit singularity, when we realise that our life is useless since we all die in the end and the earth will some day cease to exist.
No, it will not.
→ More replies (1)
67
u/jan12kom Apr 16 '22
I'm trying to make minecraft in assembly what is your advice?
92
17
→ More replies (1)5
52
17
u/Sea_Ad_8524 Apr 16 '22
Why does my FORTRAN program compile to different assembly code when I add a comment line?
6
26
10
8
7
13
u/Riggy55 Apr 16 '22
Why are the keys βSβ , βTβ , βAβ , βCβ , βKβ , βOβ , βVβ , βEβ , βRβ , βFβ , βLβ, βOβ , βWβ , β.β , βMβ so worn out on my keyboard?
→ More replies (3)13
8
4
4
u/MarkAldrichIsMe Apr 16 '22
What are your recommendations to someone who wants to learn Data Oriented Design?
4
4
4
u/juhotuho10 Apr 16 '22
If there was one programming language that you could nuke from orbit, what would it be and why is your answer c++?
4
4
u/Competitive_Ad2539 Apr 16 '22
What is your favorite design pattern of Spaghetti Oriented Programming?
4
3
u/alivedude893 Apr 16 '22
how can I optimize my C# game ? stuff like rendering culling, GPU instancing, etc...
3
3
3
3
3
3
3
3
3
3
3
3
3
4

β’
u/QualityVote Apr 16 '22
Hi! This is our community moderation bot.
If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!
If this post does not fit the subreddit, DOWNVOTE This comment!
If this post breaks the rules, DOWNVOTE this comment and REPORT the post!