58
u/gir2195 Sep 01 '20
I wouldn't trust them. They can't use "then/than" properly
30
u/-Dueck- Sep 01 '20
"e convert to int number"
That resembles English in some ways I guess.
4
2
u/joaoprp Sep 02 '20
This “e” is 100% Portuguese. It’s basically how we say “and”, and I don’t even realized until I read this comment.
60
u/Kilgaloon Sep 01 '20
Why not turn it into hex then binary, then use polymorpism to summon exodia?
17
u/NebbyOutOfTheBag Sep 01 '20
You meme. But I have the technology to cast keys into hex and binary and probably back, and pull from a Yu-Gi-Oh database. Don't tempt me
3
Sep 02 '20
Seto Kaiba appeared out of nowhere! Throws Exodia cards into the ocean! Sanity harshly fell!
29
u/brjukva Sep 02 '20
I once inherited some code where every argument to every function was string typed. Every function call involved converting arguments to string. The first thing every function would do is parse its string arguments back to their appropriate types.
I reached peak wtf per minute rate that day.
6
Sep 02 '20
...what language?
10
u/brjukva Sep 02 '20
C#
6
Sep 02 '20
This was to uh, serialize, right?
Do you happen to know why?
7
u/brjukva Sep 02 '20
It looks like the person who wrote this was a big fan of serialisation.
Dunno, I don't see any other explanation.
2
1
6
u/tangerinelion Sep 01 '20
They're not wrong. You *can* do that.
The question of *should* you is separate.
8
u/shriekingpanda Sep 01 '20
I work with a legacy code base that does all kinds of horrible things converting numbers back and forth to strings, so this is especially painful to me.
20
1
u/ikatono Sep 02 '20
I have a snippet I've been meaning to post that uses 2.0n instead of 1<<n. I'd honestly prefer strings.
3
2
u/Mrinin Sep 01 '20
is he trying to round a float to an integer or something? what's the goal here can someone explain
218
u/notger Sep 01 '20
Hope this guy got banned.
I will not even criticise this code, I will instead assume the guy wanted to troll someone or make a joke.