Better HN
topnewbestaskshowjobs
Log inSign up

simplify

2,061 karma · joined May 24, 2009 (17y ago) · 911 submissions

Submissions

comment 6y ago · link · parent

Maybe custom elements would help? https://developer.mozilla.org/en-US/docs/Web/Web_Components/...

There's also spruce when you need to share data across components https://github.com/ryangjchandler/spruce

comment 6y ago · link · parent

If you think people should be 100% selfless, you're asking for too much. Even good-hearted people help for the reward of feeling good about it.

comment 6y ago · link · parent

None of those things have the requirement of anonymity. You can verify those numbers at any time, unlike a vote.

comment 6y ago · link · parent

Why isn't what just HTML?

comment 6y ago · link · parent

Switching the voting system to approval voting[0] is probably the most effective action for how simple it is. It would greatly help solve the prevalent "only two parties are viable" problem, which should help remove the need to push for extreme viewpoints.

[0] https://ncase.me/ballot/

comment 6y ago · link · parent

Nature may be indifferent to our existence, but we are not indifferent to nature. How is this?

comment 6y ago · link · parent

Science can only "lead" you to that conclusion if you already think in specific philosophical ways. In this case it sounds like you are presuming materialism.

comment 6y ago · link · parent

> So if science leads you to the conclusion that life has no transcendent purpose (and it does)

How does it lead to that? I feel like that's a false assumption that many people make, religious or not.

comment 6y ago · link · parent

I generally feel the same way, but I've found Rails's testing setup is convenient enough to mitigate that uncertainty with relative ease. Writing some 3-5 line tests for each feature you write (which is necessary regardless of static testing) accomplishes a lot.

comment 6y ago · link · parent

This isn't unique to Rails apps. You'd have code organization tensions in any complex app you write.

Fortunately, for whatever you decide, you can create as many folders as you want in `app/` and Rails will detect & autoload them for you.

comment 6y ago · link · parent

My personal favorite icons are https://heroicons.dev . All tiny, elegant SVGs.

comment 6y ago · link · parent

I'm implying that these things are affected by your credit score.

comment 6y ago · link · parent

What if you need do anything significant with your money in those 7 years? Like rent an apartment? Have a car to get to work?

The debt doesn't just magically go away. Chapter 7 requires liquidating assets, and chapter 13 requires paying some loans back anyway. And besides, I don't see why loan companies couldn't require cosigners to reduce risk on these college loans.

comment 6y ago · link · parent

Bankruptcy negatively affects your credit score by a large amount, so it's not exactly an easy decision.

comment 6y ago · link · parent

> What's to stop someone from obtaining a useless degree that doesn't contribute to the nation's economy, and then discharges the debt in bankruptcy?

Nothing, and that's exactly why education debts need to be dischargeable like anything else.

Dischargeable loans makes loan companies have actual responsibility and consequences in deciding who to give loans to. Otherwise, they blindly give out loans (why not, there's no risk!), putting all that much money in the system, which college institutions are happy to absorb in higher tuition.

comment 6y ago · link · parent

Interesting. How many computers/servers/etc are involved in those queries?

comment 6y ago · link · parent

I was pretty hype on GPT-3, but got doused when considering its cost. Aside from the $4-12 million to train, just how much energy does it cost to run a query?

comment 6y ago · link · parent

> it doesn't exist because nobody really wants it.

Clearly not true, as there's two separate fullstack frameworks being actively developed[0][1], not mentioning the ones in the past (sails.js, meteor.js).

[0] https://github.com/blitz-js/blitz [1] https://github.com/redwoodjs/redwood

comment 6y ago · link · parent

As another avid Rubyist, I have great interest in my editor autocompleting code in Rails.

comment 6y ago · link · parent

Sure, but it's still not the core issue. If racism were magically solved overnight, very little would change. You'd still have these corrupt systems exploiting the weak and poor.

comment 6y ago · link · parent

As someone who started with Rails in 2010, rode the JS/Node hype train for 5 years, and now working with Rails again:

I was one of those guys that blamed Rails hard for encouraging bad code. But now that I'm a much better software developer, I've discovered Rails is actually fantastic for writing highly maintainable code. This is thanks to several things:

[A] Standard patterns. Yes, "The Rails Way" may seem to encourage bad code at first glance. But that's because it doesn't hand-hold you in your software design decisions. It's a solid foundation that 1. Takes care of the most common stuff so you don't have to reinvent the same crap over and over again, and 2. Leaves room to extend with an architecture (in plain old Ruby code) that fits your app's specific needs.

[B] Testing. A lot of people opt to use Rspec, but Rails's built-in testing is actually really great. My absolute favorite is their "Fast Integration Tests", which lets you write a few lines of code to test a big chunk of your app in a single test case.

[C] Ruby. Yes, it's actually a good language. But man, is it a double-edge sword. Used well, you can write some of the most simple, elegant, and maintainable code in your career, while only mildly pushing the boundaries of The Rails Way.

[D] Everything your app needs. So much stuff is built-in, and stays out of your way until you need it. And the fewer gems you need to install, the more maintainable your code tends to be.

Indeed, Rails is not legacy at all. Well, maybe if you think monoliths are legacy :) But it keeps up with the good trends. Version 5 introduced webpack, so now you can build your fancy JS frontends... without configuring webpack! Or be like me and only use JS as a last resort :)

To be honest, the only framework I can see doing better than Rails is Phoenix. At the moment it doesn't have everything Rails has to offer, but it does have (IMO) a superior foundation that has great potential to supersede. Until then though, I'll keep pumping out projects using the best tool on the market.

comment 6y ago · link · parent

Agreed, Sidekiq is great and I don't imagine anyone switching away from it for existing projects.

But I can see GoodJob being better for spinning up new projects, as there are fewer moving parts to worry about, and it's easy to upgrade to Sidekiq, etc. when you need to (thanks to ActiveJob's standard abstraction).

comment 6y ago · link · parent

I was thinking "what's the point?" until I reached the section on equality:

    #{ a: 1 } === #{ a: 1 }  //=> true
This is massively useful.

comment 6y ago · link · parent

This is the exact sort of thing I love about the Rails community. Always innovating to keep things simple.

comment 6y ago · link · parent

That trailer is phenomenal. The sheep-flying presentation, the music, the audio-visual rhythmic beats, the humor... truly fantastic artistry.

comment 6y ago · link · parent

Fantastic work! Datalog/Prolog are old-yet-futuristic technologies that I wished every developer knew about, as it solves a lot of problems in very elegant ways (as attested to by this post).

I noticed you (assuming you're the author) used what looks like a non-traditional Datalog syntax – which makes sense to me as, IMO, Datalog/Prolog desperately need first-class support for a record-like syntax to finally break into mainstream. Is there any prior work to this syntax, or did you just develop it as you needed it?

comment 6y ago · link · parent

Who controls the military?

comment 6y ago · link · parent

> The reality is that Chinese firms and government operates together intimately

In China, the government has more power than corporations. In the US, corporations have more power than the government.

comment 6y ago · link · parent

Great read, thanks for posting. I had mistakenly thought this for a while too.

comment 6y ago · link · parent

Because leaving is the best way to remove all pressure from leadership to change their ways.
1
8910
31