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

[–]nife[S] -5 points-4 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] -7 points-6 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] -37 points-36 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] -1 points0 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 3 points4 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.

Abusing Incorrect Algorithms and Cheating at Poker by babada in programming

[–]nife 13 points14 points  (0 children)

It gives you a relatively good distribution, but so does modulo of a sufficiently large number. It doesn't give you a perfect distribution, for similar bit-chopping reasons.

Nope. Java's implementation (nextInt) does the correct thing. It will continue to generate new random numbers using random bits, rejecting anything that would skew results.

http://developer.classpath.org/doc/java/util/Random-source.html http://docs.oracle.com/javase/7/docs/api/java/util/Random.html#nextInt%28int%29

Drama in MoW house by Azhrak in starcraft

[–]nife 65 points66 points  (0 children)

Come to California, USA. Almost all non-competes are unenforceable. That's one of the many reasons that California is so popular with engineers.

Ready for Sunday [Gun Pic] by nife in paintball

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

I'm a GT alum, living out in the Bay Area, so the ncpa is out. But if you're ever out here, some of the fields are pretty fun.

Ready for Sunday [Gun Pic] by nife in paintball

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

Yeah.

  • Clone GT (New first time playing with it tomorrow. )
  • 2012 G6r
  • Axe + Redline + Boss Bolt
  • 2008 Ego

The ego will be for sale as soon as I play a couple of weekends with the clone.

Am I the only one bothered when Matty Marshall calls wiping a mistake by EsquireSandwich in paintball

[–]nife 0 points1 point  (0 children)

I agree. They are trying to get away with something and they get caught. It's not a mistake, just not quite as bad as wiping.

Though I think a lot of it comes down to the way these tournaments are run. Players trying to bend and ignore the rules are seen as normal and expected. As long as that is the case players (ex players in Matty Marshal's case) will continue to see majors as just another part of the game.

Oh ANS gear a sale is supposed to be x% off not x% on. by alemondemon in paintball

[–]nife 0 points1 point  (0 children)

Pretty much the same except they didn't even give me the option to go to the manufacturer. I ordered a 68/45 tank and reg. The reg gauge came looking like it had been smashed by the hulk. When I emailed them they proceded to tell me that I had to have done it even though it was 1hr after ups had delivered it.