jfabre
|
4 months ago
|
on: Ruby already solved my problem
But what do you mean, give me a real example. You loaded too many active_records in memory and it's using a ton of ram? Did you try pluck, batches or even skipping active_record and using a raw query?
Unless you really need to scale for a ton of users, you don't have to go crazy to get decent performances out of rails/ruby. How many requests/sec are we even talking about here?
jfabre
|
4 months ago
|
on: Ruby already solved my problem
Doesn't matter if SQLite is now viable with rails, no legacy rails app is using it and it's not like you're going to wake up one morning and migrate your production db from postgres, mysql, sql server or oracle just because you felt like it.
In theory the language is slow, in practice it doesn't really matter because the db is much slower unless you're github or twitter and you really need to scale.
When you choose ruby, you trade faster dev time for slower runtime. I am OK with this trade-off 99% of the time. My dev time costs way more than a couple ms lost on my production server.
jfabre
|
4 months ago
|
on: Ruby already solved my problem
There are plenty of businesses that have under 10k users and can live perfectly well with http requests around 500-1000 ms. When there are performance issues, 95% of the times they come from the database, not the language.
jfabre
|
5 months ago
|
on: Ruby Blocks
Modules (mixins) are objects, classes are also objects (of type Class).
The Kernel module is included in the Object class, which means its methods are available to every Ruby object and can be accessed from virtually any scope, including the top-level (global) context where self is an instance of Object called "main."
jfabre
|
2 years ago
|
on: Airbnb's Devastating Effect on Canadian Housing
I haven't talked to him in years.
jfabre
|
2 years ago
|
on: Airbnb's Devastating Effect on Canadian Housing
I think you're unto something. Totally anecdotal, but my father owns around ~10 houses and small apartment buildings in Canada. I think he managed to acquire them all through mortgage refinancing or something like that I really have no idea. He rents the properties to people.
Even though he's a hard worker, he has a normal 9-5 job and his income is pretty standard for a salaried worker. Knowing him, I'm sure he didn't come up with the idea himself, so I bet this is a relatively common thing to do for mid to high income baby-boomers.
I could be totally off base here, but I can see that if most people have the leverage to own 10 houses in Canada through some financial instruments with the banks this could lead to a housing bubble.
jfabre
|
2 years ago
|
on: Ruby 3.3's YJIT: Faster While Using Less Memory
For what use-case? Because I've been developing in ruby for over 10 years now and it has been the optimal choice for a ton of companies I've worked for. The lack of static typing is a feature for a lot of people.
jfabre
|
2 years ago
|
on: Why is inflation so sticky? It could be corporate profits
I honestly can't believe you're being downvoted when you have the most sensible answer here. The government here in Canada created MASSIVE supply of money out of thin air to keep up with the US and put almost 1/3 of the population on social welfare and everyone is pointing fingers to find who's the most greedy. It's the dumbest thing ever.
https://www.youtube.com/watch?v=GJ4TTNeSUdQ
jfabre
|
3 years ago
|
on: Reducing technical debt by valuing comments as much as code
jfabre
|
3 years ago
|
on: Reducing technical debt by valuing comments as much as code
The problem with this argument is that it's implying that there is no such thing as clear code. Sure some people think their code is clear when it is not, but that shouldn't stop you from striving to write clearer code.
A long time ago, I had a tendency to write comments to explain code that could be simplified. Refactoring it usually made the comments redundant.
Comments are still very useful when the why is unclear.
jfabre
|
3 years ago
|
on: When did our tools become our religion?
For every fervent user of X, I can find you 5 zealous irrational haters who are 100% convinced that X is just a religious fluff and that there is no way it's actually better than Y (what they are using). I have in fact, been guilty of that kind of thinking myself.
jfabre
|
3 years ago
|
on: Why Tesla removed radar and ultrasonic sensors [video]
I have not been following the whole thing super closely, no. Thank you for the links.
jfabre
|
3 years ago
|
on: Why Tesla removed radar and ultrasonic sensors [video]
do you have data to back this claim?
jfabre
|
3 years ago
|
on: Asdf – language tool version manager
Exactly, let's first acknowledge there is a problem, then we can find a solution.
Complaining for complaining is not helpful, but don't dismiss problems because no one can think of a better solution at the same time.
jfabre
|
3 years ago
|
on: Gamification affects software developers: Cautionary evidence from GitHub
Assuming your question wasn't sarcasm. Literally everyone lie to themselves about one thing or another... Including me, and probably including you.
jfabre
|
3 years ago
|
on: The Young People Working for the Most Evil Companies
You are aware that oil as an industry probably lifted the most people out of poverty in all human history right? Think of all the plastic you see in hospitals and ask yourself what would replace that without oil. It is so useful and valuable that countries are willing to go to war to secure its access. Things are never as black and white as people are willing to believe.
jfabre
|
3 years ago
|
on: Ask HN: Has anyone managed to find enjoyment in their work after burnout?
I just had somewhat of a burnout last winter and left my job. I'm lucky enough that I could take a couple months off to get back in shape mentally and physically.
Invest in yourself however you can, that means doing some sport you love and/or go see a therapist. What I'm realizing is that I have a lot of power over how I feel, way more than I previously believed. Make a conscious effort to let go of negative thoughts when they arise.
Make sure your house is in order, it's an extension of yourself. Do whatever you need to feel satisfied, it's your life. It is a mistake not to live it the way you want to. Be kind and patient with yourself.
Good luck.
jfabre
|
3 years ago
|
on: Deadlines are pointless – what to do instead
Only in a team of slackers. Some people are intrinsically motivated to do great work and be productive. They don't need fake dates to get things done.
jfabre
|
3 years ago
|
on: The Koh-i-Noor diamond, and why the British won’t give it back (2017)
It's only absurd if you think that countries ought to behave like people in a society. All the laws and rules of societies serve one purpose, to keep themselves stable. The abstraction of Justice doesn't apply outside of society, unfortunately.
jfabre
|
3 years ago
|
on: Ask HN: Have tech salaries been stagnant for the past decade?
You seldom want to become an expert in a single technology. It's doable, but you're putting all your eggs in the same basket. What if the technology becomes irrelevant in 5-10 years?
Get good enough to be proficient and become a broad generalist. This is a much better route imo.
Unless you really need to scale for a ton of users, you don't have to go crazy to get decent performances out of rails/ruby. How many requests/sec are we even talking about here?