5How to implement fully generic double dispatch in C++? c/cpp · by sociablefish@programming.dev · 2y · 1 comments
on Python's asyncio: A Hands-On Walkthrough · c/python · 1 pts · 1yI think he means this https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/
on *Permanently Deleted* · c/cpp · 1 pts · 2yfor my toy example i need runtime polymorphism and virtual inheritance
on *Permanently Deleted* · c/cpp · 2 pts · 2ysure 1st: https://godbolt.org/z/MqaqWjnzf 2nd: https://godbolt.org/z/erPsMKn19 3rd: https://godbolt.org/z/e1TjeEWzE
on The superior bracket style · c/programmer_humor · 2 pts · 2yim gonna install my own reformatter to reformat it back on my machine, win-win
on Pick a side Javascript · c/programmer_humor · 2 pts · 2y The default sorter does that, because that way it can sort pretty much anything without breaking at runtime. who the fuck decided that not breaking at runtime was more important than making sense? this js example of [1, 3, 10].sort() vs [1, 3, 10].sort((a, b) => a - b) will be my go to example of why good defaults are important
on Pick a side Javascript · c/programmer_humor · 1 pts · 2ywho uses utf 16? people either use utf 8 (for files) or utf 32 (for string class O(1) random access)
I think he means this https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/
for my toy example i need runtime polymorphism and virtual inheritance
sure 1st: https://godbolt.org/z/MqaqWjnzf 2nd: https://godbolt.org/z/erPsMKn19 3rd: https://godbolt.org/z/e1TjeEWzE
im gonna install my own reformatter to reformat it back on my machine, win-win
who the fuck decided that not breaking at runtime was more important than making sense?
this js example of
[1, 3, 10].sort()vs[1, 3, 10].sort((a, b) => a - b)will be my go to example of why good defaults are importantwho uses utf 16? people either use utf 8 (for files) or utf 32 (for string class O(1) random access)
yay