subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programmerhumor
gonzohst93
ii2sd97
<|sols|><|sot|>time to write and forget<|eot|><|sol|>https://i.redd.it/sfpovkaalde91.jpg<|eol|><|sor|>And they'll always be like "so your problem is that the code isn't working properly. You should consider writing code that works properly. That would fix your problems".<|eor|><|sor|>"Yo PM, I need training in X. Can I get company to pay for it if I can pass and get a cert?" Turn every weakness into an opportunity to grow by getting someone else to pay for it, in a professional setting.<|eor|><|sor|>I started taking advantage of my companies learning allowance this year, shit is bomb<|eor|><|sor|>Legit question how do you hold yourself accountable to complete it? I have garbage self control. I wanna do my tickets and then go live my life once those are in AT.<|eor|><|sor|>Work gives us hours we can bill towards learning so that makes it very easy. But still you get too busy some weeks<|eor|><|eols|><|endoftext|>
59
programmerhumor
CarlCarlton
ii2nc36
<|sols|><|sot|>time to write and forget<|eot|><|sol|>https://i.redd.it/sfpovkaalde91.jpg<|eol|><|sor|>Classic TODO: correct the ship position<|eor|><|sor|>// Possible solution: rotate the rest of the entire universe in the correct orientation to keep the ship moving forward<|eor|><|eols|><|endoftext|>
53
programmerhumor
theygottotalking
ii2akzq
<|sols|><|sot|>time to write and forget<|eot|><|sol|>https://i.redd.it/sfpovkaalde91.jpg<|eol|><|sor|>Where is that cruise ship sailing through? It looks like a beautiful vacation destination.<|eor|><|eols|><|endoftext|>
48
programmerhumor
Flengasaurus
ii2zo83
<|sols|><|sot|>time to write and forget<|eot|><|sol|>https://i.redd.it/sfpovkaalde91.jpg<|eol|><|sor|>I mean it's a joke but this is real. A watched programmer pot never boils<|eor|><|sor|>A watched programmer never boils<|eor|><|eols|><|endoftext|>
47
programmerhumor
dIAb0LiK99
ii2dz1w
<|sols|><|sot|>time to write and forget<|eot|><|sol|>https://i.redd.it/sfpovkaalde91.jpg<|eol|><|sor|>This applies to everything, not just coding. Pooping, peeing, doing a presentation, walking, etc.<|eor|><|eols|><|endoftext|>
40
programmerhumor
Truffles326
ii34y75
<|sols|><|sot|>time to write and forget<|eot|><|sol|>https://i.redd.it/sfpovkaalde91.jpg<|eol|><|sor|>And they'll always be like "so your problem is that the code isn't working properly. You should consider writing code that works properly. That would fix your problems".<|eor|><|sor|>"Yo PM, I need training in X. Can I get company to pay for it if I can pass and get a cert?" Turn every weakness into an opportunity to grow by getting someone else to pay for it, in a professional setting.<|eor|><|sor|>I started taking advantage of my companies learning allowance this year, shit is bomb<|eor|><|sor|>How do you get past the feeling that they're trapping you? My work offers 5k towards education but if you leave at any time before 2 years - you owe every single penny back immediately. Meaning you take 5 years of classes - 25k and you leave after 1 year. You owe 25k not just the last 5k. They've no reason to give you a raise because they know you can't leave<|eor|><|eols|><|endoftext|>
34
programmerhumor
EliannaRys
ii1tt9d
<|sols|><|sot|>time to write and forget<|eot|><|sol|>https://i.redd.it/sfpovkaalde91.jpg<|eol|><|sor|>*Image Transcription: Meme* --- [*Two pictures side-by-side with captions above each.*] ## me programming by myself [*Photograph of a large white ship cruising straight through a canyon barely wider than the ship itself.*] ## me programming when someone else is looking [*Photograph from above of the ship "Ever Given" by EVERGREEN stuck in the Suez Canal. The green ship is loaded with cargo, and spans the canal from one side to the other in a diagonal line.*] --- ^^I'm&#32;a&#32;human&#32;volunteer&#32;content&#32;transcriber&#32;and&#32;you&#32;could&#32;be&#32;too!&#32;[If&#32;you'd&#32;like&#32;more&#32;information&#32;on&#32;what&#32;we&#32;do&#32;and&#32;why&#32;we&#32;do&#32;it,&#32;click&#32;here!](https://www.reddit.com/r/TranscribersOfReddit/wiki/index)<|eor|><|eols|><|endoftext|>
33
programmerhumor
Johnothy_Cumquat
ii2mxr4
<|sols|><|sot|>time to write and forget<|eot|><|sol|>https://i.redd.it/sfpovkaalde91.jpg<|eol|><|sor|>Is pair programming still a thing? I feel like 6-8 years ago everyone was excited about it. Reduce coding time by 30% by doubling the man power! Plus coding attracts confident social adroit people who enjoy working very closely with others for hours at a time.<|eor|><|sor|>Yes it is unfortunately still a thing. Lotta fuckin extroverts out there taking their fuckin extrovert practices and saying everyone should do them and a lotta fuckin dumbass extrovert managers agreeing with them<|eor|><|eols|><|endoftext|>
31
programmerhumor
Yugusuf
11f6zs5
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|eols|><|endoftext|>
32,085
programmerhumor
luke5273
jai0rjk
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>> I need a dictionary Every interview question ever<|eor|><|eols|><|endoftext|>
11,536
programmerhumor
gbot1234
jai5ut6
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>I need a dictionary. Brace yourself, Dad. Here it is: {}<|eor|><|eols|><|endoftext|>
8,838
programmerhumor
youarealreadyd3ad
jahwlx7
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>Let him try and see how it feels<|eor|><|eols|><|endoftext|>
3,218
programmerhumor
Yugusuf
jahxoan
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>Let him try and see how it feels<|eor|><|soopr|>Oh boy I cant wait to hear him calling me upstairs every four seconds to figure out why each line of code isnt working<|eoopr|><|eols|><|endoftext|>
2,771
programmerhumor
BAG0N
jaifikt
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>I need a dictionary. Brace yourself, Dad. Here it is: {}<|eor|><|sor|>that's myDict<|eor|><|eols|><|endoftext|>
2,086
programmerhumor
HeerHaan
jainxlm
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>> I need a dictionary Every interview question ever<|eor|><|sor|>Not sure how a bunch of key-value pairs are supposed to help with that...<|eor|><|eols|><|endoftext|>
1,988
programmerhumor
HibicoTV
jai9drk
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>4 years? Pathetic. All your dad needed was 10 minutes. Get on his level<|eor|><|eols|><|endoftext|>
1,804
programmerhumor
Anaxamander57
jai732e
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>Let him try and see how it feels<|eor|><|soopr|>Oh boy I cant wait to hear him calling me upstairs every four seconds to figure out why each line of code isnt working<|eoopr|><|sor|>Give him a duck.<|eor|><|eols|><|endoftext|>
1,347
programmerhumor
Sexy_McSexypants
jai9nbh
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>> I need a dictionary Every interview question ever<|eor|><|sor|>mkdir myDirectory ok now wheres my paycheck?<|eor|><|eols|><|endoftext|>
924
programmerhumor
vuur77
jai30wy
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>- Are ya coding, father? - I need dictionary.<|eor|><|eols|><|endoftext|>
915
programmerhumor
dlc741
jaigkh6
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>Does he have experience coding already? I think at this point if I were going to learn other languages I would rather just have documentation of syntax and do my own stuff rather than watching videos.<|eor|><|sor|>I had the exact same thought, assuming that he has some experience in modern languages. If he's still using PASCAL then he might have some issues.<|eor|><|eols|><|endoftext|>
868
programmerhumor
TheGreatGameDini
jaijjpl
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>I need a dictionary. Brace yourself, Dad. Here it is: {}<|eor|><|sor|>that's myDict<|eor|><|sor|>Ahh yours is super small too huh? Edit: just thought of another one. Ah yes, mine too has length 0. Edit edit: and another one Don't worry, it grows.<|eor|><|eols|><|endoftext|>
718
programmerhumor
AggressiveMarket5883
jai90lj
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>Everything I ever learned was by learning the things that were needed. You can watch youtube videos forever, you'll forget half of it because you just study it for the sake of studying. If on the other hand you start doing something and you face a problem that you solve by researching it yourself. Then you are more likely to remember it since you have an emotional bond to that experience + you learn whatever is needed at the time when it is needed. If you work on the correct projects you'll automatically pick up what is necessary to pick up to complete your project. Some youtube videos are good and I'll usually get a general overview as a primer for some fields but I'd never start studying with them alone. Especially because you are constrained to the playback speed of the video and the work choice and gap fillers. Reading is 100x faster if you do it right, you can easily find the correct sections, skip back and forth, repeat things without searching for the audio segment etc. Video is a horrible medium for studying imo.<|eor|><|eols|><|endoftext|>
702
programmerhumor
OutOfNoMemory
jaivimw
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>Let him try and see how it feels<|eor|><|soopr|>Oh boy I cant wait to hear him calling me upstairs every four seconds to figure out why each line of code isnt working<|eoopr|><|sor|>Give him a duck.<|eor|><|sor|>Ok you've opened a can of worms in my mind. I wonder at what skill level does the duck become effective? Verbally sorting your thoughts is always effective, but if you just don't have the foundational skills yet, that can only go so far.. right? Unless the exercise directs you toward the correct next inquiry; if it leads you to understand exactly what you *don't* understand and need to find out. This is interesting<|eor|><|sor|>Sounds like you need a duck.<|eor|><|eols|><|endoftext|>
657
programmerhumor
CustomsCharge
jahyrqv
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>Let him try and see how it feels<|eor|><|soopr|>Oh boy I cant wait to hear him calling me upstairs every four seconds to figure out why each line of code isnt working<|eoopr|><|sor|>Honestly just link him the documentation and see how long he lasts itll be a good laugh<|eor|><|eols|><|endoftext|>
624
programmerhumor
thugarth
jaitp9d
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>Let him try and see how it feels<|eor|><|soopr|>Oh boy I cant wait to hear him calling me upstairs every four seconds to figure out why each line of code isnt working<|eoopr|><|sor|>Give him a duck.<|eor|><|sor|>Ok you've opened a can of worms in my mind. I wonder at what skill level does the duck become effective? Verbally sorting your thoughts is always effective, but if you just don't have the foundational skills yet, that can only go so far.. right? Unless the exercise directs you toward the correct next inquiry; if it leads you to understand exactly what you *don't* understand and need to find out. This is interesting<|eor|><|eols|><|endoftext|>
616
programmerhumor
Polite-Moose
jahy8b3
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>Damn, watching videos is nowhere as efficient as reading documentation and tutorials, and I'm totally willing to die on that hill.<|eor|><|eols|><|endoftext|>
580
programmerhumor
Main-Drag-4975
jahxcvt
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>Ok dad, `cat /usr/share/dict/words`<|eor|><|eols|><|endoftext|>
542
programmerhumor
cumquistador6969
jaj53yf
<|sols|><|sot|>Ive been programming for four years and I told my dad to watch long videos and complete your own projects to learn most efficiently. He thinks hes ready to tackle any project after a ten minute video<|eot|><|sol|>https://i.redd.it/vakxl3twv6la1.jpg<|eol|><|sor|>> I need a dictionary Every interview question ever<|eor|><|sor|>Not sure how a bunch of key-value pairs are supposed to help with that...<|eor|><|sor|>Well, we ought to be able to look up most interview questions for their answers very efficiently.<|eor|><|eols|><|endoftext|>
488
programmerhumor
NuclearEnergyStocks
uwman4
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|eols|><|endoftext|>
32,082
programmerhumor
NuclearEnergyStocks
i9se193
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>Can i see your code please<|eor|><|soopr|> import random import time alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] solution = 'hello world' #end goal start = '' #starting string holder = ''# letter holder to pop i = 0 while start != solution: holder = random.choice(alphabet) if holder != solution[i]: alphabet.remove(holder) print(start + holder) time.sleep(.05) else: alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] start += holder print(start) i += 1 time.sleep(.05)<|eoopr|><|eols|><|endoftext|>
2,960
programmerhumor
ourlastchancefortea
i9spdli
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>Can i see your code please<|eor|><|soopr|> import random import time alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] solution = 'hello world' #end goal start = '' #starting string holder = ''# letter holder to pop i = 0 while start != solution: holder = random.choice(alphabet) if holder != solution[i]: alphabet.remove(holder) print(start + holder) time.sleep(.05) else: alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] start += holder print(start) i += 1 time.sleep(.05)<|eoopr|><|sor|>> time.sleep(.05) Good choice. If the customer complaints about speed, just decrease the sleep time a bit.<|eor|><|eols|><|endoftext|>
2,481
programmerhumor
Gold-Dig-2351
i9sdakt
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>Can i see your code please<|eor|><|eols|><|endoftext|>
2,089
programmerhumor
pennacap
i9sxvq4
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>Can i see your code please<|eor|><|soopr|> import random import time alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] solution = 'hello world' #end goal start = '' #starting string holder = ''# letter holder to pop i = 0 while start != solution: holder = random.choice(alphabet) if holder != solution[i]: alphabet.remove(holder) print(start + holder) time.sleep(.05) else: alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] start += holder print(start) i += 1 time.sleep(.05)<|eoopr|><|sor|>> time.sleep(.05) Good choice. If the customer complaints about speed, just decrease the sleep time a bit.<|eor|><|sor|>Honestly, the print statement _is_ a time.sleep<|eor|><|eols|><|endoftext|>
842
programmerhumor
myloyt
i9sktvl
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>now do a bruteforce that only finishes when all characters are correct. on a full string basis, instead of individual characters.<|eor|><|eols|><|endoftext|>
728
programmerhumor
TrimericDragon7
i9sme9d
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>This gives me a terrible idea for a new print function<|eor|><|eols|><|endoftext|>
464
programmerhumor
PeaPanties
i9sug3r
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>now do a bruteforce that only finishes when all characters are correct. on a full string basis, instead of individual characters.<|eor|><|sor|>correct, you could make a dictionary attack that could find a solution within a few seconds.<|eor|><|sor|>I once used dictionary attack. The person next me had no chance when it landed on their head.<|eor|><|eols|><|endoftext|>
425
programmerhumor
JasonStrode
i9srqn8
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>Can i see your code please<|eor|><|soopr|> import random import time alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] solution = 'hello world' #end goal start = '' #starting string holder = ''# letter holder to pop i = 0 while start != solution: holder = random.choice(alphabet) if holder != solution[i]: alphabet.remove(holder) print(start + holder) time.sleep(.05) else: alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] start += holder print(start) i += 1 time.sleep(.05)<|eoopr|><|sor|>https://docs.python.org/3/library/string.html#string.ascii_lowercase<|eor|><|sor|> alphabet = sorted(set("The quick brown fox jumps over the lazy dog".lower()))<|eor|><|eols|><|endoftext|>
375
programmerhumor
kulpsin
i9sdgpv
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>Brute forcing physical lock gates right there.<|eor|><|eols|><|endoftext|>
307
programmerhumor
Chrisazy
i9t7cmn
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>Can i see your code please<|eor|><|soopr|> import random import time alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] solution = 'hello world' #end goal start = '' #starting string holder = ''# letter holder to pop i = 0 while start != solution: holder = random.choice(alphabet) if holder != solution[i]: alphabet.remove(holder) print(start + holder) time.sleep(.05) else: alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] start += holder print(start) i += 1 time.sleep(.05)<|eoopr|><|sor|>> time.sleep(.05) Good choice. If the customer complaints about speed, just decrease the sleep time a bit.<|eor|><|sor|>Honestly, the print statement _is_ a time.sleep<|eor|><|sor|>Turn off your console's buffering to get the true POSIX sleep implementation<|eor|><|eols|><|endoftext|>
282
programmerhumor
phylogram
i9sgnmr
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>Can i see your code please<|eor|><|soopr|> import random import time alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] solution = 'hello world' #end goal start = '' #starting string holder = ''# letter holder to pop i = 0 while start != solution: holder = random.choice(alphabet) if holder != solution[i]: alphabet.remove(holder) print(start + holder) time.sleep(.05) else: alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] start += holder print(start) i += 1 time.sleep(.05)<|eoopr|><|sor|>https://docs.python.org/3/library/string.html#string.ascii_lowercase<|eor|><|eols|><|endoftext|>
262
programmerhumor
photenth
i9sshxp
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>now do a bruteforce that only finishes when all characters are correct. on a full string basis, instead of individual characters.<|eor|><|sor|>correct, you could make a dictionary attack that could find a solution within a few seconds.<|eor|><|eols|><|endoftext|>
247
programmerhumor
BraxbroWasTaken
i9tgfzk
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>Can i see your code please<|eor|><|soopr|> import random import time alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] solution = 'hello world' #end goal start = '' #starting string holder = ''# letter holder to pop i = 0 while start != solution: holder = random.choice(alphabet) if holder != solution[i]: alphabet.remove(holder) print(start + holder) time.sleep(.05) else: alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] start += holder print(start) i += 1 time.sleep(.05)<|eoopr|><|sor|>> time.sleep(.05) Good choice. If the customer complaints about speed, just decrease the sleep time a bit.<|eor|><|sor|>Honestly, the print statement _is_ a time.sleep<|eor|><|sor|>My favorite way to solve race conditions<|eor|><|sor|>how to fix race conditions: Tell the computer to slow down. Its not a race.<|eor|><|eols|><|endoftext|>
242
programmerhumor
A-UNDERSCORE-D
i9szlxs
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>Can i see your code please<|eor|><|soopr|> import random import time alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] solution = 'hello world' #end goal start = '' #starting string holder = ''# letter holder to pop i = 0 while start != solution: holder = random.choice(alphabet) if holder != solution[i]: alphabet.remove(holder) print(start + holder) time.sleep(.05) else: alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] start += holder print(start) i += 1 time.sleep(.05)<|eoopr|><|sor|>> time.sleep(.05) Good choice. If the customer complaints about speed, just decrease the sleep time a bit.<|eor|><|sor|>Honestly, the print statement _is_ a time.sleep<|eor|><|sor|>Not on pycharm, or I assume other IDEs Edit: With a sample size of 10000 I found the average time a print statement takes in pycharm is 1337.3785 nanoseconds (or 1.3373785e-6 seconds), which I think is pretty small<|eor|><|sor|>Prints are comically slow in anything compared to what the code is otherwise doing. Next slowest thing is the string concat<|eor|><|eols|><|endoftext|>
165
programmerhumor
CiroGarcia
i9sjz5c
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>Do you also see like 3x5 pixel characters or is it just me?<|eor|><|eols|><|endoftext|>
152
programmerhumor
TheBaxes
i9tbx32
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>Can i see your code please<|eor|><|soopr|> import random import time alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] solution = 'hello world' #end goal start = '' #starting string holder = ''# letter holder to pop i = 0 while start != solution: holder = random.choice(alphabet) if holder != solution[i]: alphabet.remove(holder) print(start + holder) time.sleep(.05) else: alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] start += holder print(start) i += 1 time.sleep(.05)<|eoopr|><|sor|>> time.sleep(.05) Good choice. If the customer complaints about speed, just decrease the sleep time a bit.<|eor|><|sor|>Honestly, the print statement _is_ a time.sleep<|eor|><|sor|>My favorite way to solve race conditions<|eor|><|eols|><|endoftext|>
151
programmerhumor
Alemit000
i9shtuv
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>Can i see your code please<|eor|><|soopr|> import random import time alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] solution = 'hello world' #end goal start = '' #starting string holder = ''# letter holder to pop i = 0 while start != solution: holder = random.choice(alphabet) if holder != solution[i]: alphabet.remove(holder) print(start + holder) time.sleep(.05) else: alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] start += holder print(start) i += 1 time.sleep(.05)<|eoopr|><|sor|>https://docs.python.org/3/library/string.html#string.ascii_lowercase<|eor|><|sor|>Or at least `alphabet = [chr(i) for i in range(ord('a'), ord('z') + 1)]`, anything but typing it out xD<|eor|><|eols|><|endoftext|>
143
programmerhumor
Gold-Dig-2351
i9seivk
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>Can i see your code please<|eor|><|soopr|> import random import time alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] solution = 'hello world' #end goal start = '' #starting string holder = ''# letter holder to pop i = 0 while start != solution: holder = random.choice(alphabet) if holder != solution[i]: alphabet.remove(holder) print(start + holder) time.sleep(.05) else: alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '] start += holder print(start) i += 1 time.sleep(.05)<|eoopr|><|sor|>Thanks<|eor|><|eols|><|endoftext|>
131
programmerhumor
Nsber
i9sn6y4
<|sols|><|sot|>Hello Brute Force<|eot|><|sol|>https://i.redd.it/ovidp74h0e191.gif<|eol|><|sor|>The funny thing is, that there is actually a attack which looks like this. If a webserver for example does not hash its passwords, then you can measure the time it took to compare the string. If it is longer with the current password, than the last, then you have propably found the next character. With that being said, please hash your passwords<|eor|><|eols|><|endoftext|>
119
programmerhumor
iotangle42
ktmx5u
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|eols|><|endoftext|>
32,039
programmerhumor
salexzee
gimzeie
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>Yep! Sounds like how I choose to spend my time.<|eor|><|eols|><|endoftext|>
650
programmerhumor
Gottalaughalittle
ginnqyx
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>Yep! Sounds like how I choose to spend my time.<|eor|><|sor|>Had 2 things on the list. Got one done. 50% complete.<|eor|><|eols|><|endoftext|>
266
programmerhumor
mattsl
gin8sif
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>If you mow before the tornado then you won't have to clean up the grass clippings.<|eor|><|eols|><|endoftext|>
140
programmerhumor
Stanov
gin7o0o
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>A little procrastination never killed nobody. Also, I feel deeply offended.<|eor|><|eols|><|endoftext|>
135
programmerhumor
snickns
ginrf66
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>Yep! Sounds like how I choose to spend my time.<|eor|><|sor|>Had 2 things on the list. Got one done. 50% complete.<|eor|><|sor|>[deleted]<|eor|><|sor|>Yeah, take a day off<|eor|><|eols|><|endoftext|>
89
programmerhumor
Neurobreak27
ginwucy
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>Yep! Sounds like how I choose to spend my time.<|eor|><|sor|>Had 2 things on the list. Got one done. 50% complete.<|eor|><|sor|>[deleted]<|eor|><|sor|>Yeah, take a day off<|eor|><|sor|>Aannnddd now it's two weeks later and the deadline is literally tomorrow. Tell me it isn't an illness<|eor|><|eols|><|endoftext|>
69
programmerhumor
Roberto410
gin9clm
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>I feel like this describes the cyberpunk Devs. There are so much detail in some tiny things. And then major things are just fucked. Good game tho, recommend it on PC<|eor|><|eols|><|endoftext|>
65
programmerhumor
irbilldozer
ginlch3
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>Tidying readme and adjusting tabs in my code is pleasant way to run from big ass critical bug i hadn't solve<|eor|><|sor|>Try using hotkeys instead of tabs (recent files, search in project, etc). I've always hated tabs management and spending time searching a file visually. Now I just don't use them at all in the IDE, I just press a hotkey and type 2-5 letters from file that I want and saves time a lot<|eor|><|sor|>Lol I don't think he meant those kind of tabs...<|eor|><|eols|><|endoftext|>
48
programmerhumor
MasterFubar
ginxqd9
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>Yep! Sounds like how I choose to spend my time.<|eor|><|sor|>Had 2 things on the list. Got one done. 50% complete.<|eor|><|sor|>[deleted]<|eor|><|sor|>Yeah, take a day off<|eor|><|sor|>Aannnddd now it's two weeks later and the deadline is literally tomorrow. Tell me it isn't an illness<|eor|><|sor|>> the deadline is literally tomorrow. Twist: it has been literally tomorrow for the last two years.<|eor|><|eols|><|endoftext|>
46
programmerhumor
tune-happy
gin7fbs
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>Can confirm. I spent all of yesterday testing and watching our UAT gold code environment inexplicably explode. It turned out to be a live issue that I had to fix in 5 minutes when the problem was eventually identified. Yes, a Friday release. The root cause was stupid and could easily have been avoided if a pre-merge code review had been performed a few months ago by someone with their brain switched on.<|eor|><|eols|><|endoftext|>
42
programmerhumor
ShuffleStepTap
gin6jt7
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>This is the way.<|eor|><|eols|><|endoftext|>
40
programmerhumor
CaptainHeinous
gin6tl6
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>*glances back at offending file* Yea, README needs a little more explanation on nix installation<|eor|><|eols|><|endoftext|>
37
programmerhumor
Ragina_Falange
gincj6v
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>If you mow before the tornado then you won't have to clean up the grass clippings.<|eor|><|sor|>Or is it that everything gets covered in grass clippings once the tornado hits?<|eor|><|eols|><|endoftext|>
36
programmerhumor
eXl5eQ
gind5ru
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>The attempt to fix one bug may introduce ten more bugs. Editing README is harmless at least.<|eor|><|eols|><|endoftext|>
34
programmerhumor
phpdevster
ginmosm
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>If you mow before the tornado then you won't have to clean up the grass clippings.<|eor|><|sor|>Or is it that everything gets covered in grass clippings once the tornado hits?<|eor|><|sor|>Yes. And also covered in cows, corn, hail, tractors, other houses.<|eor|><|eols|><|endoftext|>
29
programmerhumor
aurens
ginky1m
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>A little procrastination never killed nobody. Also, I feel deeply offended.<|eor|><|sor|>[deleted]<|eor|><|sor|>^ fyi the user i'm replying to here is a spam bot account. it steals other comments and reposts them to farm karma. there's a whole bunch of accounts just like this. sometimes they get banned, sometimes they don't. i've reported this exact account to the admins multiple times and apparently they just don't care. but now you know, at least.<|eor|><|eols|><|endoftext|>
28
programmerhumor
mustang__1
giofhrf
<|sols|><|sot|>Who cares about a few crashes here and there, right?<|eot|><|sol|>https://i.redd.it/hmqbsdvcl9a61.png<|eol|><|sor|>Yep! Sounds like how I choose to spend my time.<|eor|><|sor|>Had 2 things on the list. Got one done. 50% complete.<|eor|><|sor|>[deleted]<|eor|><|sor|>Yeah, take a day off<|eor|><|sor|>Aannnddd now it's two weeks later and the deadline is literally tomorrow. Tell me it isn't an illness<|eor|><|sor|>It's not an illness. I don't believe that, but you did tell me to say it<|eor|><|eols|><|endoftext|>
22
programmerhumor
catdrinkingacat
lempzp
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|eols|><|endoftext|>
32,020
programmerhumor
AnsNasty
gmg3krf
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>I still remember being a first year student and not quite grasping Nulls until I saw the toilet paper roll picture lol<|eor|><|eols|><|endoftext|>
1,871
programmerhumor
i_abh_esc_wq
gmgk25q
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>I still remember being a first year student and not quite grasping Nulls until I saw the toilet paper roll picture lol<|eor|><|sor|>Do you have that picture?<|eor|><|sor|>[This probably](https://i.imgur.com/OInMqrN.jpg)<|eor|><|eols|><|endoftext|>
1,165
programmerhumor
jochem4208
gmg9pxu
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>I still remember being a first year student and not quite grasping Nulls until I saw the toilet paper roll picture lol<|eor|><|sor|>Those things really help!<|eor|><|eols|><|endoftext|>
416
programmerhumor
catdrinkingacat
gmfmjct
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|soopr|>Sauce: [https://stackoverflow.com/questions/2139812/what-is-a-callback](https://stackoverflow.com/questions/2139812/what-is-a-callback)<|eoopr|><|eols|><|endoftext|>
375
programmerhumor
Macluawn
gmgy6ps
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>I still remember being a first year student and not quite grasping Nulls until I saw the toilet paper roll picture lol<|eor|><|sor|>Do you have that picture?<|eor|><|sor|>`non zero value` - there's still toilet paper left `zero` - Tp roll is empty `null` - There is no roll `undefined` - Sir this is a wendy's<|eor|><|eols|><|endoftext|>
274
programmerhumor
krisnarocks
gmgnonh
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>But how is it implemented in C# tho?<|eor|><|eols|><|endoftext|>
266
programmerhumor
ReeceReddit1234
gmgii4q
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>I still remember being a first year student and not quite grasping Nulls until I saw the toilet paper roll picture lol<|eor|><|sor|>Do you have that picture?<|eor|><|eols|><|endoftext|>
256
programmerhumor
Max_Insanity
gmguds0
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>I still remember being a first year student and not quite grasping Nulls until I saw the toilet paper roll picture lol<|eor|><|sor|>Do you have that picture?<|eor|><|sor|>[This probably](https://i.imgur.com/OInMqrN.jpg)<|eor|><|sor|>Not the one I remember, but it defines "undefined"<|eor|><|sor|>It defines the concept of undefined, not an instance of it. Not a paradox.<|eor|><|eols|><|endoftext|>
214
programmerhumor
AnsNasty
gmgn7bq
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>I still remember being a first year student and not quite grasping Nulls until I saw the toilet paper roll picture lol<|eor|><|sor|>Do you have that picture?<|eor|><|sor|>[This probably](https://i.imgur.com/OInMqrN.jpg)<|eor|><|sor|>That definitely<|eor|><|eols|><|endoftext|>
205
programmerhumor
AyrA_ch
gmgqxz6
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>But how is it implemented in C# tho?<|eor|><|sor|>Either make a custom delegate that gets passed as argument, or be lazy and use [one of the Func<> types](https://docs.microsoft.com/en-us/dotnet/api/system.func-17?view=net-5.0). (Or `Action<>` if no return type is needed)<|eor|><|eols|><|endoftext|>
174
programmerhumor
A_H_S_99
gmgrsw7
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>I still remember being a first year student and not quite grasping Nulls until I saw the toilet paper roll picture lol<|eor|><|sor|>Do you have that picture?<|eor|><|sor|>[This probably](https://i.imgur.com/OInMqrN.jpg)<|eor|><|sor|>Not the one I remember, but it defines "undefined"<|eor|><|eols|><|endoftext|>
158
programmerhumor
CarefulCoderX
gmgsi2t
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>I was a TA and tutor in college and can't tell you how many times I explained something using a metaphor and it clicked instantly. Then often was told I was better than the professor at explaining it. So many faculty just don't take teaching seriously.<|eor|><|eols|><|endoftext|>
124
programmerhumor
tech6hutch
gmhcjzv
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>I still remember being a first year student and not quite grasping Nulls until I saw the toilet paper roll picture lol<|eor|><|sor|>Those things really help!<|eor|><|sor|>Those bastard cops. How dare they?<|eor|><|sor|>Wtf are you talking about<|eor|><|eols|><|endoftext|>
124
programmerhumor
Arcadianer
gmg69lo
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>Noice<|eor|><|eols|><|endoftext|>
122
programmerhumor
jakethedumbmistake
gmgws6w
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>I still remember being a first year student and not quite grasping Nulls until I saw the toilet paper roll picture lol<|eor|><|sor|>Those things really help!<|eor|><|sor|>Those bastard cops. How dare they?<|eor|><|eols|><|endoftext|>
109
programmerhumor
golgol12
gmh9ulg
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>I still remember being a first year student and not quite grasping Nulls until I saw the toilet paper roll picture lol<|eor|><|sor|>That's because pointers are a concept that is hard for some students. Null is a special case pointer. My sister is a teacher (middle/high school level) and needs to explain them. She's been hounding me on what they are exactly. So I've been refactoring my explanation of pointers till she finally got it. Teach arrays. Arrays are pretty easy to understand. Now imagine if you made an array that takes up all the memory in the computer. A pointer is an index into that imaginary array. From there, what is a "null"? Sometimes, developers need pretend the pointer is not set to anything in that array. So decades ago a convention came about. Don't use index 0 into that array for anything. That way if a pointer is 0, then we know the pointer isn't set yet. 0 is useful because of how if statements work with numbers. 0 = false, everything else is true. This turns out to be very handy because then you can write "if( pointer ) { do things with pointer }", which is something you do a whole bunch. EDIT: This description is keyed off the C language. Once you understand pointers in C, extrapolating to other languages is an easy jump to make.<|eor|><|eols|><|endoftext|>
87
programmerhumor
anubus72
gmhe5bf
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>I still remember being a first year student and not quite grasping Nulls until I saw the toilet paper roll picture lol<|eor|><|sor|>That's because pointers are a concept that is hard for some students. Null is a special case pointer. My sister is a teacher (middle/high school level) and needs to explain them. She's been hounding me on what they are exactly. So I've been refactoring my explanation of pointers till she finally got it. Teach arrays. Arrays are pretty easy to understand. Now imagine if you made an array that takes up all the memory in the computer. A pointer is an index into that imaginary array. From there, what is a "null"? Sometimes, developers need pretend the pointer is not set to anything in that array. So decades ago a convention came about. Don't use index 0 into that array for anything. That way if a pointer is 0, then we know the pointer isn't set yet. 0 is useful because of how if statements work with numbers. 0 = false, everything else is true. This turns out to be very handy because then you can write "if( pointer ) { do things with pointer }", which is something you do a whole bunch. EDIT: This description is keyed off the C language. Once you understand pointers in C, extrapolating to other languages is an easy jump to make.<|eor|><|sor|>No offense but I dont see how that explains a null value at all. Wouldnt your students come away thinking null = index 0 in an array, which is just wrong?<|eor|><|eols|><|endoftext|>
79
programmerhumor
AyrA_ch
gmgs70a
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>But how is it implemented in C# tho?<|eor|><|sor|>Either make a custom delegate that gets passed as argument, or be lazy and use [one of the Func<> types](https://docs.microsoft.com/en-us/dotnet/api/system.func-17?view=net-5.0). (Or `Action<>` if no return type is needed)<|eor|><|sor|>Who are you, who are so wise in the ways of ~~science~~ programming<|eor|><|sor|>Programming in C# for a decade now. Entity framework and Linq is heavily using delegates. Also muli threading in a Winforms requires you to invoke delegates in other threads. And of course there is this "JS does it, can I reproduce this nightmare in C#" question.<|eor|><|eols|><|endoftext|>
77
programmerhumor
Blacksun388
gmh6wwq
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>C#rly Rae Jepsen<|eor|><|eols|><|endoftext|>
72
programmerhumor
krisnarocks
gmgrj5j
<|sols|><|sot|>Why can't my teachers be like this?<|eot|><|sol|>https://i.redd.it/3r3lv6pr72g61.png<|eol|><|sor|>But how is it implemented in C# tho?<|eor|><|sor|>Either make a custom delegate that gets passed as argument, or be lazy and use [one of the Func<> types](https://docs.microsoft.com/en-us/dotnet/api/system.func-17?view=net-5.0). (Or `Action<>` if no return type is needed)<|eor|><|sor|>Who are you, who are so wise in the ways of ~~science~~ programming<|eor|><|eols|><|endoftext|>
64
programmerhumor
ablaniar
pszopm
<|sols|><|sot|>Little contribution to the indentation war<|eot|><|sol|>https://i.redd.it/1jh2k8j4dzo71.jpg<|eol|><|eols|><|endoftext|>
32,015
programmerhumor
Leowitz
hdt7a5b
<|sols|><|sot|>Little contribution to the indentation war<|eot|><|sol|>https://i.redd.it/1jh2k8j4dzo71.jpg<|eol|><|sor|>Weirdly the thing that bothers me most is not ending the lines with semicolons.<|eor|><|eols|><|endoftext|>
3,634
programmerhumor
TonySu
hdte7qe
<|sols|><|sot|>Little contribution to the indentation war<|eot|><|sol|>https://i.redd.it/1jh2k8j4dzo71.jpg<|eol|><|sor|>"*I wish I didn't have to put semicolons at the end of every line in C*" ***Monkey paw finger curls up***<|eor|><|eols|><|endoftext|>
1,604
programmerhumor
quasi-green
hdt8ygw
<|sols|><|sot|>Little contribution to the indentation war<|eot|><|sol|>https://i.redd.it/1jh2k8j4dzo71.jpg<|eol|><|sor|>Weirdly the thing that bothers me most is not ending the lines with semicolons.<|eor|><|sor|>you read the line from right to left<|eor|><|eols|><|endoftext|>
1,515
programmerhumor
EagleBearerAlexios
hdtbp05
<|sols|><|sot|>Little contribution to the indentation war<|eot|><|sol|>https://i.redd.it/1jh2k8j4dzo71.jpg<|eol|><|sor|>I hope your socks are wet and both sides of your pillow is warm.<|eor|><|eols|><|endoftext|>
1,011
programmerhumor
Conman9712
hdt47kd
<|sols|><|sot|>Little contribution to the indentation war<|eot|><|sol|>https://i.redd.it/1jh2k8j4dzo71.jpg<|eol|><|sor|>Thanks! I hate it!<|eor|><|eols|><|endoftext|>
926
programmerhumor
iamapizza
hdthmu0
<|sols|><|sot|>Little contribution to the indentation war<|eot|><|sol|>https://i.redd.it/1jh2k8j4dzo71.jpg<|eol|><|sor|>Weirdly the thing that bothers me most is not ending the lines with semicolons.<|eor|><|sor|>you read the line from right to left<|eor|><|sor|>Le Arabic C++<|eor|><|sor|>++<|eor|><|eols|><|endoftext|>
722
programmerhumor
dotmax
hdta9mz
<|sols|><|sot|>Little contribution to the indentation war<|eot|><|sol|>https://i.redd.it/1jh2k8j4dzo71.jpg<|eol|><|sor|>How about zero-width spaces?<|eor|><|eols|><|endoftext|>
553
programmerhumor
ForShotgun
hdtgf2i
<|sols|><|sot|>Little contribution to the indentation war<|eot|><|sol|>https://i.redd.it/1jh2k8j4dzo71.jpg<|eol|><|sor|>How about zero-width spaces?<|eor|><|sor|>How about you go fuck yourself<|eor|><|eols|><|endoftext|>
490
programmerhumor
Sassbjorn
hdu2og2
<|sols|><|sot|>Little contribution to the indentation war<|eot|><|sol|>https://i.redd.it/1jh2k8j4dzo71.jpg<|eol|><|sor|>"*I wish I didn't have to put semicolons at the end of every line in C*" ***Monkey paw finger curls up***<|eor|><|sor|>Ok, but does this even work?<|eor|><|sor|>Yeah, because whitespace doesn't do anything and a semicolon after a semicolon is just an empty line, which is also removed. The first semicolon of each line ends the previous line<|eor|><|eols|><|endoftext|>
455
programmerhumor
-_BABASURA_-
hdthz0a
<|sols|><|sot|>Little contribution to the indentation war<|eot|><|sol|>https://i.redd.it/1jh2k8j4dzo71.jpg<|eol|><|sor|>Weirdly the thing that bothers me most is not ending the lines with semicolons.<|eor|><|sor|>you read the line from right to left<|eor|><|sor|>Le Arabic C++<|eor|><|sor|>++<|eor|><|sor|>I cant tell if thats Arabic or australian.<|eor|><|eols|><|endoftext|>
455
programmerhumor
mrbmi513
hdt6uej
<|sols|><|sot|>Little contribution to the indentation war<|eot|><|sol|>https://i.redd.it/1jh2k8j4dzo71.jpg<|eol|><|sor|>That's a big `nop` from me.<|eor|><|eols|><|endoftext|>
419
programmerhumor
ash0011
hdtcq9f
<|sols|><|sot|>Little contribution to the indentation war<|eot|><|sol|>https://i.redd.it/1jh2k8j4dzo71.jpg<|eol|><|sor|>I hope your socks are wet and both sides of your pillow is warm.<|eor|><|sor|>Easy there Satan, let's keep it below 'I wish your Hot pocket be both molten and ice when you bite it'<|eor|><|eols|><|endoftext|>
375