MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/shittyprogramming/comments/1s1lph3/here_is_my_take_on_this/
r/shittyprogramming • u/aryel-gois • Mar 23 '26
6 comments sorted by
23
This is non-idiomatic Golang. The function should be called age.Verify 😤😤😤
age.Verify
10
IRL it will be be print instead of panic, and after if block, prints "anyways"
6
defer func() { if r := recover(); r != nil { fmt.Println(r, "Anyway, continuing...") } }()
3
1
You should call rm -fr /
rm -fr /
That wouldn't ensure a child couldn't use it!
1 u/moonaligator Mar 28 '26 forgor --no-preserve-root and sudo
forgor --no-preserve-root and sudo
--no-preserve-root
sudo
23
u/pimp-bangin Mar 23 '26
This is non-idiomatic Golang. The function should be called
age.Verify😤😤😤10
u/ShitTalkingAssWipe Mar 23 '26
IRL it will be be print instead of panic, and after if block, prints "anyways"
6
u/RedAndBlack1832 Mar 23 '26
3
u/itsoctotv Mar 25 '26
1
u/who_you_are Mar 25 '26
You should call
rm -fr /That wouldn't ensure a child couldn't use it!