jfabre
jfabre on Hacker News
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?
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.
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.
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."
I haven't talked to him in years.
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.
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.
Posted by
jfabre on Thursday May 11, 2023 @07:07PM
from the ask-hn dept.
I'm really confused about Oracle licensing.Is there a way for developers to run an Oracle db on their machine for a service that already runs in production without having to pay for a license?Been working for a couple months for a big co that mainly uses Oracle as their database and how my team work is that we all share a remote dev database that some dba manages.I proposed that we all install...
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
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.
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.
I have not been following the whole thing super closely, no. Thank you for the links.
do you have data to back this claim?
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.
Assuming your question wasn't sarcasm. Literally everyone lie to themselves about one thing or another... Including me, and probably including you.
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.
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.
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.
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.
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.
I listened to 2 minutes and it seems promising, thank you.
I didn't write my choices to start debating them with people. People are more than what you or I think of them. Be mindful of your reductionist view towards other people. You have done that 3 times in your reply.
1- Here's a video explaining his rationale: https://www.youtube.com/watch?v=CU5TIKTZzk4
2- Yeah, no. Elon has accomplished more than all of us and it will surely stay that way until we die. So I'm not going to tolerate you calling him a hype person, a narcissist and a terrible leader when he has a track record of immense success. He's aiming high with ambitious ideas, who cares if Hyperloop didn't work after all. Try to make a business successful and see how difficult it is.
3- You seem again, to rely on opinion hit pieces to forge your ideas.
If I remember correctly he's been advocating for socialism a lot in his late years, which I think would be even worse than what we have today and would naturally descend into totalitarianism like it happened so many times in the past.
Well, I suggest you search them on youtube to have an accurate representation. They all have multiple interviews available. I will probably butcher them and it's not going to be exhaustive, but from the top of my head:
Peter Thiel: His contrarian views enlightened me many many times, for example his views that higher education is not a temple of knowledge anymore, but a big elitist economic bubble. I also suggest you read his book Zero to One, I liked it a lot.
Elon Musk: One could argue he's not really a thinker, since he's working so much on his businesses. Even so, it's evident that he thinks a lot and very deeply. He's willing to figure out the big picture of what's good for humanity and go all-in on it.
Rand: Her philosophy and her system of values which is in a deep contrast with what is preached everywhere else. This would be a start: https://www.youtube.com/watch?v=mQVrMzWtqgU
Yup, I think that his views on how governments and bigco operate are spot-on. Manufacture of Consent was eye opening for me. I disagree with him politically. Also, anarchy is not so far away from libertarianism.
In alphabetical order,
Ayn Rand
Elon Musk
Eric Weinstein
Jordan Peterson
Joscha Bach
Noam Chomsky
Paul Graham
Yeah that's cheesy, but his essays had a big influence on me and is the reason I'm on this forum.
Peter Thiel
Thomas Sowell
Why don't you name a woman thinker you admire instead of complaining about other people choice.
Reading from the comments, I'm astounded that the recruiters seem to think interviewing for a job is a one-way street where only the employer should validate if the employee is a good fit for the employer.
I'm literally investing 40+ hours a week of my life into your company for at least the next 2 years and you think I won't vet you before accepting your offer?
You need a reality check.