HNHacker News
TopNewBestAskShowJobs

BenMorganIO

42 karma · joined June 21, 2014

[ my public key: https://keybase.io/benmorganio; my proof: https://keybase.io/benmorganio/sigs/3eAarRQryKqfMpmmaUkpeM23FODKOPXEuAueu3ErHlw ]
submissionscomments
BenMorganIO··on Ask HN: Inherited the worst code and tech team I have ever seen. How to fix it?
I would start with asking the backend and front-end developers to learn Laravel and begin using it. All code review should be quite strict. It's going to suck for a while, but that's just the way of it.

Set up two nginx servers. One that's your usual to load Laravel and the other to the legacy nginx server that acts as routing to the legacy application. I would even recommend using OpenResty to help delegate if you need something intelligent.

I would strongly discourage a JS framework that would add increased complexity when you need to keep things focused. The front-end would need to be recorded in Laravel and brought back over in a clean fashion.

Set up a CI and ensure all the code that goes over to Laravel is near 100% tested. Might also be useful to set up a visual regression test tool such as Percy to ensure everything moves over nice. Push for SMACCS and BEM to keep things consistent. Or just make new styling for the new pages to surprise the users.

Rewrites are a trap though and can be painful. Keep a balance of features entering Laravel and the big foxes entering the legacy app. I would recommend RabbitMQ to communicate between them.

BenMorganIO··on Common mistakes in PostgreSQL
You sure? All the projects I've worked on have used snake case. I've only seen newcomers to programming use capitalized table names.
BenMorganIO··on Common mistakes in PostgreSQL
When to Use MySQL?

Never.

BenMorganIO··on Fearing More Violence, Sri Lanka Silences Social Media
Dangerous human beings can't be trusted.
BenMorganIO··on Types will be part of Ruby 3 stdlib source
But that would make the hash braces redundant so you could just use parenthesis.
BenMorganIO··on A physics master’s degree opens doors to myriad careers
I have met a physicist at Perimeter Institute who went all the way to Engineering at Master level and pivoted to Physics PhD. If he could do that, I'm sure you can. I do not remember his name, just his face.
BenMorganIO··on Sony reveals PlayStation 5 details
Except film produced with film. Godfather is supposed to look spectacular since it was film, Star Wars though needs a lot more work.
BenMorganIO··on Sony reveals PlayStation 5 details
I suspect it's more for VR and 8k bump on output is cheap compared to helping Samsung and LG sell their 8k models.
BenMorganIO··on Coinbase Debit Card
That's not true. KYC is for preventing money laundering and terrorist financing. You do NOT want the RCMP/FBI asking why you permitted terrorists to use your platform.
BenMorganIO··on A realist takes on quantum mechanics
Having read Three Roads to Quantum Gravity, I think there's a lot of substance there. It's a book made to even include high schoolers, so you have to give it some benefit of the doubt.

As per the philosophy question, neither classical mechanics, relativity, or even death cares about what we think. What matters here is how we perceive and understand a concept.

BenMorganIO··on Show HN: Weight Lifting Algorithm Based on 5M Workouts
Also an android user, also interested :)
BenMorganIO··on Google AMP lowered our page speed, and there's no choice but to use it
You can sort of, but you'd need your own server. Google has control over this and I'm not sure if they permit different content for each device. They probably don't.
BenMorganIO··on PostgreSQL Count(*) Performance Improvements
Given the title, I expected this to be about how PG improved their counting. This is not what it was about.

I remember working over half a billion records and having problems when I needed a count. I used count(id) but that was mainly from internet mantra. I did not see an improvement. Using Citus gave me a significant improvement from 7 minutes to 1. And that was just a single coordinator, two workers on the same host. It could become much much better.

If the data is very stagnant and writes are very low the triggers are great. Usually the "close enough" with pages is good if you have over 100k since paging - please correct me if I'm wrong - is sometimes 1k off.

My preference is Citus as a catch all, but a trigger, a Redis cache managed at the app level, or using page counts are all . really useful for stickier situations.

BenMorganIO··on Congress Is About to Ban the US Government from Offering Free Online Tax Filing
I sincerely hope this never comes to Canada.
BenMorganIO··on Basecamp Built a $100B Business by Doing Less on Purpose
Or perhaps wished to weave it into reality.
BenMorganIO··on I Lied When I Said We Did Everything We Could
I remember being 10 and seeing my dog Moglee crawl up a 150m driveway to see his family after being hit by a truck. I remember the blood from his mouth and how much he wanted to be with his family. It was 2 days after Christmas.

Recently my old cat Jackie passed away. The moment I saw her not pee in the litter box but instead leave tiny droplets on the floor, I knew it was time to start planning for what the next few hours were going to be like. She was deaf, blind, failed kidney, two times underweight, and a tumor in her mouth. Her inability to eat or relieve herself had peaked. In the next four hours she was euthanized.

There's many instances throughout life that you know there's nothing you can do.

This doctor was right, your everything isn't always to spend moments with doctors. Sometimes it's to make the final moments worth it. I wasn't with Moglee. No one was. I was with Jackie, but the vet talked me out of getting antibiotics so she could eat instead of starving to death.

BenMorganIO··on Buy Yourself a Latte
Just a summary:

- Budget to be able to buy lattes. The inflation and results from $100 a month may be better spent frivolously than conserved. In other words, budget for frivolous expenses. - Don't spend money on this stuff if you've got bigger problems.

My opinion:

I mean... It's a drink. I'd recommend Tim's instead of Starbucks if money is tight. As a person who spent two years homeless, this stuff is helpful for mental health. Being able to have less worries than more worries is important.

Don't forget the old 50/30/20 rule. 50% on needs, 30% on wants, 20% on savings. Recalculate that not to your needs or wants, but how often your unemployed and if that number is more than 20% a year you should increase savings to cover that as well. Then recalculate needs, review on current bills, and rebalance and so on.

Also keep a month or two of cash reserves for emergencies.

Now go buy a mocha, they're better.

BenMorganIO··on Buy Yourself a Latte
Yeah... I did that too when I was homeless. More with Tim's though instead of Starbucks when I got my PNA; now BNA.

Although, when I look back, it would have been smarter not to have done that. I did manage to save $600 when receiving $30 a week though.

BenMorganIO··on Ex-Mozilla CTO: I was grilled for three hours at US airport by border cops
That's certainly a problem. My grandfather was a man who was tasked with killing spies, knew three languages, and out of all of this, I cannot even get him to talk about privacy or security. It appears even he was taught just to shut down on it and say nothing; even on your practices. All the while he taught child soldiers to become child assassin's for the US military.

If you're a security person, I suspect his recommendation would be - even though he doesn't understand IT and tech - to say you don't even understand how SSH works or can't tell the difference between encryption and hashing.

BenMorganIO··on Ex-Mozilla CTO: I was grilled for three hours at US airport by border cops
2019 appears to have lots of students who, although always on their phone, a good bunch don't have Facebook and consider it outdated. Instagram is the new Facebook.
BenMorganIO··on Ask HN: Why Isn't Functional Programming Taking Over?
As a person who did OOP for for years, then FP for two and just coming back to OOP once in a while, I ask why I ever left. They're BOTH good. Both FP and OOP have a special place in my heart. I've had a positive experience with both of them. They are both ahead of the game in their own respective rights and both have shortcomings. You may experience something similar in the next few years when you touch Ruby after working on Clojure. Or you may not.
BenMorganIO··on The one-salary experiment, ten years in
I'd recommend a side project and see if you can start your own business. Sounds like a good time.
BenMorganIO··on The one-salary experiment, ten years in
Until you receive an offer which has larger benefits and perks. I can certainly see the gaming.
BenMorganIO··on The one-salary experiment, ten years in
I wouldn't agree since that creates horror stories and high employee churn.
BenMorganIO··on New studies confirm existence of galaxies with almost no dark matter
It is known that certain types of galaxies can have less dark matter than others. I believe that jury is still out. I'm a little concerned by how many people "believe" there is dark matter. This adds a bias to the proposed solutions and the funding for each. It leads me to be a little skeptical when I hear that dark matter is being found and whatnot through the speed of stars. I'd love for research to be more balanced since the phenomena can be explained through more hypothesise than just increased mass.
BenMorganIO··on Ask HN: To people who own smart assistants, how often do you use it?
I do three things:

1. OK Google, what's the temperature outside? 2. OK Google, turn off all the lights. 3. OK Google, turn on all the lights.

If I don't say all, it turns three lights on instead of 8.

BenMorganIO··on Meet Q, a Genderless Voice
This is really good. I've been raising the voice from up and down to go from make to neutral to female and then let it drift in and out. I feel like that was the best. It was great paying attention to familiarity while also getting neutral.
BenMorganIO··on Senators ask why vendors sell voting machines with ‘known’ vulnerabilities’
Note: this article is of the United States.
BenMorganIO··on Working for a startup makes less sense, unless you are into the mission
Depends on what you're looking at for ETFs and mutual funds, but I think 8%, with a lot of work, CSVs, and tracking performance can be obtained. I know 12% is doable with a lot of work.
BenMorganIO··on A new Einstein cross is discovered
Ah, see McKayDavis for the explanation.
Page 1 of 3Next →