1,405 karma · joined Oct 28, 2016 (10y ago) · 474 submissions
comment 2y ago · link · parent
not really relevant, but anyone know where mad ned is at these days? haven't seen any new posts of his in a while, and i enjoyed a bunch of them.
comment 2y ago · link · parent
how does this happen? (i am not a snapchat user)
not even to begin talking about the political ramifications...
comment 2y ago · link · parent
as another commenter mentioned the thing about the branch prediction bit flipping in awk was quite something. the SE Toolkit to monitor kernel perf, which could run for years without issue - was something cool too. the guy who found and fixed a kernel bug offering the biggest performance win in Solaris 8 in the course of writing the first book in a series called Solaris Internals - wow. the description of "the can of worms project" in which they run workloads that look like what customers might use, things that that go beyond typical eng team benchmarks, and the meltdown prevention and heading off of customer issues, it's a great concept from my personal point of view. i appreciated the touching on other more human subjects like the capacity planning DB pricing calculator for customers and the bizdev, relationship, and product design points.
i started off being jealous of what the guy was saying but i was so blown away by everything that i had forgotten that feeling by the end of the article. it was replaced with awe.
comment 2y ago · link · parent
comment 2y ago · link · parent
> I figure that if you have knowledge that could benefit thousands of people, and it costs you next to nothing to share that knowledge, it’s your duty to do it.
As someone who has written a lot of docs over the years, there can often be a very high cost in terms of time and effort to document something.
comment 2y ago · link · parent
The thing about art, IMO, is that it does a great service for humanity in giving us hope, purpose, and something to live for. When you treat artists as a cost to just minimize, you make it harder for any of them to succeed at making a living doing their work. I believe that the effects of the very low streaming royalty payments will have a chilling effect on professional musicians making a real go of it.
comment 2y ago · link · parent
I once said - and still maintain - that all devs need a life-long lesson in empathy. For our users and our library consumers and so on.
It will be impossible to fix every conceivable issue and sometimes we will have to deprecate or break backward compatibility or features or whatever. But if maybe some more effort to understand and respect our users was made as a matter of course, then when we are users we will be more inclined to give the benefit of the doubt to the developer who created the thing.
Also the post made me laugh.
comment 2y ago · link · parent
comment 2y ago · link · parent
And that has a link to a paper: https://www.lse.ac.uk/News/News-Assets/PDFs/2021/Sentience-i...
Edit: but, you may be right; I cannot find any other source for this NZ news.
comment 2y ago · link · parent
however,
irb(main):001:0> value = false or true
=> true
irb(main):002:0> value
=> false
irb(main):003:0> value = false || true
=> true
irb(main):004:0> value
=> true
irb(main):005:0>
I believe if you use the `||` operator instead of `or`, then things just work out fine. I agree it is really annoying. But I am pretty sure if you use a tool like RuboCop https://github.com/rubocop/rubocop (a static code analysis tool) then it will catch bugs like this. Note that I am not recommending Ruby. But in my experience if I want to work with a language and it has a community style guide and a linter that enforces it, it will save me some heartache.Just editing to add this reference: https://rubystyle.guide/#and-or-flow
comment 2y ago · link · parent
i remember some years ago reflecting back on some software project that had gone well. in my head, it was a beautiful finished object that i'd created using the tools and frameworks available to me. it was perfect and flawless.
then i went back and read the code and saw so many TODOs and things that i would have accomplished had i only had more time. and i never did get a chance to finish those TODOs, but the project launched successfully and generated a lot of revenue.
comment 2y ago · link · parent
However, that was quite some time ago. Does anyone have any more recent opinions? How is it to work on a large modern Ruby or Rails codebase? Also, I saw some type annotations examples a few years back and thought they looked pretty ugly - is that how I would feel after some months using them, too?
comment 2y ago · link · parent
This is from September of last year but it definitely changed my mind about this stuff.
> In fact, however, the Wikimedia Foundation is richer than ever. Its assets and reserves (including an Endowment with the Tides Foundation now holding well over $100 million) have increased fivefold since 2015, and stood at an estimated $400 million at the end of March 2022.