The JS part of my brain is so used to the idea that passing non primitive types around will NOT copy the underlying data that it’s so weird to see other languages not doing it…
To me it feels so unintuitive and sluggish to move things around like that, but rationally, I know my intuition was built over years of daily JS work, and I accept JS is actually the unintuitive one (I can vaguely remember having trouble to wrap my head around this JS behavior)
@pavelsvitek_ Js fn are heavily used as values, and for me, the “const name = () ={}” just make sense in this context.. That being said, that’s nitpicking as fuck, you do you frend
@pavelsvitek_ That’s a bit of a stretch.. something like “const Person = class {}” or “const ACL = enum{}” would be perfectly fine, specially for languages that treats these more like values than just types, or better yet, treat types as values. Zig is a good example of this.
That’s why I stay out of twitter. It always starts with me thinking “it would be nice to talk about things I think are cool and maybe someone will say oh this thing is cool, let’s talk about it” and ends up with me ranting for 3 tweets straight.. see you next time
If you can’t solve this CS problem instantly at first glance you’re not a real developer
~~insert “tricky fizzbuzzylike question that happened to click for you because brains are funny to cope with your insecurities” here~~
I haven't been using Redux for a while, probably for the same reason many other people did, but there's one thing I really miss: Having a clear, obvious way to organize things. Knowing exactly where code should go gave me some piece of mind , and I struggle now for not having it