Better HN
topnewbestaskshowjobs
Log inSign up

rubyist5eva

1,522 karma · joined Aug 31, 2020 (6y ago) · 1,230 submissions

Submissions

comment 4y ago · link · parent

Legacy codebases that are “bad” usually have years of built-up domain knowledge and things to handle “gotchas” and corner cases that somebody new may not know about until they’ve spent a significant amount of time with.

I’ve seen it time and time again, with myself, colleagues above and below my grade, and devs I’m mentoring.

Chestertons Fence is a very important concept to have deeply engrained in your mind.

comment 4y ago · link · parent

At $CURRENT_JOB we run our postgres database on a massive bare-metal dedicated server running FreeBSD, our container hosts are Alma Linux 8 and the base images are typically debian-slim, though some are alpine or even scratch.

comment 4y ago · link · parent

Yes but it’s clunky. ZFS on FreeBSD is smooth as silk. Ubuntu is the only distro that I would say has good integration with ZFS but I don’t like anything else about Ubuntu.

comment 4y ago · link · parent

I use FreeBSD on servers instead of Linux for one reason: ZFS. It's really that much better than anything that is currently available on Linux. BTRFS is not even close.

Yes I know it's available on Ubuntu but everything else about Ubuntu is just so messy.

comment 4y ago · link · parent

WHERE filters before the aggregate. HAVING filters after the aggregate. What’s not to understand here?

comment 4y ago · link · parent

If Vlad Tenev is accepting responsibility he should resign. What a dumpster fire company.

comment 4y ago · link · parent

The node ecosystem is just a giant problem on top of problems.

comment 4y ago · link · parent

Stop trying to make Rails in things that can’t be rails. Rails is Rails uniquely because it is RUBY on Rails. It plays uniquely into Rubys strengths, that’s what makes it what it is.

comment 4y ago · link · parent

> Why would a human being feel that feeding children is NOT their responsibility?

Perhaps we should ask the parents who are encouraged to not feed their own children because of the existence of these programs.

comment 4y ago · link · parent

Why? If the backlog is empty you don’t have a job anymore.

comment 4y ago · link · parent

I know right? Software development isn’t grilling burgers it’s designing the grilling system and building the entire supply chain to get it shipped to the customer that is*.

comment 4y ago · link · parent

Jurassic Park was a warning you fools

comment 4y ago · link · parent

The index is an anti-feature in my opinion. People commit in chunks with no guarantees that these commits that are valid all together are valid individually.

comment 4y ago · link · parent

standard branches can serve this purpose

comment 4y ago · link · parent

trash software and a trash company that can’t make money that won’t be around much longer

comment 4y ago · link · parent

One thing that I could find in the article: performance.

At least for our use case, soft deletes made everything slower because it's much harder to index. For our database we basically had to do an audit of all of our WHERE clauses and create partial indexes on "not yet deleted" records. Of course, this bloats your indexes/disk and hurts write performance so it's not a silver bullet.

We've also taken to inserting into "delete records tables" for records we may want to recover or for historical reasons. You still lose foreign keys but indexing and query optimization is a lot easier, and your old data is just still a simple query away.

comment 4y ago · link · parent

Something about bad “rusty spoon” diner coffee just tickles my fancy. It’s usually burnt, is technically not pleasant at all, and yet I can’t get enough of it. Probably more nostalgia for all of the friendships and conversations had over it over the years than the coffee itself. For all it’s flaws the human condition can be wonderful sometimes…

comment 4y ago · link · parent

But then I have to figure out how to exit vim.

comment 4y ago · link · parent

Just did a quick search about embedding go code in Ruby applications and it looks relatively straightforward…looks like I have a weekend project on my hands :)

comment 4y ago · link · parent

How hard would it to use this as a library? Our application does a lot of CSV processing and would love to try and see if this could help us streamline a lot of that.

Our application is written in Ruby so I was thinking just writing a wrapper which shells out to the cli.

comment 4y ago · link · parent

Never heard of it but will check it out

comment 4y ago · link · parent

How? I’ve been writing Ruby and Rails for over a decade and I can’t really say it’s ever been a problem for me.

comment 4y ago · link · parent

Thanks for the response.

We considered starting with the raw queries and adding apis later, but unfortunately it just didn't make sense for us as it was ultimately less effort to just use our existing SSR rails views and we wouldn't have to dedicated more resources to augmenting internal tools even more, or managing the extra infrastructure needed for appsmith (hosted solution on other infrastructure was not an option unfortunately) - we don't use mongodb so adding it (for the appsmith datastore) to our infra was not something we really wanted to do either.

We did decide to revisit in the future as we are building some distributed services and appsmith might be a better fit then when we need to build a unified UI for all of our services.

comment 4y ago · link · parent

I’ve never heard good things about the experience of using leapp and it always seems like an unloved project.

Upgrading major versions of RHEL is akin to jumping 5+ versions of Fedora at once and I don’t think it could ever really work well without waaaaay too much work that probably isn’t worth it.

The Alma Linux “elevate” project seems to be attempting that using leapp as a framework but also allowing migration between RHEL derivatives so we’ll see how that pans out I guess.

comment 4y ago · link · parent

We evaluated trying to use appsmith for replacing our handmade admin panel but doing things like setting up pagination for databases was not particularly pleasant, basically writing raw sql with template strings. Yuck.

Our app would’ve needed a bunch of new apis added to it to make it workable that we just weren’t willing to invest in at the time so we’re sticking with our plain html pages and smatteringgs of js for now.

comment 4y ago · link · parent

My uncle was the only one with a gaming PC in my family and many many sleepovers were had playing Doom and Scorched Earth all night with my cousin. Nothing quite has captured that magic since then for me.

Elden Ring gets pretty close, but that’s a solo experience more akin to the kind of influence Ocarina of Time had than Doom, I guess.

Maybe I’m just old and cynical.

comment 4y ago · link · parent

I’ve only ever heard negative things about Leapp and it always seemed like an unloved side thing, which is why I didn’t mention it.

comment 4y ago · link · parent

Debian, Ubuntu and OpenSUSE Leap all support in-place upgrades between major versions. RedHat/CentOS do not.

comment 4y ago · link · parent

The Alma Linux team does incredible work, it's my goto distro since it was first released :)
1
789
41