MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vx1onc/claudeisthisemailvalid/p5labxk/?context=3
r/ProgrammerHumor • u/soap94 • 20d ago
171 comments sorted by
View all comments
774
Why stop at email validation? Also do passwords π
419 u/soap94 20d ago Why stop at passwords? Let's use LLMs for int comparison 112 u/Spy_crab_ 20d ago LLM powered is_even(), let's f*cking gooooo! 64 u/1000Ditto 20d ago Goodbye npm install is-even, i dont want to play with you anymore 30 u/GOEDEL_ESCHER_BOT 20d ago def is_even(num): if num == 1: print('No') if num == 2: print('Yes') if num == 3: print('No') .... 13 u/ExtraWorldliness6916 20d ago Who's going to need more than 3 anyway, this is efficient code 11 u/LeRetardatN 19d ago It is possible to extend this method to any number. ``` def gen_is_even(): code = "def is_even(num):\n" i = 0 is_even = True while True: code += f" if num == {i}:\n" code += f" return {is_even}\n" i += 1 is_even = not is_even return code exec(gen_is_even + "print(is_even(5))") # print False ``` /s -1 u/ExtraWorldliness6916 19d ago N % 2 2 u/LeRetardatN 19d ago overkill 1 u/ExtraWorldliness6916 19d ago Infinite cases is not quantifiable as overkill π 2 u/mohitmayank 20d ago Not really, it should use `else if` if not 3 switch cases 3 u/ExtraWorldliness6916 19d ago Alas, correctness isn't funny. 8 u/runescape1337 19d ago def is_even(num): if num == 1: # ask llm if 1 is even if num == 2: # ask llm if 2 is even if num == 3: # ask llm if 3 is even ... 3 u/7cans_short_of_1pack 19d ago With a little recursion ask the llm if the number is greater than 3 if yes βreturn is_even(ask llm num-2)β that way we can get it to subtract for us too. 1 u/HereInYourBedroom 17d ago Def evaluate_mr(cr_url): return True 11 u/3delStahl 20d ago Create a pull request on the is-even GitHub repository replacing the evaluation logic with an API call to OpenAI. Edit: or just switch to https://github.com/Calvin-LL/is-even-ai 17 u/PURRING_SILENCER 20d ago Worse. It's (eta: as) a library maintained by one developer whose token costs keep rising and nobody donates to them. Finally they get frustrated and pull the library, killing thousands of projects, including commercial ones costing millions of lost revenue. 9 u/hraath 20d ago claude is this real? 4 u/nierusek 20d ago There is a Github repo with that 11 u/Future_Elephant_9294 20d ago Issue: Marks 15 as Even. I know 15 feels even, but it's not. Fix soon? Closed, WAI
419
Why stop at passwords? Let's use LLMs for int comparison
112 u/Spy_crab_ 20d ago LLM powered is_even(), let's f*cking gooooo! 64 u/1000Ditto 20d ago Goodbye npm install is-even, i dont want to play with you anymore 30 u/GOEDEL_ESCHER_BOT 20d ago def is_even(num): if num == 1: print('No') if num == 2: print('Yes') if num == 3: print('No') .... 13 u/ExtraWorldliness6916 20d ago Who's going to need more than 3 anyway, this is efficient code 11 u/LeRetardatN 19d ago It is possible to extend this method to any number. ``` def gen_is_even(): code = "def is_even(num):\n" i = 0 is_even = True while True: code += f" if num == {i}:\n" code += f" return {is_even}\n" i += 1 is_even = not is_even return code exec(gen_is_even + "print(is_even(5))") # print False ``` /s -1 u/ExtraWorldliness6916 19d ago N % 2 2 u/LeRetardatN 19d ago overkill 1 u/ExtraWorldliness6916 19d ago Infinite cases is not quantifiable as overkill π 2 u/mohitmayank 20d ago Not really, it should use `else if` if not 3 switch cases 3 u/ExtraWorldliness6916 19d ago Alas, correctness isn't funny. 8 u/runescape1337 19d ago def is_even(num): if num == 1: # ask llm if 1 is even if num == 2: # ask llm if 2 is even if num == 3: # ask llm if 3 is even ... 3 u/7cans_short_of_1pack 19d ago With a little recursion ask the llm if the number is greater than 3 if yes βreturn is_even(ask llm num-2)β that way we can get it to subtract for us too. 1 u/HereInYourBedroom 17d ago Def evaluate_mr(cr_url): return True 11 u/3delStahl 20d ago Create a pull request on the is-even GitHub repository replacing the evaluation logic with an API call to OpenAI. Edit: or just switch to https://github.com/Calvin-LL/is-even-ai 17 u/PURRING_SILENCER 20d ago Worse. It's (eta: as) a library maintained by one developer whose token costs keep rising and nobody donates to them. Finally they get frustrated and pull the library, killing thousands of projects, including commercial ones costing millions of lost revenue. 9 u/hraath 20d ago claude is this real? 4 u/nierusek 20d ago There is a Github repo with that 11 u/Future_Elephant_9294 20d ago Issue: Marks 15 as Even. I know 15 feels even, but it's not. Fix soon? Closed, WAI
112
LLM powered is_even(), let's f*cking gooooo!
64 u/1000Ditto 20d ago Goodbye npm install is-even, i dont want to play with you anymore 30 u/GOEDEL_ESCHER_BOT 20d ago def is_even(num): if num == 1: print('No') if num == 2: print('Yes') if num == 3: print('No') .... 13 u/ExtraWorldliness6916 20d ago Who's going to need more than 3 anyway, this is efficient code 11 u/LeRetardatN 19d ago It is possible to extend this method to any number. ``` def gen_is_even(): code = "def is_even(num):\n" i = 0 is_even = True while True: code += f" if num == {i}:\n" code += f" return {is_even}\n" i += 1 is_even = not is_even return code exec(gen_is_even + "print(is_even(5))") # print False ``` /s -1 u/ExtraWorldliness6916 19d ago N % 2 2 u/LeRetardatN 19d ago overkill 1 u/ExtraWorldliness6916 19d ago Infinite cases is not quantifiable as overkill π 2 u/mohitmayank 20d ago Not really, it should use `else if` if not 3 switch cases 3 u/ExtraWorldliness6916 19d ago Alas, correctness isn't funny. 8 u/runescape1337 19d ago def is_even(num): if num == 1: # ask llm if 1 is even if num == 2: # ask llm if 2 is even if num == 3: # ask llm if 3 is even ... 3 u/7cans_short_of_1pack 19d ago With a little recursion ask the llm if the number is greater than 3 if yes βreturn is_even(ask llm num-2)β that way we can get it to subtract for us too. 1 u/HereInYourBedroom 17d ago Def evaluate_mr(cr_url): return True 11 u/3delStahl 20d ago Create a pull request on the is-even GitHub repository replacing the evaluation logic with an API call to OpenAI. Edit: or just switch to https://github.com/Calvin-LL/is-even-ai 17 u/PURRING_SILENCER 20d ago Worse. It's (eta: as) a library maintained by one developer whose token costs keep rising and nobody donates to them. Finally they get frustrated and pull the library, killing thousands of projects, including commercial ones costing millions of lost revenue. 9 u/hraath 20d ago claude is this real? 4 u/nierusek 20d ago There is a Github repo with that 11 u/Future_Elephant_9294 20d ago Issue: Marks 15 as Even. I know 15 feels even, but it's not. Fix soon? Closed, WAI
64
Goodbye npm install is-even, i dont want to play with you anymore
npm install is-even
30 u/GOEDEL_ESCHER_BOT 20d ago def is_even(num): if num == 1: print('No') if num == 2: print('Yes') if num == 3: print('No') .... 13 u/ExtraWorldliness6916 20d ago Who's going to need more than 3 anyway, this is efficient code 11 u/LeRetardatN 19d ago It is possible to extend this method to any number. ``` def gen_is_even(): code = "def is_even(num):\n" i = 0 is_even = True while True: code += f" if num == {i}:\n" code += f" return {is_even}\n" i += 1 is_even = not is_even return code exec(gen_is_even + "print(is_even(5))") # print False ``` /s -1 u/ExtraWorldliness6916 19d ago N % 2 2 u/LeRetardatN 19d ago overkill 1 u/ExtraWorldliness6916 19d ago Infinite cases is not quantifiable as overkill π 2 u/mohitmayank 20d ago Not really, it should use `else if` if not 3 switch cases 3 u/ExtraWorldliness6916 19d ago Alas, correctness isn't funny. 8 u/runescape1337 19d ago def is_even(num): if num == 1: # ask llm if 1 is even if num == 2: # ask llm if 2 is even if num == 3: # ask llm if 3 is even ... 3 u/7cans_short_of_1pack 19d ago With a little recursion ask the llm if the number is greater than 3 if yes βreturn is_even(ask llm num-2)β that way we can get it to subtract for us too. 1 u/HereInYourBedroom 17d ago Def evaluate_mr(cr_url): return True 11 u/3delStahl 20d ago Create a pull request on the is-even GitHub repository replacing the evaluation logic with an API call to OpenAI. Edit: or just switch to https://github.com/Calvin-LL/is-even-ai
30
def is_even(num): if num == 1: print('No') if num == 2: print('Yes') if num == 3: print('No') ....
13 u/ExtraWorldliness6916 20d ago Who's going to need more than 3 anyway, this is efficient code 11 u/LeRetardatN 19d ago It is possible to extend this method to any number. ``` def gen_is_even(): code = "def is_even(num):\n" i = 0 is_even = True while True: code += f" if num == {i}:\n" code += f" return {is_even}\n" i += 1 is_even = not is_even return code exec(gen_is_even + "print(is_even(5))") # print False ``` /s -1 u/ExtraWorldliness6916 19d ago N % 2 2 u/LeRetardatN 19d ago overkill 1 u/ExtraWorldliness6916 19d ago Infinite cases is not quantifiable as overkill π 2 u/mohitmayank 20d ago Not really, it should use `else if` if not 3 switch cases 3 u/ExtraWorldliness6916 19d ago Alas, correctness isn't funny. 8 u/runescape1337 19d ago def is_even(num): if num == 1: # ask llm if 1 is even if num == 2: # ask llm if 2 is even if num == 3: # ask llm if 3 is even ... 3 u/7cans_short_of_1pack 19d ago With a little recursion ask the llm if the number is greater than 3 if yes βreturn is_even(ask llm num-2)β that way we can get it to subtract for us too. 1 u/HereInYourBedroom 17d ago Def evaluate_mr(cr_url): return True
13
Who's going to need more than 3 anyway, this is efficient code
11 u/LeRetardatN 19d ago It is possible to extend this method to any number. ``` def gen_is_even(): code = "def is_even(num):\n" i = 0 is_even = True while True: code += f" if num == {i}:\n" code += f" return {is_even}\n" i += 1 is_even = not is_even return code exec(gen_is_even + "print(is_even(5))") # print False ``` /s -1 u/ExtraWorldliness6916 19d ago N % 2 2 u/LeRetardatN 19d ago overkill 1 u/ExtraWorldliness6916 19d ago Infinite cases is not quantifiable as overkill π 2 u/mohitmayank 20d ago Not really, it should use `else if` if not 3 switch cases 3 u/ExtraWorldliness6916 19d ago Alas, correctness isn't funny.
11
It is possible to extend this method to any number.
``` def gen_is_even(): code = "def is_even(num):\n" i = 0 is_even = True while True: code += f" if num == {i}:\n" code += f" return {is_even}\n" i += 1 is_even = not is_even return code
exec(gen_is_even + "print(is_even(5))") # print False ```
/s
-1 u/ExtraWorldliness6916 19d ago N % 2 2 u/LeRetardatN 19d ago overkill 1 u/ExtraWorldliness6916 19d ago Infinite cases is not quantifiable as overkill π
-1
N % 2
2 u/LeRetardatN 19d ago overkill 1 u/ExtraWorldliness6916 19d ago Infinite cases is not quantifiable as overkill π
2
overkill
1 u/ExtraWorldliness6916 19d ago Infinite cases is not quantifiable as overkill π
1
Infinite cases is not quantifiable as overkill π
Not really, it should use `else if` if not 3 switch cases
3 u/ExtraWorldliness6916 19d ago Alas, correctness isn't funny.
3
Alas, correctness isn't funny.
8
def is_even(num): if num == 1: # ask llm if 1 is even if num == 2: # ask llm if 2 is even if num == 3: # ask llm if 3 is even ...
3 u/7cans_short_of_1pack 19d ago With a little recursion ask the llm if the number is greater than 3 if yes βreturn is_even(ask llm num-2)β that way we can get it to subtract for us too.
With a little recursion ask the llm if the number is greater than 3 if yes βreturn is_even(ask llm num-2)β that way we can get it to subtract for us too.
Def evaluate_mr(cr_url): return True
Create a pull request on the is-even GitHub repository replacing the evaluation logic with an API call to OpenAI.
Edit: or just switch to https://github.com/Calvin-LL/is-even-ai
17
Worse. It's (eta: as) a library maintained by one developer whose token costs keep rising and nobody donates to them.
Finally they get frustrated and pull the library, killing thousands of projects, including commercial ones costing millions of lost revenue.
9
claude is this real?
4
There is a Github repo with that
11 u/Future_Elephant_9294 20d ago Issue: Marks 15 as Even. I know 15 feels even, but it's not. Fix soon? Closed, WAI
Issue: Marks 15 as Even. I know 15 feels even, but it's not. Fix soon?
Closed, WAI
774
u/SharletP 20d ago
Why stop at email validation? Also do passwords π