#cursedcode — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #cursedcode, aggregated by home.social.
-
Svårt att nå ut
Det blir inget Cursed Code i år 😔Ett utdrag ur Kodsnack 665, lyssna där poddar finns eller på kodsnack.se
#podcast #cursedCode #konferens #detBlevIngenCD -
Veckans Kodsnack är här: Malin Leverin och Gustav Nyberg berättar allt om hur det är att arrangera Cursed Code - konferens, hackathon, och en hel del annat i samma paket.
Och första året drog de ihop allt på bara fyra veckor!
https://kodsnack.se/665/, och överallt där poddar finns.
#podcast #konferens #halloween #cursedcode -
There should be a #printf format `%ꙮ` that just shits an unfeasible number of zeroes all over the place.
`printf("%ꙮ\n", 32)`
000000000032.0000000000
-
I've found the perfect way to make #rstats programmers scream in existential terror. Behold zero-indexed R!
Redefining reality with <15 lines of code is so hot right now.
Now watch as I calmly refer to v[0] while maintaining direct eye contact.
-
So I was looking at the recently released C'n'C source code and… oh boy.
Now I understand why that game was so crashy and slow. The code is full of cargo cult programming idioms, numerically unstable in other places, often merely truncates double to int, and (my personal favorite so far) implements 3D coordinate equality comparison by testing for bitwise equality of their constituent floating point values.
-
In today's instance of cursed JS: abusing await.
When Top-Level Await is available in ES modules, you can do this.
When the module is first evaluated, the key is evaluated. Note that this only works with keys, not with the values, even in a static block. -
in C we don't say "i hate you" instead we say "const" and i think that's beautiful #CursedCode
-
cleaned up the syntax for my C coroutines using computed gotos, and i think this is pretty much done. very nice :ameowhappypaws:
#programming #CursedCode