2,966 karma · joined Mar 3, 2021 (5y ago) · 970 submissions
comment 4y ago · link · parent
Ruby is great for developers of all skill to learn and be productive.
Rust is fast as the devil but you have to be a damn good coder to learn it. Even then I doubt you can be as productive managing memory all the damn time. It's a low-level language great at low-level things.
Ruby is a great option for Shopify. Rust is a great option for Firefox's Servo (though that project failed so maybe not).
comment 4y ago · link · parent
Ruby is faster to write and more concise by a long shot—certainly if we're talking back-end web services. I prefer Go to Ruby generally but it's weird that Go developers tend not to even see how much yak shaving is involved with it. Or really any downside with it.
Try writing this in Go:
records = User.limit(10)
records.select { |user| user.is_admin? }.map{|user| "#{user.id} : #{user.name}"}comment 4y ago · link · parent
Last I heard (which was years ago) it was pretty much a solo project.
That said, the demo is really something and I like what they're doing. I hope one day it becomes my language of choice.
comment 4y ago · link · parent
* Rust - I do not understand the borrow checker at all and I'm a senior engineer at FAANG. I can barely write a simple function in Rust. I've struggled more learning Rust than any language (and I can write C and C++ just fine!)
* Go - I like Go, but there is a ton of boilerplate involved with writing it. Ruby is far more concise and you can get straight to business logic.
* Java - Even more boilerplate
* C/C++ - I think Ruby clearly wins on productivity here
comment 4y ago · link · parent
Of course if you can stay away from somewhat complex hierarchies then great! I can't imagine TOML ever working for something like a CI system or terraform config though.
comment 4y ago · link · parent
I go to the coffee shop and do 3 15-minute Pomodoros every morning. The combination of being at a dedicated place, limiting the work I have to do, and having a stimulant works reasonably well for me.
It’s amazing what you can get done in 45 minutes if you really focus. I struggle to write much—if any—code outside of that window. The rest of my day is chat, email, docs (reading or writing), or making simple one or two line fixes.
I was diagnosed in like the second grade and have struggled throughout my life. I’m in my mid-30s now.
comment 4y ago · link · parent
> “It’s not entirely straightforward,” he says. “So putting one on your roof isn’t going to provide the power supply for your house at this stage. There’s quite a bit more to do on that front. But [it could work] in rural areas of low and middle income countries, for example, in applications where a small amount of power might be very useful, such as environmental sensors or charging a mobile phone.”
comment 4y ago · link · parent
It’s trying to use that to make a more general argument about the tech industry changing how they’re treating employees. That may be true, but Musk is a poor example of it.
This article would’ve been better titled “Musk Treats Employees Like Crap” and didn’t try to group the tech industry in.
comment 4y ago · link · parent
About the only other household application of electricity I can think of that would use around 10w is lighting and even with LEDs it isn’t much. Probably enough for a single room.
My point is if mobile phones aren't considered “low power”, then what would be?
comment 4y ago · link · parent
comment 4y ago · link · parent
It doesn’t matter if this situation is “fair” though. What matters to the company is people will quit if they’re making half of what they expected to make.