subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programminghorror | ImAStupidFace | h5j24uy | <|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>Must be the first regex that actually pings an address.<|eor|><|sor|>That reminds me... guess how equality comparison works for urls in Java?<|eor|><|sor|>Wa... | 148 |
programminghorror | glieseg | h5iruyx | <|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>`000\.000\.000\.000|000\.000\.000\.001|000\.000\.000\.002` and so on.<|eor|><|sor|>Now type out all solutions for an ipv6 address.<|eor|><|eols|><|endoftext|... | 115 |
programminghorror | 0x564A00 | h5iooqw | <|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>Must be the first regex that actually pings an address.<|eor|><|sor|>That reminds me... guess how equality comparison works for urls in Java?<|eor|><|eols|><... | 114 |
programminghorror | chloroformperfume221 | h5ig0c8 | <|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>Must be the first regex that actually pings an address.<|eor|><|sor|>The regex is self-aware.<|eor|><|sor|>The regex is Skynet.<|eor|><|eols|><|endoftext|> | 114 |
programminghorror | Direwolf202 | h5j2n5u | <|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>Must be the first regex that actually pings an address.<|eor|><|sor|>That reminds me... guess how equality comparison works for urls in Java?<|eor|><|sor|>Wa... | 100 |
programminghorror | terablast | h5iprju | <|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>The thing is, an Ipv4 adress is way more than this definiton see https://blog.dave.tf/post/ip-addr-parsing/<|eor|><|sor|>99.9% of the time it doesn't matter ... | 91 |
programminghorror | Thaddaeus-Tentakel | h5io3lm | <|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>The thing is, an Ipv4 adress is way more than this definiton see https://blog.dave.tf/post/ip-addr-parsing/<|eor|><|sor|>99.9% of the time it doesn't matter ... | 85 |
programminghorror | Papriker | h5ii6dh | <|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>Man Im happy that C# has a IP Class which has a TryParse function.<|eor|><|eols|><|endoftext|> | 79 |
programminghorror | Direwolf202 | h5iyejv | <|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>Must be the first regex that actually pings an address.<|eor|><|sor|>That reminds me... guess how equality comparison works for urls in Java?<|eor|><|sor|>Wa... | 76 |
programminghorror | Avamander | h5iljq5 | <|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>The thing is, an Ipv4 adress is way more than this definiton see https://blog.dave.tf/post/ip-addr-parsing/<|eor|><|sor|>99.9% of the time it doesn't matter ... | 66 |
programminghorror | ImAStupidFace | h5j4m90 | <|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>Must be the first regex that actually pings an address.<|eor|><|sor|>That reminds me... guess how equality comparison works for urls in Java?<|eor|><|sor|>Wa... | 62 |
programminghorror | equitable_emu | h5j687o | <|sols|><|sot|>Some poor soul submitted a 3678 character regex solution to validate an IP address???<|eot|><|sol|>https://i.redd.it/b4yfxu2xhrb71.jpg<|eol|><|sor|>Must be the first regex that actually pings an address.<|eor|><|sor|>That reminds me... guess how equality comparison works for urls in Java?<|eor|><|sor|>Wa... | 56 |
programminghorror | mans82 | ovoe17 | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|eols|><|endoftext|> | 2,149 |
programminghorror | Siccar_Point | h7av54u | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>Duplication of commit 11 is just ::chefs kiss::<|eor|><|eols|><|endoftext|> | 239 |
programminghorror | lordknight96 | h7apf8n | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>I literally saw my colleague do his changes, go back to previous git commands he typed in the terminal and ran them again which were
`git add .`
`git commit -m 'changes'`
`git push`<|eor|><|eols|><|endoftext|> | 204 |
programminghorror | diamondjim | h7avi3t | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>I literally saw my colleague do his changes, go back to previous git commands he typed in the terminal and ran them again which were
`git add .`
`git commit -m 'changes'`
`git push`<|eor|><|sor|>This anecdote is f... | 102 |
programminghorror | UnchainedMundane | h7avflt | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>Duplication of commit 11 is just ::chefs kiss::<|eor|><|sor|>It was bound to happen at some point lol. Might as well be safe and just make a script that goes `git commit -m "commit$((1+$(git rev-list --count HEAD)))"... | 88 |
programminghorror | larsmaehlum | h7arw4r | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>I literally saw my colleague do his changes, go back to previous git commands he typed in the terminal and ran them again which were
`git add .`
`git commit -m 'changes'`
`git push`<|eor|><|sor|>Might as well just... | 87 |
programminghorror | SirAchmed | h7bgjfs | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>I literally saw my colleague do his changes, go back to previous git commands he typed in the terminal and ran them again which were
`git add .`
`git commit -m 'changes'`
`git push`<|eor|><|sor|>Might as well just... | 67 |
programminghorror | Grepsd | h7b00of | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>I literally saw my colleague do his changes, go back to previous git commands he typed in the terminal and ran them again which were
`git add .`
`git commit -m 'changes'`
`git push`<|eor|><|sor|>`git commit -am ch... | 54 |
programminghorror | LeoXCV | h7be64s | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>I literally saw my colleague do his changes, go back to previous git commands he typed in the terminal and ran them again which were
`git add .`
`git commit -m 'changes'`
`git push`<|eor|><|sor|>This anecdote is f... | 53 |
programminghorror | hadesrdx | h7ar6pn | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>I was trying to go back to an older branch and literally saw [this](https://i.imgur.com/YKrIrxJ.png) last week. At this point why even bother man<|eor|><|eols|><|endoftext|> | 52 |
programminghorror | nuclear_gandhii | h7bgsbs | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>I literally saw my colleague do his changes, go back to previous git commands he typed in the terminal and ran them again which were
`git add .`
`git commit -m 'changes'`
`git push`<|eor|><|sor|>Might as well just... | 43 |
programminghorror | cmason37 | h7b95nb | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>Duplication of commit 11 is just ::chefs kiss::<|eor|><|sor|>that's just the cherry on top with this picture, thinking you're looking at an autocommit script but then realizing this is all manual & wondering... why??... | 38 |
programminghorror | MechanicalHorse | h7bcucu | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>I literally saw my colleague do his changes, go back to previous git commands he typed in the terminal and ran them again which were
`git add .`
`git commit -m 'changes'`
`git push`<|eor|><|sor|>This anecdote is f... | 36 |
programminghorror | Mac33 | h7b8n7k | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>I literally saw my colleague do his changes, go back to previous git commands he typed in the terminal and ran them again which were
`git add .`
`git commit -m 'changes'`
`git push`<|eor|><|sor|>As someone who is ... | 35 |
programminghorror | Bojangly7 | h7b4jtf | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>Duplication of commit 11 is just ::chefs kiss::<|eor|><|sor|>It was bound to happen at some point lol. Might as well be safe and just make a script that goes `git commit -m "commit$((1+$(git rev-list --count HEAD)))"... | 33 |
programminghorror | Bit5keptical | h7b3hse | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>We have people in my company who would literally write dates in commits. I don't get them, Like git is one of the best VCS and you think they didn't thought of adding dates to commits by default?<|eor|><|eols|><|endo... | 27 |
programminghorror | larsmaehlum | h7bgnxt | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>I literally saw my colleague do his changes, go back to previous git commands he typed in the terminal and ran them again which were
`git add .`
`git commit -m 'changes'`
`git push`<|eor|><|sor|>Might as well just... | 27 |
programminghorror | welcome_cumin | h7c1cgg | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>Duplication of commit 11 is just ::chefs kiss::<|eor|><|sor|>that's just the cherry on top with this picture, thinking you're looking at an autocommit script but then realizing this is all manual & wondering... why??... | 24 |
programminghorror | jumbo53 | h7ayat5 | <|sols|><|sot|>Very informative indeed...<|eot|><|sol|>https://i.redd.it/55kzz57zgpe71.png<|eol|><|sor|>I was trying to go back to an older branch and literally saw [this](https://i.imgur.com/YKrIrxJ.png) last week. At this point why even bother man<|eor|><|sor|>You can say he was committed...<|eor|><|eols|><|endoftext... | 21 |
programminghorror | Toxic_Juice23 | qw13ys | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|eols|><|endoftext|> | 2,142 |
programminghorror | Encursed1 | hkzzi74 | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|sor|>Might as well write a program to translate an actual program into E<|eor|><|eols|><|endoftext|> | 330 |
programminghorror | the_monkey_of_lies | hl0c77z | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|sor|>I'm looking for skilled E programmers for a huge autonomous vehicle project, please contact me for details. Applicants must be good at counting letters.<|eor|><|eols|><|endoftext|> | 132 |
programminghorror | _Nexor | hl0veas | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|sor|>Might as well write a program to translate an actual program into E<|eor|><|sor|>We shall call the compiler eee<|eor|><|eols|><|endoftext|> | 118 |
programminghorror | soiguapo | hl019u5 | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|sor|>I want you to do it again happier and with your mouth open.<|eor|><|eols|><|endoftext|> | 94 |
programminghorror | DeHub94 | hl15ykx | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|sor|>I'm looking for skilled E programmers for a huge autonomous vehicle project, please contact me for details. Applicants must be good at counting letters.<|eor|><|sor|>You forgot 15+ years of experience in E required.<|eor|><|eols|><|endofte... | 42 |
programminghorror | Roflkopt3r | hl0c7gs | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|sor|>https://esolangs.org/wiki/Brainfuck<|eor|><|sor|>[https://en.wikipedia.org/wiki/Malbolge](https://en.wikipedia.org/wiki/Malbolge)
Much worse.<|eor|><|sor|>I preferr Intercal:
DO ,1 <- #13
PLEASE DO ,1 SUB #1 <- #238
DO ,1 ... | 41 |
programminghorror | Toxic_Juice23 | hkzyrs5 | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|soopr|>This took me 20+ minutes :0<|eoopr|><|eols|><|endoftext|> | 40 |
programminghorror | ayunami2000 | hl0gud8 | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|sor|>I want you to do it again happier and with your mouth open.<|eor|><|sor|>[Relevant WKUK Video](https://youtu.be/PDvkScK9PzY)<|eor|><|eols|><|endoftext|> | 32 |
programminghorror | machine3lf | hl207cx | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|sor|>Might as well write a program to translate an actual program into E<|eor|><|sor|>We shall call the compiler eee<|eor|><|sor|>And we shall be called, The Programmers of eee.<|eor|><|eols|><|endoftext|> | 29 |
programminghorror | HTTP_404_NotFound | hkzz7hq | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|sor|>https://esolangs.org/wiki/Brainfuck<|eor|><|sor|>[https://en.wikipedia.org/wiki/Malbolge](https://en.wikipedia.org/wiki/Malbolge)
Much worse.<|eor|><|eols|><|endoftext|> | 27 |
programminghorror | _Xertz_ | hl0hcr3 | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|sor|>I'm looking for skilled E programmers for a huge autonomous vehicle project, please contact me for details. Applicants must be good at counting letters.<|eor|><|sor|>#E<|eor|><|eols|><|endoftext|> | 21 |
programminghorror | mohragk | hkzyfeq | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|sor|>https://esolangs.org/wiki/Brainfuck<|eor|><|eols|><|endoftext|> | 17 |
programminghorror | user4s | hl1jsb3 | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|sor|>I'm looking for skilled E programmers for a huge autonomous vehicle project, please contact me for details. Applicants must be good at counting letters.<|eor|><|sor|>You forgot 15+ years of experience in E required.<|eor|><|sor|>Shoot, I'm... | 17 |
programminghorror | Rc202402 | hl1e0px | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|sor|>Might as well write a program to translate an actual program into E<|eor|><|sor|>EA Codes.
To the code<|eor|><|eols|><|endoftext|> | 16 |
programminghorror | niceworkthere | hl1es0b | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|sor|>Might as well write a program to translate an actual program into E<|eor|><|sor|>been [translated to video](https://twitter.com/LTimeOffer/status/1139441167752237056) alright<|eor|><|eols|><|endoftext|> | 16 |
programminghorror | Toxic_Juice23 | hl14ixq | <|sols|><|sot|>E++<|eot|><|sol|>https://i.redd.it/lqkyg4y676081.png<|eol|><|sor|>[deleted]<|eor|><|soopr|>I took it a step further and actually wrote it using e not find and replace lmao<|eoopr|><|eols|><|endoftext|> | 16 |
programminghorror | papafrankusd1ck | l830ms | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|eols|><|endoftext|> | 2,134 |
programminghorror | IcyDawn | glag6g8 | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>That's a terrible way to test for it, but the regular expression is needless complex:
`\d{10}|\d{3}-\d{3}-\d{4}|\(\d{3}\)-\d{3}-\d{4}`
Would also work for the presented cases.<|eor|><... | 810 |
programminghorror | slugonamission | glb0lcx | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>That's a terrible way to test for it, but the regular expression is needless complex:
`\d{10}|\d{3}-\d{3}-\d{4}|\(\d{3}\)-\d{3}-\d{4}`
Would also work for the presented cases.<|eor|><... | 704 |
programminghorror | Tundur | glb9k2f | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>That's a terrible way to test for it, but the regular expression is needless complex:
`\d{10}|\d{3}-\d{3}-\d{4}|\(\d{3}\)-\d{3}-\d{4}`
Would also work for the presented cases.<|eor|><... | 433 |
programminghorror | Ralocan | glav7g0 | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>The plural of regex is regrets<|eor|><|eols|><|endoftext|> | 289 |
programminghorror | waremi | glba2w8 | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>That's a terrible way to test for it, but the regular expression is needless complex:
`\d{10}|\d{3}-\d{3}-\d{4}|\(\d{3}\)-\d{3}-\d{4}`
Would also work for the presented cases.<|eor|><... | 212 |
programminghorror | Spuddaccino1337 | glax16r | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>Man why not just take the input, strip out any non numeric value, and then check if there are 10 digits?<|eor|><|sor|>Because then it would accept "2 pounds of turkey, 1/2 cup butter, 3... | 201 |
programminghorror | DrStalker | glb1hpw | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>That's a terrible way to test for it, but the regular expression is needless complex:
`\d{10}|\d{3}-\d{3}-\d{4}|\(\d{3}\)-\d{3}-\d{4}`
Would also work for the presented cases.<|eor|><... | 186 |
programminghorror | snerp | glazzyx | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>I don't know what's wrong with you all.
The requirements clearly state it's supposed to match:
9999999999
999-999-9999
(999)-999-9999
Stop futzing about with other numbers!
(... | 144 |
programminghorror | Direwolf202 | glbjc4t | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>That's a terrible way to test for it, but the regular expression is needless complex:
`\d{10}|\d{3}-\d{3}-\d{4}|\(\d{3}\)-\d{3}-\d{4}`
Would also work for the presented cases.<|eor|><... | 106 |
programminghorror | veryusedrname | glahzin | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>Yap, this is illegal according to `Regex Bible \d{4}\.\d{3}\.{12}` - please stop using it immediately.<|eor|><|eols|><|endoftext|> | 93 |
programminghorror | AngriestSCV | glb2mmi | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>I don't know what's wrong with you all.
The requirements clearly state it's supposed to match:
9999999999
999-999-9999
(999)-999-9999
Stop futzing about with other numbers!
(... | 82 |
programminghorror | AngriestSCV | glb19ca | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>I don't know what's wrong with you all.
The requirements clearly state it's supposed to match:
9999999999
999-999-9999
(999)-999-9999
Stop futzing about with other numbers!
(... | 80 |
programminghorror | justingolden21 | glau5q1 | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>Man why not just take the input, strip out any non numeric value, and then check if there are 10 digits?<|eor|><|eols|><|endoftext|> | 71 |
programminghorror | iwasinlovewithyou | glaqd3q | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>That's a terrible way to test for it, but the regular expression is needless complex:
`\d{10}|\d{3}-\d{3}-\d{4}|\(\d{3}\)-\d{3}-\d{4}`
Would also work for the presented cases.<|eor|><... | 68 |
programminghorror | justingolden21 | glaxaal | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>Man why not just take the input, strip out any non numeric value, and then check if there are 10 digits?<|eor|><|sor|>Because then it would accept "2 pounds of turkey, 1/2 cup butter, 3... | 66 |
programminghorror | iwasinlovewithyou | glaprzk | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>That's a terrible way to test for it, but the regular expression is needless complex:
`\d{10}|\d{3}-\d{3}-\d{4}|\(\d{3}\)-\d{3}-\d{4}`
Would also work for the presented cases.<|eor|><... | 64 |
programminghorror | AyrA_ch | glbiudj | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>That's a terrible way to test for it, but the regular expression is needless complex:
`\d{10}|\d{3}-\d{3}-\d{4}|\(\d{3}\)-\d{3}-\d{4}`
Would also work for the presented cases.<|eor|><... | 53 |
programminghorror | waremi | glbkgik | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>That's a terrible way to test for it, but the regular expression is needless complex:
`\d{10}|\d{3}-\d{3}-\d{4}|\(\d{3}\)-\d{3}-\d{4}`
Would also work for the presented cases.<|eor|><... | 52 |
programminghorror | _somename_ | glcegte | <|sols|><|sot|>this feels so wrong yet so good when the tests are valid.<|eot|><|sol|>https://i.redd.it/5u8glr06ybe61.png<|eol|><|sor|>That's a terrible way to test for it, but the regular expression is needless complex:
`\d{10}|\d{3}-\d{3}-\d{4}|\(\d{3}\)-\d{3}-\d{4}`
Would also work for the presented cases.<|eor|><... | 44 |
programminghorror | jonathan_fortmann | mo2ubq | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|eols|><|endoftext|> | 2,122 |
programminghorror | It-Resolves | gu1i78x | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>The ide didn't say anything about that being unreferenced or anything?<|eor|><|eols|><|endoftext|> | 393 |
programminghorror | qqqrrrs_ | gu1j50k | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>It's not a token, it's a token<|eor|><|eols|><|endoftext|> | 223 |
programminghorror | drcopus | gu1ltfk | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>The ide didn't say anything about that being unreferenced or anything?<|eor|><|sor|>Looks like he might be using something lightweight like At... | 201 |
programminghorror | jonathan_fortmann | gu1thv8 | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>The ide didn't say anything about that being unreferenced or anything?<|eor|><|sor|>Looks like he might be using something lightweight like At... | 171 |
programminghorror | disappointer | gu2cd1o | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>The ide didn't say anything about that being unreferenced or anything?<|eor|><|sor|>Looks like he might be using something lightweight like At... | 119 |
programminghorror | Levaru | gu1cdkz | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>Am i fucking blind?<|eor|><|sor|>The "k" of the "{token}".<|eor|><|eols|><|endoftext|> | 98 |
programminghorror | Bob-The-One | gu2p22k | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>The ide didn't say anything about that being unreferenced or anything?<|eor|><|sor|>Looks like he might be using something lightweight like At... | 87 |
programminghorror | Smart-memer | gu19luj | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>Am i fucking blind?<|eor|><|eols|><|endoftext|> | 82 |
programminghorror | shinitakunai | gu1fnf1 | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>Am i fucking blind?<|eor|><|sor|>The "k" of the "{token}".<|eor|><|sor|>Omg that took me a lot of time to find. Probably because my language d... | 37 |
programminghorror | irracjonalny | gu25eo4 | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>O, that's fuced up<|eor|><|eols|><|endoftext|> | 35 |
programminghorror | tiredofsametab | gu205gb | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>It's not a token, it's a token<|eor|><|sor|>[deleted]<|eor|><|sor|>[deleted]<|eor|><|sor|>Looks Slavic. Google translate says Slovak.<|eor|><|... | 27 |
programminghorror | Terrain2 | gu1n3in | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>Am i fucking blind?<|eor|><|sor|>The "k" of the "{token}".<|eor|><|sor|>Omg that took me a lot of time to find. Probably because my language d... | 24 |
programminghorror | _g550_ | gu1kb1w | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>K with hat is read as double 'm': it's 'tommen', whose father-uncle always pays his depths.<|eor|><|eols|><|endoftext|> | 22 |
programminghorror | Jezoreczek | gu2b5ih | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>The ide didn't say anything about that being unreferenced or anything?<|eor|><|sor|>[deleted]<|eor|><|sor|>> if this wasn't python [...] then ... | 22 |
programminghorror | Bob-The-One | gu2vqtv | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>The ide didn't say anything about that being unreferenced or anything?<|eor|><|sor|>Looks like he might be using something lightweight like At... | 21 |
programminghorror | Bob-The-One | gu36vel | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>Looks like he might be using something lightweight like Atom or Sublime.<|eor|><|soopr|>Yes, I used sublime on my 7 year old laptop<|eoopr|><|... | 21 |
programminghorror | Fit_Sweet457 | gu2f9nn | <|sols|><|sot|>Can you see this thing on the ""? I didn't saw it in the last 4 hours, must have pressed weird keys.<|eot|><|sol|>https://i.redd.it/memky452ybs61.png<|eol|><|sor|>Thats why I use emacs. I can set a warning if I have non-ascii characters.<|eor|><|sor|>But then how can you use creative variable names like ... | 20 |
programminghorror | nahobino_aogami | qkivws | <|sols|><|sot|>Expressive Programming<|eot|><|sol|>https://i.redd.it/72p944c1q0x71.jpg<|eol|><|eols|><|endoftext|> | 2,098 |
programminghorror | 4sent4 | hiwrjk3 | <|sols|><|sot|>Expressive Programming<|eot|><|sol|>https://i.redd.it/72p944c1q0x71.jpg<|eol|><|sor|>"Explicit is better than implicit"<|eor|><|eols|><|endoftext|> | 392 |
programminghorror | Dornith | hiwvh9x | <|sols|><|sot|>Expressive Programming<|eot|><|sol|>https://i.redd.it/72p944c1q0x71.jpg<|eol|><|sor|>This seems like the opposite of horror.
I mean, sure, you can go overboard with it. But it's nice to have it explicitly spelled out that something was left intentionally uncovered.<|eor|><|eols|><|endoftext|> | 315 |
programminghorror | gastonci | hiwx0uo | <|sols|><|sot|>Expressive Programming<|eot|><|sol|>https://i.redd.it/72p944c1q0x71.jpg<|eol|><|sor|>"Explicit is better than implicit"<|eor|><|sor|>we had a coworker that always made as add the else nothing as a comment:
`//else does nothing`<|eor|><|eols|><|endoftext|> | 155 |
programminghorror | treacherous_tilapia | hixw79i | <|sols|><|sot|>Expressive Programming<|eot|><|sol|>https://i.redd.it/72p944c1q0x71.jpg<|eol|><|sor|>"Explicit is better than implicit"<|eor|><|sor|>we had a coworker that always made as add the else nothing as a comment:
`//else does nothing`<|eor|><|sor|>Ugh. I get the opposite. Hey, your code works, but you left the... | 130 |
programminghorror | ChadLare | hiwxueq | <|sols|><|sot|>Expressive Programming<|eot|><|sol|>https://i.redd.it/72p944c1q0x71.jpg<|eol|><|sor|>This seems like the opposite of horror.
I mean, sure, you can go overboard with it. But it's nice to have it explicitly spelled out that something was left intentionally uncovered.<|eor|><|sor|>I agree. You wouldnt do i... | 115 |
programminghorror | bunkabaab | hiwy4s2 | <|sols|><|sot|>Expressive Programming<|eot|><|sol|>https://i.redd.it/72p944c1q0x71.jpg<|eol|><|sor|>Your future self will thank you for this.<|eor|><|eols|><|endoftext|> | 94 |
programminghorror | Dornith | hix333l | <|sols|><|sot|>Expressive Programming<|eot|><|sol|>https://i.redd.it/72p944c1q0x71.jpg<|eol|><|sor|>This seems like the opposite of horror.
I mean, sure, you can go overboard with it. But it's nice to have it explicitly spelled out that something was left intentionally uncovered.<|eor|><|sor|>Shouldn't you write why n... | 39 |
programminghorror | Clickity_clickity | hiz7fl6 | <|sols|><|sot|>Expressive Programming<|eot|><|sol|>https://i.redd.it/72p944c1q0x71.jpg<|eol|><|sor|>This seems like the opposite of horror.
I mean, sure, you can go overboard with it. But it's nice to have it explicitly spelled out that something was left intentionally uncovered.<|eor|><|sor|>I agree. You wouldnt do i... | 37 |
programminghorror | DrShocker | hiylv5u | <|sols|><|sot|>Expressive Programming<|eot|><|sol|>https://i.redd.it/72p944c1q0x71.jpg<|eol|><|sor|>"Explicit is better than implicit"<|eor|><|sor|>we had a coworker that always made as add the else nothing as a comment:
`//else does nothing`<|eor|><|sor|>Ugh. I get the opposite. Hey, your code works, but you left the... | 37 |
programminghorror | bunkabaab | hix7mum | <|sols|><|sot|>Expressive Programming<|eot|><|sol|>https://i.redd.it/72p944c1q0x71.jpg<|eol|><|sor|>Your future self will thank you for this.<|eor|><|sor|>[deleted]<|eor|><|sor|>When you return to this project after forgetting about most of the methods you used to control the intricacies of it, you may find it handy to... | 31 |
programminghorror | TheNorthComesWithMe | hix4948 | <|sols|><|sot|>Expressive Programming<|eot|><|sol|>https://i.redd.it/72p944c1q0x71.jpg<|eol|><|sor|>This is fine, and in some cases preferred.
This, which I have seen, is not fine:
if (... conditions) {
// do nothing
} else {
... code here
}<|eor|><|eols|><|endoftext|> | 30 |
programminghorror | zigs | hix067a | <|sols|><|sot|>Expressive Programming<|eot|><|sol|>https://i.redd.it/72p944c1q0x71.jpg<|eol|><|sor|>This seems like the opposite of horror.
I mean, sure, you can go overboard with it. But it's nice to have it explicitly spelled out that something was left intentionally uncovered.<|eor|><|sor|>Shouldn't you write why n... | 29 |
programminghorror | slykethephoxenix | hixl78v | <|sols|><|sot|>Expressive Programming<|eot|><|sol|>https://i.redd.it/72p944c1q0x71.jpg<|eol|><|sor|>Depending on the circumstance (which we cannot see from the example), this may make perfect sense. I've done this before a few times when I thought it would improve the reader's understanding. (Usually, that's your own s... | 27 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.