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

Looks neat but we're all in on Tracker so not sure switching is on the cards. I'll keep it in mind for other projects/teams in the future though, thanks.

comment 4y ago · link · parent

Don't roll your own JWT implementations for client side applications, for the love of dog don't.

Story time.

Our company recently switched to JWTs for our SPAs from regular OAuth2. I told them up front - we need a way to invalidate a token if an account is compromised. The lead on this initiative said we can blacklist any token. I told him that's not practical because you would need to know the exact token to be able to blacklist and because we don't store them in the database and don't log them have any real way to figure out which token is being used by an attacker and which are not that it's basically useless.

I suggested a simple fix: cypher the private key we sign the JWT with the hashed password of the user account we're generating the token for. If an account is compromised, we can reset the password and invalidate all tokens for that one user.

I was ignored and lo-and-behold within a month CTO and tech lead are trying to track down JWTs for a hacked account. I told them we can update the app to cypher the key, it'll invalidate all tokens and people will have to log in again but at least they'll be secured. Nothing has been changed to this day, despite banging this drum for literally over a year. We've recently extracted our authentication into a micro-service (for no reason really, i'm still mad about this too) and still nothing has been done about this issue when it would have been the perfect time to fix this.

I love my job but "priorities" and "business cases" as an excuse for this kind of incompetence is rage inducing.

The point I'm trying to make is. You are most likely using some kind of web framework that can just plug in an authentication implementation, just use that. NIH is very real and it is more than a waste of time, it can be dangerous.

comment 4y ago · link · parent

I want to vouch for this 100%.

Personally, on my team we use Pivotal Tracker - it tracks our velocity for us and automatically "guesses" our release date based on our velocity. If we aren't happy with the projected date, we reduce scope aggressively. Clients see our backlog and can see when things change. Most of our project planning is completely automated by Tracker - we just create tasks and point them. It's the only thing that has been even remotely successful for us. If I had to give up Tracker for Jira I would quit my job.

comment 4y ago · link · parent

Cloudflare is on my naughty list. I actively advocate against people using them.

comment 4y ago · link · parent

One game that I didn't think would work well on a controller was Rimworld but it's actually really great, and I love playing Rimworld from the couch. Hopefully the same amount of care for controller controls goes into Factorio.

comment 4y ago · link · parent

dammit, my life is over - goodbye family

comment 4y ago · link · parent

In my experience, tests speed you up in the short-run too. I've run this experiment myself at my own company within different teams. Code that lacks tests has the most bugs, the most QA returns, the most churn, etc....we end up spending (read: WASTING) much more time and money fixing broken code that has no tests than any other code in our entire codebase.

comment 4y ago · link · parent

Oh no, jokes, how horrifying…

comment 4y ago · link · parent

Yeah this a pretty bold claim with absolutely zero evidence, pretty disgusting.

comment 4y ago · link · parent

Appropriate to you.

Politics is a pendulum, and it won’t be pretty when it swings back.

comment 4y ago · link · parent

So let me get this straight. 1. People were trying to cancel kiwi farms 2. Kiwifarms users got mad, I’d argue rightfully, because they were being attacked. 3. Cloudflare doesn’t like Kiwifarms politically so they gave into the mob. 4. Blame the victims because we don’t like them.

Ignoring the fact that cloudflare provides we security services and they decided to just give up on it, this leaves a very sour taste in my month. I won’t be giving cloudflare my business anymore. If Kiwifarms users were engaging in illegal activity then just let enforcement do their job.

comment 4y ago · link · parent

“Science is more than a body of knowledge. It is a way of thinking; a way of skeptically interrogating the universe with a fine understanding of human fallibility.

If we are not able to ask skeptical questions, to interrogate those who tell us that something is true, to be skeptical of those in authority, then, we are up for grabs for the next charlatan (political or religious) who comes rambling along.”

-- Carl Sagan

First thing that comes to mind. The Demon Haunted World changed my life but it seems like the one thing that got wrong isn't that external forces are a threat to "making progress via the scientific method to determine what is true" but science has instead been weaponized from within to push an agenda. This is much more terrifying to me.

comment 4y ago · link · parent

This is the end of an era - no reason to really use Heroku anymore. One of the best things about it was being able to "grow into" the pricing. Looks like I'm looking at fly.io now.

comment 4y ago · link · parent

Finally! only reason I've been keeping gpg around has been to sign git commits, so now I can just sign with my ssh key. Wonderful

comment 4y ago · link · parent

Tbh, this sounds like a good thing to me. Snapdeal is an amazon competitor that likely would not have made it in America. Now Snapdeal gets to actually contribute to the economic growth of India while they are going through their own "industrial revolution" of sorts.

Brain drain is devastating for the developing world. Abolishing H1B completely would be a net positive for the world in my opinion.

comment 4y ago · link · parent

Yes, that's the crux of the issue isn't it? The business model of the game is completely orthogonal to the ways people want to play the game.

What's the point of having a progression system if nobody is incentivized to actually progress? If your entire business model requires that people buy the battle pass, but they don't buy the battle pass because they just want to play with friends because the battle pass contents funnels them into solo play the game won't survive as a F2P title.

comment 4y ago · link · parent

Halo's social features are core to its identity. CE, 2 and 3 were all designed as "an FPS party game". 343 really has no idea what makes Halo Halo. The entire design of Halo Infinite pushes you to NOT play with friends, what a wasted potential. Basically being forced to play solo to progress the battle pass instead of playing with my friends made me drop the game. Not launching with campaign coop was just absolutely boneheaded. Wtf is Microsoft/343 thinking.

At least MCC is good.

comment 4y ago · link · parent

Hades is excellent but the procedural generation is not one of its main selling points, IMO. For me it’s the story (elevated mainly by incredible characters) and the combat. The procedural generation is simply a means to funnel you to combat scenarios in randomized orders, but it’s less like diablo where entire levels are created but just a series of interconnected handcrafted rooms that are randomly connected. There is no real exploration, each room basically funnels you to the next by giving you a choice of upgrade and a different door for each. The main gameplay loop is basically - enter room, kill everything, get upgrade, go to next room, restart when you die. So if you’re looking for a diablo-clone, hades is not it - I would recommend Grim Dawn (but this doesn’t have procedural generation lol). Hades is still excellent but it’s Roguelite through and through, and one of the best ones at that.

comment 4y ago · link · parent

docker compose is old hat, using podman to generate k8s Kubefiles for pods is where it's at

comment 4y ago · link · parent

In Canada (I don’t know about Brazil myself) it is very very difficult for children to “flunk out” of the public education system. The system is setup to push every line through as much as possible. So to me, the “participation trophy” culture which is similar to what you describe in Brazil is especially egregious to me.

comment 4y ago · link · parent

Maybe I’m not articulating myself correctly because I certainly do not want to imply or say that there is no joy in my life. I guess the “joy” in my life is just intrinsic rather than extrinsic? I get immense satisfaction out of my work itself and “succeeding” in and of itself is motivating. I also find mentoring/helping others succeed to also be extremely rewarding. The greatest joy I get in life is seeing how my actions have improved the lives of others in some way.

I also feel very fulfilled from my personal relationships, family and lifestyle that my “success” affords me.

comment 4y ago · link · parent

My father has gotten me plenty of gifts, for a variety of reasons and sometimes for no reason at all. Don’t get me wrong, I love my dad very much and he is a very generous man :)

comment 4y ago · link · parent

I work 9-5 and have 6 weeks of vacations on top of government mandated holidays, I do pretty good :)

comment 4y ago · link · parent

I've had my fair share of failures that's for sure. I'm do not expecting to actually succeed every single time, but I am putting in the best effort to at least try to succeed instead of just trying to coast along or shrug it off being like "meh, just wasn't in the cards". I also don't expect massive celebrations when I actually do succeed - success is what is expected. If I'm supposed to make the big sale, I don't get a party after I just move on to the next big sale. It's what is expected, not exceptional.

comment 4y ago · link · parent

> The self congratulatory back-patting (even if it's just "everything is fine, we're doing great") is treating success like an achievement. Success requires vigilance. Excellence is not an achievement, it's an activity.

I used to wonder why friends of mine would get gifts for things like graduating elementary school or even high school. I asked my father for something because I was graduating highschool on the honour roll, and he told me completely stoned faced "i am not going to reward you for things that you are just simply expected to do". That sticks with me 20 years later and I apply that to everything I do in life, especially work.

If you aren't succeeding, you are failing - and I was expected and taught to succeed by default.

comment 4y ago · link · parent

> Documentation is limited, but Bun’s Discord is very active and a great source of knowledge.

Discord is a blackhole for information that search engines cannot index, it is not a replacement for documentation.

I hate Discord with such a bloody passion, and this is one of the biggest reasons. People think "just ask on discord" is appropriate as a means of documentation, it absolutely is not.

comment 4y ago · link · parent

I’ve seen it happen when people forget to index the foreign key columns, it also may be faster on one to many joins if you need to use DISTINCT to remove duplicate rows (instead of joining on a specific subquery that eliminates the duplication implicitly).

comment 4y ago · link · parent

Sufficient yes because if, for example, you’re simply sorting by a value that’s shared/duplicated like enums values, the ordering of the ordered groups is basically up to the query planner and can change (one query may use an index while another does a sequential scan, for example). The most common use case where I’ve seen this be significant is offset based pagination where the query plan actually changes depending on which page you’re on. You’ll either miss records or even get the a few rows back from the previous page because of the different ordering chosen by the planner/optimizer.

comment 4y ago · link · parent

When I lived in Toronto, my favorite place to find clothes was the thrift shop. Especially when my first child was born. Often I was able to get like-new looking brand-name clothes for a fifth of the price, which was especially great for children's clothing that are only worn a handful of times before the baby no longer fits.

comment 4y ago · link · parent

I love Podman so much. It's seamless integration with systemd is a killer feature, as well as being able to generte Kubefiles. My main problem used to be feature parity with docker networking, but that seems to be mostly resolved since 4.0.

Trying to convince my team to use podman instead of docker (even though I've been using it myself primarily for months without issues), that's another story.

1
678
41