Better HN
topnewbestaskshowjobs
Log inSign up

bin_bash

2,966 karma · joined Mar 3, 2021 (5y ago) · 970 submissions

FAANG engineer
Submissions

comment 4y ago · link · parent

You think Shopify should've written their backend in Rust? I really wonder if people saying this have ever used Rust.

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

> iirc it was them that was holding up node at that version

really? I thought it was Joyent? Would love a source on this.

comment 4y ago · link · parent

We gonna double-blind developers or something? I know Go and Ruby very well. I know what it takes to write in one vs the other.

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

I'm waiting until I hear some success people are having with it. I suspect the ecosystem is young and library support is minimal too.

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

fair enough, perhaps I should give it another look

comment 4y ago · link · parent

Biggest downside is you're likely committing yourself to the Microsoft stack and a single vendor for most of your technology.

I don't think it's necessarily the wrong decision but you have to decide if it's right for your project.

comment 4y ago · link · parent

Very clever to use markdown for this: makes it easy to implement on both sides. I would've probably done some kind of custom table DSL which would've been way worse.

comment 4y ago · link · parent

I don't think "fast" languages are automatically better, they have downsides for sure:

* 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

yeah I was thinking more like 1982

comment 4y ago · link · parent

I appreciate the tip but CBD didn't do anything for my anxiety. I tried several formulations including some with THC.

comment 4y ago · link · parent

traditionally yeah (my dad has orange juice every morning) but I don't think it's seen that way anymore for younger generations for most people

comment 4y ago · link · parent

TOML is great for simple things like a CLI config but not if you have an even somewhat complex hierarchy.

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

There has to be like 20-30 types of apples now. I can't keep track.

comment 4y ago · link · parent

Juice in general just seems terribly unhealthy in 2022. I enjoy it as a treat now and again but think of it more like a dessert rather than a part of my daily breakfast routine.

comment 4y ago · link · parent

Considering how it acknowledges Taiwan I think we can safely attribute that to oversight rather than malice.

comment 4y ago · link · parent

I had to quit Adderall, it made me an awful dad and husband too anxious to do anything other than work and I was only able to work on specific things. I was never able to focus generally on any particular thing with it. I’m on Strattera but it’s only 10 days in and it takes several weeks to kick in.

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

Agreed, nobody thinks you could run a dishwasher on this technology. My point is the only place where the article labeled mobile phones as “low power” was in this disclaimer to contrast it with other household appliances.

comment 4y ago · link · parent

It is about general electricity applications and not limited to computing. The article states:

> “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

I feel this article made a mistake by using Musk. His companies are notoriously frugal and demanding despite the market or how well they are doing. I presume the SpaceX coffee story isn’t even all that recent.

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

For those of us that live on the West coast there is a worse option: transients soiling it.

In my experience putting a value on something makes it more likely someone will steal it—which is the preferable outcome.

comment 4y ago · link · parent

It’s a reasonable amount for computing but not much else: heating, cooling, cooking, refrigeration, washing machine. Those all need vastly more electricity.

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

What like 10w? That’s nothing compared to almost any other application of electricity.

comment 4y ago · link · parent

There’s something about marginally screwing over your employer people at large companies seem to love.

comment 4y ago · link · parent

This is correct, Hershey’s contains butyric acid which people that are used to don’t taste: https://www.huffpost.com/entry/hersheys-chocolate-tastes-lik...

comment 4y ago · link · parent

This is Ben Thompson’s Aggregation Theory in a nutshell

https://stratechery.com/aggregation-theory/

comment 4y ago · link · parent

If the VC market is strong tech conferences can be pretty good. I’ve been wearing quality swag from companies like GitHub for years.

But generally speaking you’re right. Conference swag is usually junk and I rarely take the time to even pick it up anymore.

comment 4y ago · link · parent

This is one reason if you want to get rid of a couch or something it’s best to put it on the curb with a “$20” sign rather than one that says “free”.

If someone wants to buy it they’ll value it more and be easier to deal with. Or someone might just “steal” it.

comment 4y ago · link · parent

I see this argument a lot: companies shouldn’t offer more equity in a down market because employees wouldn’t be willing to give back equity if they were up significantly.

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.

1
131415
33