subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
programminghorror
FGUYEXE
wcbxfz
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|eols|><|endoftext|>
1,219
programminghorror
codebygloom
iibvf9d
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>Why do it in one step when you can do it in thousands!<|eor|><|eols|><|endoftext|>
278
programminghorror
Respect_Virtual
iid2dic
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>Why do it in one step when you can do it in thousands!<|eor|><|sor|>whats the correct way?<|eor|><|sor|>It's literally right in the code import random print(random.randint(0, 50000))<|eor|><|eols|><|endoftext|>
229
programminghorror
CaitaXD
iibw71t
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>The garage collector when you tell it to clean this crap<|eor|><|eols|><|endoftext|>
166
programminghorror
somewherecarebear
iicq180
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>Double random is more random than single random, obvio<|eor|><|eols|><|endoftext|>
163
programminghorror
Da-Blue-Guy
iicrz3m
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>The garage collector when you tell it to clean this crap<|eor|><|sor|>garage collector<|eor|><|eols|><|endoftext|>
121
programminghorror
shizzy0
iid96av
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>This is O(1) in time and space, people.<|eor|><|eols|><|endoftext|>
80
programminghorror
berkun5
iicvro2
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>The garage collector when you tell it to clean this crap<|eor|><|sor|>garage collector<|eor|><|sor|>garage collector<|eor|><|eols|><|endoftext|>
51
programminghorror
Respect_Virtual
iid4mco
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>Why do it in one step when you can do it in thousands!<|eor|><|sor|>whats the correct way?<|eor|><|sor|>It's literally right in the code import random print(random.randint(0, 50000))<|eor|><|sor|>wow okay thanks....
42
programminghorror
SIMPLE_MARK
iicwzf2
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>The garage collector when you tell it to clean this crap<|eor|><|sor|>garage collector<|eor|><|sor|>garage collector<|eor|><|sor|>garage collector<|eor|><|eols|><|endoftext|>
37
programminghorror
ThatDudeBesideYou
iibotkz
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>\*holds up spork\*<|eor|><|eols|><|endoftext|>
29
programminghorror
sentles
iid542g
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>The garage collector when you tell it to clean this crap<|eor|><|sor|>garage collector<|eor|><|sor|>garage collector<|eor|><|sor|>garage collector<|eor|><|sor|>garage collector<|eor|><|eols|><|endoftext|>
29
programminghorror
redpepper74
iidxyta
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>This is O(1) in time and space, people.<|eor|><|sor|>I think in spirit, its O(50,000)<|eor|><|eols|><|endoftext|>
27
programminghorror
SpaceWanderer22
iicv28e
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>Double random is more random than single random, obvio<|eor|><|sor|>Just like double Ro13<|eor|><|eols|><|endoftext|>
26
programminghorror
External-Dealer7368
iicffst
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>Be a bit devious and convert that for loop into a (not tail) recursive function.<|eor|><|eols|><|endoftext|>
23
programminghorror
BlackRedBurner
iicyf2o
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>The garage collector when you tell it to clean this crap<|eor|><|sor|>Most garages have garbage, so it is almost the same<|eor|><|eols|><|endoftext|>
23
programminghorror
EmojiMasterYT
iid62lw
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>The garage collector when you tell it to clean this crap<|eor|><|sor|>garage collector<|eor|><|sor|>garage collector<|eor|><|sor|>garage collector<|eor|><|sor|>garage collector<|eor|><|sor|>garage collector<|eor|><|eols|><|end...
21
programminghorror
shizzy0
iid8qjf
<|sols|><|sot|>Number Generator<|eot|><|sol|>https://i.redd.it/r0e0sknfvse91.png<|eol|><|sor|>I think it should only add the new random Int if its not in the list already<|eor|><|sor|>Could this be any worse? Yes, yes, it could.<|eor|><|eols|><|endoftext|>
20
programminghorror
kunal70006
i2ue1k
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|eols|><|endoftext|>
1,223
programminghorror
Mattigins
g0736in
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>Government website.. Lowest bidder gets the job<|eor|><|eols|><|endoftext|>
373
programminghorror
Akronae
g070jlt
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>`111111` `222222` When you're too lazy to use a debugger<|eor|><|eols|><|endoftext|>
310
programminghorror
kunal70006
g070lv4
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>`111111` `222222` When you're too lazy to use a debugger<|eor|><|soopr|>We all know that console logging is the superior way /s<|eoopr|><|eols|><|endoftext|>
171
programminghorror
kunal70006
g06zban
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|soopr|>Apologies for the poor picture but i think it makes it more on-brand<|eoopr|><|eols|><|endoftext|>
108
programminghorror
Earhacker
g075h53
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>`111111` `222222` When you're too lazy to use a debugger<|eor|><|soopr|>We all know that console logging is the superior way /s<|eoopr|><|sor|>I am faster with a conso...
98
programminghorror
-shayne
g074ank
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>For a 73 year old your debugging skills are quite impressive.<|eor|><|eols|><|endoftext|>
88
programminghorror
Scumbaggabriel
g072rzs
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>This is why you add an eslint rule to prohibit commits while console.log is still present.<|eor|><|eols|><|endoftext|>
87
programminghorror
sproingie
g07q4hr
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>Government website.. Lowest bidder gets the job<|eor|><|sor|>Lowest bidder among _qualified_ bids, which you'd think would mean a minumum quality floor, but really it ju...
82
programminghorror
kunal70006
g072tal
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>This is why you add an eslint rule to prohibit commits while console.log is still present.<|eor|><|soopr|>I don't think they're even using a linter tbh<|eoopr|><|eols|><...
71
programminghorror
0xF013
g073fuj
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>`111111` `222222` When you're too lazy to use a debugger<|eor|><|soopr|>We all know that console logging is the superior way /s<|eoopr|><|sor|>I am faster with a conso...
55
programminghorror
kunal70006
g0737vn
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>Government website.. Lowest bidder gets the job<|eor|><|soopr|>Yeah<|eoopr|><|eols|><|endoftext|>
54
programminghorror
kunal70006
g074cme
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>For a 73 year old your debugging skills are quite impressive.<|eor|><|soopr|>Ahahaha lmaoo. Guess I'm a 73 year old now<|eoopr|><|eols|><|endoftext|>
44
programminghorror
kunal70006
g074x6f
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>WHY IS YOUR EMAIL IN CAPS<|eor|><|soopr|>The text field auto capitalized it smh<|eoopr|><|eols|><|endoftext|>
33
programminghorror
var_root_admin
g073gdq
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>Talk about not deleting your console.logs when done testing. Although I'm guilty of this myself...regularly.<|eor|><|eols|><|endoftext|>
30
programminghorror
SkinnyJoshPeck
g07npua
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>Government website.. Lowest bidder gets the job<|eor|><|sor|>I know people say stuff like this, but it seems *much* more fiscally responsible for each state to hire two ...
27
programminghorror
pkspks
g076udc
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>Government websites are either built by the lowest bidder or by someone who knows someone in the government. It's a miracle things work at all.<|eor|><|eols|><|endoftext...
25
programminghorror
kunal70006
g073iye
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>`111111` `222222` When you're too lazy to use a debugger<|eor|><|soopr|>We all know that console logging is the superior way /s<|eoopr|><|sor|>I am faster with a conso...
24
programminghorror
reyad_mm
g074vb4
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>WHY IS YOUR EMAIL IN CAPS<|eor|><|eols|><|endoftext|>
23
programminghorror
sharddblade
g07l2rn
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>Are you a 73 year old female, born on September 24th, 1946, and a member of r/programminghorror on Reddit? Respect.<|eor|><|eols|><|endoftext|>
22
programminghorror
kunal70006
g07df2u
<|sols|><|sot|>Govt website froze so decided to snoop around, found this horror instead.<|eot|><|sol|>https://i.redd.it/507i9zedhre51.jpg<|eol|><|sor|>Is this your data? Are you a 73 year old, female web developer on reddit? or is there data from another user being shown?<|eor|><|soopr|>I did write that data in the fie...
20
programminghorror
KiKiHUN1
ofoqkg
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|eols|><|endoftext|>
1,220
programminghorror
TorTheMentor
h4ezyxo
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>You are currently number NaN in the queue. Your estimated wait time is object Object.<|eor|><|eols|><|endoftext|>
261
programminghorror
redct
h4f9yo5
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>You are currently number NaN in the queue. Your estimated wait time is object Object.<|eor|><|sor|>Thanks for waiting! Your representative `Uncaught SyntaxError: Unexpected token ' in JSON at posit...
163
programminghorror
nimitzhunter
h4dry1m
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>same intern that wrote those notifications.<|eor|><|eols|><|endoftext|>
151
programminghorror
LostTeleporter
h4eynbu
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>Damn is it only me who is noticing a ton of companies sending messages like that or is it a trend now<|eor|><|sor|>My theory : devs are revolting because they are being asked to return to the office...
76
programminghorror
netherlandsftw
h4g0z78
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>You are currently number NaN in the queue. Your estimated wait time is object Object.<|eor|><|sor|>It's funny because I had to fix an object object today.<|eor|><|sor|>I like to add console.log("[o...
66
programminghorror
4TH4RV-
h4eugur
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>Damn is it only me who is noticing a ton of companies sending messages like that or is it a trend now<|eor|><|eols|><|endoftext|>
46
programminghorror
yuval59
h4g23mi
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>You are currently number NaN in the queue. Your estimated wait time is object Object.<|eor|><|sor|>It's funny because I had to fix an object object today.<|eor|><|sor|>I like to add console.log("[o...
40
programminghorror
birsenek
h4fkcbl
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>You are currently number NaN in the queue. Your estimated wait time is object Object.<|eor|><|sor|>It's funny because I had to fix an object object today.<|eor|><|eols|><|endoftext|>
35
programminghorror
queueareste
h4f4483
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>Damn is it only me who is noticing a ton of companies sending messages like that or is it a trend now<|eor|><|sor|>My theory : devs are revolting because they are being asked to return to the office...
29
programminghorror
iamghostling
h4gj2a8
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>You are currently number NaN in the queue. Your estimated wait time is object Object.<|eor|><|sor|>Thanks for waiting! Your representative `Uncaught SyntaxError: Unexpected token ' in JSON at posit...
26
programminghorror
skjall
h4fc535
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>Ah bojler elad<|eor|><|sor|>Is this Swedish?<|eor|><|sor|>Not even close, looks like Hungarian to me.<|eor|><|eols|><|endoftext|>
20
programminghorror
5p4n911
h4ekg6i
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>Ah bojler elad<|eor|><|sor|>Olsc bicikli nemlopot<|eor|><|eols|><|endoftext|>
19
programminghorror
davelupt
h4g1coc
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>same intern that wrote those notifications.<|eor|><|sor|>HBOhNooooo<|eor|><|eols|><|endoftext|>
17
programminghorror
The6thExtinction
h4fitx3
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>Damn is it only me who is noticing a ton of companies sending messages like that or is it a trend now<|eor|><|sor|>https://en.m.wikipedia.org/wiki/Frequency_illusion<|eor|><|eols|><|endoftext|>
13
programminghorror
EisbarGFX
h4fhqet
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>Damn is it only me who is noticing a ton of companies sending messages like that or is it a trend now<|eor|><|sor|>My theory : devs are revolting because they are being asked to return to the office...
13
programminghorror
FragGirl86
h4el48i
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>Ah bojler elad<|eor|><|sor|>en is ezt akartam<|eor|><|eols|><|endoftext|>
12
programminghorror
Firehun
h4fbbjt
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>Ah bojler elad<|eor|><|sor|>Is this Swedish?<|eor|><|sor|>Hungarian<|eor|><|eols|><|endoftext|>
11
programminghorror
queueareste
h4fe5kt
<|sols|><|sot|>When the Samsung support page devs are tired<|eot|><|sol|>https://i.redd.it/fon44rtk1u971.png<|eol|><|sor|>Ah bojler elad<|eor|><|sor|>Is this Swedish?<|eor|><|sor|>Not even close, looks like Hungarian to me.<|eor|><|sor|>As an American, I see funky dots, I guess Swedish<|eor|><|eols|><|endoftext|>
11
programminghorror
miguelarman
g4cafp
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|eols|><|endoftext|>
1,213
programminghorror
meem1029
fnx7dmi
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>Scientist-written code. You can unfortunately tell.<|eor|><|sor|>I've seen that mentioned in this subreddit quite a bit, but I don't understand. I'm only a measly test automation engineer so I don't ...
324
programminghorror
miguelarman
fnwrdxj
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>Even if this is suboptimal, why would just iterating over every possible coordinate of a 2D array be slow? What is this, a million x million array?<|eor|><|soopr|>Yeah. It stores data from a particle...
291
programminghorror
miguelarman
fnwveiy
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>Hey OP. Dumb question, but I don't recognise the language. What is it? Thanks<|eor|><|soopr|>Matlab<|eoopr|><|eols|><|endoftext|>
227
programminghorror
ZylonBane
fnwr6lt
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>Even if this is suboptimal, why would just iterating over every possible coordinate of a 2D array be slow? What is this, a million x million array?<|eor|><|eols|><|endoftext|>
161
programminghorror
TheJP_
fnx4tql
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>Even if this is suboptimal, why would just iterating over every possible coordinate of a 2D array be slow? What is this, a million x million array?<|eor|><|soopr|>Yeah. It stores data from a particle...
128
programminghorror
Asmodis1
fnwmtxy
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>What does the `r(I, j) = 100` do<|eor|><|sor|>It sets the main diagonal of a matrix called `r` to the value 100<|eor|><|eols|><|endoftext|>
108
programminghorror
miguelarman
fnwntt8
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>Scientist-written code. You can unfortunately tell.<|eor|><|soopr|>Indeed<|eoopr|><|eols|><|endoftext|>
103
programminghorror
pterencephalon
fnx9rul
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>Scientist-written code. You can unfortunately tell.<|eor|><|sor|>I've seen that mentioned in this subreddit quite a bit, but I don't understand. I'm only a measly test automation engineer so I don't ...
103
programminghorror
xaygoat
fnx8eyg
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>Scientist-written code. You can unfortunately tell.<|eor|><|sor|>I've seen that mentioned in this subreddit quite a bit, but I don't understand. I'm only a measly test automation engineer so I don't ...
101
programminghorror
miguelarman
fnwo7hs
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>What would be a better version?<|eor|><|soopr|>Just a loop for one variable and then `r(i,i) = 100`<|eoopr|><|eols|><|endoftext|>
100
programminghorror
miguelarman
fnwua6b
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>What does the `r(I, j) = 100` do<|eor|><|sor|>It sets the main diagonal of a matrix called `r` to the value 100<|eor|><|soopr|>That's exactly right<|eoopr|><|sor|>then why 2 for loops?<|eor|><|soopr|...
97
programminghorror
daveysprockett
fnwx877
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>What would be a better version?<|eor|><|soopr|>Just a loop for one variable and then `r(i,i) = 100`<|eoopr|><|sor|>Use the (faster) built-in: r = eye(N);<|eor|><|eols|><|endoftext|>
88
programminghorror
Syrion_Wraith
fnx94sj
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>Scientist-written code. You can unfortunately tell.<|eor|><|sor|>I've seen that mentioned in this subreddit quite a bit, but I don't understand. I'm only a measly test automation engineer so I don't ...
88
programminghorror
Ta1sty
fnxctqy
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>Big O says NO!<|eor|><|eols|><|endoftext|>
87
programminghorror
ProfCrumpets
fnx5w89
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>Scientist-written code. You can unfortunately tell.<|eor|><|sor|>I've seen that mentioned in this subreddit quite a bit, but I don't understand. I'm only a measly test automation engineer so I don't ...
78
programminghorror
pterencephalon
fnxd0zh
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>Scientist-written code. You can unfortunately tell.<|eor|><|sor|>I've seen that mentioned in this subreddit quite a bit, but I don't understand. I'm only a measly test automation engineer so I don't ...
64
programminghorror
Syrion_Wraith
fnxbb6y
<|sols|><|sot|>My friend asked me why his code was so slow<|eot|><|sol|>https://i.redd.it/rf9piu2lett41.jpg<|eol|><|sor|>Scientist-written code. You can unfortunately tell.<|eor|><|sor|>I've seen that mentioned in this subreddit quite a bit, but I don't understand. I'm only a measly test automation engineer so I don't ...
61
programminghorror
Beneficial_Bug_4892
12v89xr
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|eols|><|endoftext|>
1,212
programminghorror
ToadSaidHi
jha2vyv
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>BrainF junior right here<|eor|><|eols|><|endoftext|>
316
programminghorror
Mr_Sky_Wanker
jhaybla
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>Where's the guy that translate code to text for blind people<|eor|><|eols|><|endoftext|>
293
programminghorror
beeteedee
jharj7k
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>I havent tried running it but it clearly wont work, the 347th `<<` should be a `>>`<|eor|><|eols|><|endoftext|>
225
programminghorror
LegoDinoMan
jhaq8mu
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>Hey man, can you help me with this bug?<|eor|><|eols|><|endoftext|>
142
programminghorror
Beneficial_Bug_4892
jha3cew
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>BrainF junior right here<|eor|><|soopr|>Hah, it really looks like BF. Shifting operators look nearly the same as moving commands<|eoopr|><|eols|><|endoftext|>
121
programminghorror
Chemical-Asparagus58
jhb36qg
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>Bitwise? More like bitstupid<|eor|><|eols|><|endoftext|>
118
programminghorror
MenshMindset
jhbgibe
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>Where's the guy that translate code to text for blind people<|eor|><|sor|>give em some time theyre going as fast as they can!<|eor|><|eols|><|endoftext|>
113
programminghorror
VonTum
jhbez9x
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>I havent tried running it but it clearly wont work, the 347th `<<` should be a `>>`<|eor|><|sor|>Found the ChatGPT<|eor|><|eols|><|endoftext|>
96
programminghorror
Magmagan
jhbak2w
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>Kinda disappointed it doesn't zoom out to generate ASCII art<|eor|><|eols|><|endoftext|>
76
programminghorror
sauravkrx
jhaq6x2
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>What does this code do?<|eor|><|sor|>the caption says "Outputs "Hello, world!" X86, Win32, Tcc."<|eor|><|eols|><|endoftext|>
72
programminghorror
Sentry45612
jhchtz1
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>Bitwise? More like bitstupid<|eor|><|sor|>Bitstupid? More like Lotstupid<|eor|><|eols|><|endoftext|>
60
programminghorror
MenshMindset
jhaxvgp
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>Lgtm<|eor|><|eols|><|endoftext|>
58
programminghorror
skothr
jha0ljt
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>I didn't fully believe the title until I clicked <|eor|><|eols|><|endoftext|>
53
programminghorror
SexyMuon
jhblpm8
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>Where's the guy that translate code to text for blind people<|eor|><|sor|>give em some time theyre going as fast as they can!<|eor|><|sor|>2 hours in and nothing, they probably gave up<|eor|><|eols|><|endoftext|>
50
programminghorror
illyay
jhbamn2
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>What does this code do?<|eor|><|soopr|>Its basic hello world in C<|eoopr|><|sor|>We learned C in comp sci 101. Can confirm. This was our first hello world program.<|eor|><|eols|><|endoftext|>
45
programminghorror
Beneficial_Bug_4892
jhb3n3a
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>What does this code do?<|eor|><|soopr|>Its basic hello world in C<|eoopr|><|eols|><|endoftext|>
43
programminghorror
Beneficial_Bug_4892
jhbdktz
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>what the hell is `'\x0C' + (char *)main` just why<|eor|><|soopr|>Any time you want to call function, you type something like f(). But name f by itself doesnt do anything. The things are happening only because of () operator. The f...
31
programminghorror
shizzy0
jhd0fux
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>I havent tried running it but it clearly wont work, the 347th `<<` should be a `>>`<|eor|><|sor|>Found the ChatGPT<|eor|><|sor|>More like ChadGPT.<|eor|><|eols|><|endoftext|>
28
programminghorror
MjolnirTheThunderer
jhapw27
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>What does this code do?<|eor|><|eols|><|endoftext|>
25
programminghorror
Beneficial_Bug_4892
jhbdqdw
<|sols|><|sot|>Bitwise hell<|eot|><|sol|>https://i.redd.it/vlp539ycqhva1.jpg<|eol|><|sor|>Kinda disappointed it doesn't zoom out to generate ASCII art<|eor|><|soopr|>I was too lazy to make an ASCII art, sorry<|eoopr|><|eols|><|endoftext|>
22
programminghorror
frantakiller
r2m1fr
<|sols|><|sot|>From an intro to programming course, submitted by a CS student<|eot|><|sol|>https://i.imgur.com/YKpYQKi.jpg<|eol|><|eols|><|endoftext|>
1,220
programminghorror
frantakiller
hm5dzus
<|sols|><|sot|>From an intro to programming course, submitted by a CS student<|eot|><|sol|>https://i.imgur.com/YKpYQKi.jpg<|eol|><|sor|>Huh what even is this doing<|eor|><|soopr|>Returning true if the first element in a list is 6. As for what it's supposed to do, I have zero idea.<|eoopr|><|eols|><|endoftext|>
317
programminghorror
rectoplasmus
hm5elcn
<|sols|><|sot|>From an intro to programming course, submitted by a CS student<|eot|><|sol|>https://i.imgur.com/YKpYQKi.jpg<|eol|><|sor|>Seems to me the teacher did a real bad job.<|eor|><|eols|><|endoftext|>
270