Better HN
topnewbestaskshowjobs
Log inSign up

sh4dow

1 karma · joined Mar 12, 2019 (7y ago) · 4 submissions

Submissions

comment 7y ago · link · parent

During my research, I stumbled across people asking for something like this here and there but nobody has come up with this pattern yet. So I hope that this will reach some who also have to manage collections of string constants that can overlap. :)

2.

When TypeScripts' string enums don't quite get you there(medium.com ↗)

1 points · by sh4dow · 7y ago · 1 comment

comment 7y ago · link · parent

These days, I would never run publish myself in a corporate environment. A script that is triggered on pushing tags should take of that to precisely avoid such human errors. And of course changes to this script have to be reviewed.

Also, a .rc file (package manager chosen by the team) with a private registry that refuses to publish unless done automatically by the pipeline set in the root of every project.

The only reason I find it understandable how it could happen at a major bank (these days, they should have a sizeable team that takes care of security measures like I described) is that this was 3 years ago. Publishing to private registries was relatively new back then, so people didn't have proper publishing workflows yet.

I mean... I guess mistakes can still happen. But on a scale of 1-10, I would find such a mistake far less excusable today considering the circumstances. Small, inexperienced team, maybe constant deadline pressure - more excusable. Duh...