Programming

The moderators of this message board, otatop, L.Washington, WichitaDM, Yuv, JonnyA, RiskyFlush, and SvenO, are cowards who let abusers dox and harrass other long time posters.

1 Like

The moderators of this message board, otatop, L.Washington, WichitaDM, Yuv, JonnyA, RiskyFlush, and SvenO, are cowards who let abusers dox and harrass other long time posters.

3 Likes

I’ve never written React before and I’m just starting a .NET Core application that will have a web thing as part of it. There are React and React+Redux templates in Visual Studio. I should choose React+Redux, right? My major aim is to get some sort of Hello World thing happening without wanting to shoot myself.

The moderators of this message board, otatop, L.Washington, WichitaDM, Yuv, JonnyA, RiskyFlush, and SvenO, are cowards who let abusers dox and harrass other long time posters.

1 Like

I’m constantly amazed at what a beautiful piece of software Kubernetes is, but my god it has some annoying things about it. For instance when you ask for a list of events, it gives them back in random order.

I am trying to write a piece of a script that gets events from the last N minutes. I thought it’d be easy but it’s surprisingly annoying.

3 hours chasing down a really severe bug in a script, that I discovered because I tried to add a variable assignment and an echo to it. Literally like 3 lines that shouldn’t have broken anything and the script imploded.

My boss wrote the script and it turns out the root cause was because he declares all his variables as global scope instead of function scope and the variable i had named broke two other functions that also had that variable.

He wrote our style guide and insists we always use local variables in bash scripts, which is good practice. Unless he writes one.

Now I gotta figure out a delicate way to tell him this script is terrible and probably needs to be entirely refactored which will take me a week…

1 Like

lol I broke the news.

my boss, king of the backhanded compliment: “I just want to tell you that you’re not the smartest, brightest, or fastest person I have ever worked with, but you by far have the best attitude and are the most positive of anyone I’ve worked with”

So I guess I have that going for me .

5 Likes

We’ve got one asshole at my work that tries to blame people when they fuck up. Gets real old quick

And jmakinboss sounds like a complete jackass

Tech bro’s, I would appreciate your informed opinions here:

It’s a bit outside my area of expertise but it seems plausible to me. I guess one thing I’d ask is if you know for sure that Redis is the bottleneck. Also, do you have easy options for scaling that up before election day?

The moderators of this message board, otatop, L.Washington, WichitaDM, Yuv, JonnyA, RiskyFlush, and SvenO, are cowards who let abusers dox and harrass other long time posters.

A loading state for redirecting the user off the page seems weird.

If you can hit services directly, why do you have a proxy at all? And how could a proxy “send info directly”, then hand off to the services?

I guess I don’t understand the difference between 2 and 3.

Ok I guess your webserver can process the response from the service, do something, then respond to the browser with its own response - OR - it can just pass through the response to the browser? That seems like it should be however your architecture is already set up. If pass through is ok - then #3 is probably ok? Assuming I’m understanding it correctly.

In either case the browser is waiting until it gets the 302.

The moderators of this message board, otatop, L.Washington, WichitaDM, Yuv, JonnyA, RiskyFlush, and SvenO, are cowards who let abusers dox and harrass other long time posters.

#2 seems fine then - it will be the exact same from the browser’s POV.

I agree with the services guy that the service just returning a tinyurl and not worrying about stuff like 302 makes sense - if the services don’t do that in other cases.

A layer of “dumb” services that just do one simple thing is a good paradigm imo. In the future you might want to just show the tiny url as a link the user can copy. Or maybe the 302 doesn’t work for some reason and you need to do the JS redirect. In either case if you designed your service to return a 302, you’d have to make a new service or give it an alternate use case.

Lol he kind of is. I’ve been writing a script according to his exact specs that gathers kubectl data into snapshots of very large clusters over a certain time period, writes the results to a file, and uploads it to a site I built. I built it out to his exact specs and it’s nothing super fancy, literally just basic html and formatted text inside of <pre> tags because I believe it’s really bad practice to write html pages manually in a bash script so I insisted on keeping it simple.

Privately he tells me it looks great, then in our team chat he links the finished site and says it looks really ugly. Lmao. I’m as backend of an engineer as it gets. If you want a pretty website go bother one of the frontend guys.

But, he did tell me privately today that I’m becoming “quite proficient” at bash scripting so I guess I need to take that as high praise.

I’ve had worse bosses though. He doesn’t typically ride my ass and is pretty lenient, and I am sometimes a slacker, so it is working for me.

1 Like

You must have had some really shitty bosses. Man I could never work for someone who criticizes my work in front of the rest of the team, or directly insults me.

1 Like

I’m getting paid way beyond my experience level so it’s kind of just one of those things where I’ll put up with a lot making this kind of money

But yes i’ve had some brutal bosses

I know this is correct but I much prefer staying in one place until there are no more challenges or anything to learn. I could see myself being with this company for a while - from the fact I got a raise while here for only 6 months, I think they are willing to be competitive on salary if it means retaining good people.

I don’t know what will happen, but I was with my first company for nearly 15 years. I don’t quite want to do that again but 5 seems definitely possible. This company definitely took a chance on me and I feel very grateful for the opportunity. It is huge for me.

Basically as long as I’m not stagnating or miserable I prefer to stay in one place.

That’s a good site.

Lmaaooooo I just got the funniest email. There was this company I did some contract work for, but bailed on them because they were getting shady about paying me. They said they’d only pay me if they used what I wrote and then I wrote this UPS package tracker program that collected UPS info and uploaded to their DB.

Well, I never got paid and months went by and they seemed like a clown fiesta so I quit in the nicest way I could, with no fuss about paying me because it was only like $500-1000 and that’s an amount low enough I won’t go to war over.

Well I was using a UPS API key tied to my personal email for testing purposes and that key was inside of the program I submitted to them. I just got an email from UPS saying that my account is in violation of their API usage guidelines and will be disabled if it continues.

Do I tell them? The vindictive part of me is like hell nah but my professional pride is like, well, I don’t want them thinking I wrote something that doesn’t work.

It’s funny to me because they’re clearly using it, and using it in a way I specifically warned them not to because of this exact scenario.