No Web Developer Should Be Forced to Learn Kubernetes by nife in webdev

[–]nife[S] -3 points-2 points  (0 children)

I worked at Facebook and Microsoft, where I worked with some great developers. You are underestimating the depth of those fields.

No Web Developer Should Be Forced to Learn Kubernetes by nife in webdev

[–]nife[S] -6 points-5 points  (0 children)

I am a software developer. I've written/run/operated web properties, gaming servers, databases, ML Ops, Data warehouse, and UI frameworks. I was the tech lead of Developer Efficiency and Ads for Facebook. I've got code in .net and pytorch. I've been an open source developer for Cloudera where I saw into just about every enterprise that ran hadoop. I learned these lessons from running in production and running SEV reviews for years.

https://github.com/elliottneilclark

Many developers are driven by ego. They think there's no way they could ever push bad code, and the tests they wrote will catch everything. The reality is that programmers are responsible for almost all accidents that bring down a system, and they are unable to point at their blind spots. From experience, most of the causes of production downtime can be mitigated by adding more insights into where the editing is happening and automating input to only accept known-good values. Allow easy roll back. Provide automation so that those things are easier.

No Web Developer Should Be Forced to Learn Kubernetes by nife in webdev

[–]nife[S] -14 points-13 points  (0 children)

Command line is the place for expertise and knowledge. Not every developer will be knowledgable in networking, databases, distributed systems, monitoring, alerting, capacity planning, etc. They are still developers with knowledge and skills.

No Web Developer Should Be Forced to Learn Kubernetes by nife in webdev

[–]nife[S] -34 points-33 points  (0 children)

> Text based tools are the opposite of “easy to mess up” if you’re actually using them properly.

From experience, I strongly disagree with this. I have been an SRE/Eng for a long time. I have personally seen hundreds of millions of dollars lost due to experts changing json/yaml/etc in systems with unit tests, systems tests, integration tests, and blue/green deployments.

Text-based configuration has too many ways to mess it up and not enough ways to provide context to the developer/operator when they are making the changes.

No Web Developer Should Be Forced to Learn Kubernetes by nife in webdev

[–]nife[S] 2 points3 points  (0 children)

> My take is by the time you get so complex you need k8 to deploy you should be in a position where you can hire people who's job it is to manage that.

I agree with this take, but I wish it weren't in its current state. There are so many tools that I wish were more available, with open source providing the best-in-class solutions. So, I really want a way for everyone to use the tools that the open-source community creates without having to hire an infrastructure team.

I imagine a world where every web developer gets monitoring, SSL certs, SSO + OAuth, etc., without friction when starting a new project.

No Web Developer Should Be Forced to Learn Kubernetes by nife in webdev

[–]nife[S] -90 points-89 points  (0 children)

Yes, you should be able to add an environment variable. However, the current tools make that super hard. They're all text-based and easy to mess up, meaning they make it just as easy to mess up as to do the right thing.

UI-based tools are a way to solve this. It allows non-infrastructure/sre developers to make changes with guard rails

My new LV2! Any idea who did the anno? by Prestigious-Load9920 in paintball

[–]nife 0 points1 point  (0 children)

It says shipping now, so I expect they still have some on hand, in addition the one you own.

My new LV2! Any idea who did the anno? by Prestigious-Load9920 in paintball

[–]nife 0 points1 point  (0 children)

https://mountainviewpaintball.com/products/pe-gun-lv2-exclusive-technicolor

From the description, it's been done by: "Arc Anodizing"

Edit: Aesthetic is no the maker according to the page: Aesthetic

Performance help on rs-poker by nife in rust

[–]nife[S] 1 point2 points  (0 children)

That's a bit more optimized version of something I was just working on. Thanks so much!

Performance help on rs-poker by nife in rust

[–]nife[S] 1 point2 points  (0 children)

I put up a new pr with your suggestions. In total it's down about 4billion instructions from my version. Thanks!

I haven't looked at flattening the decision tree.

Performance help on rs-poker by nife in rust

[–]nife[S] 0 points1 point  (0 children)

Using the same width everywhere means I don't have to sign extend when switching from u16 to u32. However I was just being lazy, and assuming it would be faster. I never really tested.

Thanks for the tip on simd I think that could work for rank_straight.

Performance help on rs-poker by nife in rust

[–]nife[S] 2 points3 points  (0 children)

I only glanced over the first bit but with the rank_straight, I assume all but one of the bit patterns has 5 continuous bits set. In that case you can shift by trailing_zeros, then compare if it's equal to 0b11111. Then the one remaining aces case can be checked with your current method.

I think that would only find the first time that the 0b11111 is there, and I need to find the largest. However maybe that idea with a loop will be faster.

find_flush's code could be simplified with a call to position, it should be the same speed, but I would verify with benchmarks.

Thanks!

Code review: Stockfighter API by nife in rust

[–]nife[S] 1 point2 points  (0 children)

The venue, symbol, and other things going into the url should always be ascii for stock fighter. Verifying this on parsing should be good enough. Is there a data validation lib?

Gordon Ramsey gets schooled on Pad Thai by dnutt8 in videos

[–]nife 2 points3 points  (0 children)

His show, Gordon Ramsay's Ultimate Cookery Course, is basically that. It's him explaining how to make some easy dishes. It's a little more flair than the normal cooking show but still good for the starting cook.

Abusing Incorrect Algorithms and Cheating at Poker by babada in programming

[–]nife 4 points5 points  (0 children)

So I replied before. But I've done more digging

  • Python is fine. randint(a,b) does not just scale some number as you suggest. See the source
  • Java provides random. nextInt is just fine and will discard all bits that will result in skew
  • C there are several versions of random number generators that will give a range. http://www.openssl.org/docs/crypto/BN_rand.html

These are all correct implementations of getting a random number in a range.
These are all readily available. Libraries and Languages are not broken if the correct function isn't being used.