IT/Software career thread: Invert binary trees for dollars.

Sheriff Cad

scientia potentia est
<Nazi Janitors>
34,308
83,287
Because we've discussed this before 😂

Also because... anyone who has worked for Defense knows this.
If they really measure your code like this couldn’t you write code to generate pointless case statements? Like let’s say you wanted an if (x <40).. generate a case statement that has every value 1 to 40 on a different line, then the otherwise handles the > 40. Hell you could even do 40-1000 or something and have it go to otherwise over 1000. You could literally write millions of lines of code a day.
 
  • 1Double Worf
  • 1Like
Reactions: 1 users

TJT

Mr. Poopybutthole
<Gold Donor>
47,146
129,618
If they really measure your code like this couldn’t you write code to generate pointless case statements? Like let’s say you wanted an if (x <40).. generate a case statement that has every value 1 to 40 on a different line, then the otherwise handles the > 40. Hell you could even do 40-1000 or something and have it go to otherwise over 1000. You could literally write millions of lines of code a day.
Look at this absolute ace defense contractor.
 
  • 2Worf
  • 1Double Worf
Reactions: 2 users

TJT

Mr. Poopybutthole
<Gold Donor>
47,146
129,618
On Friday I discovered another idiocy bomb from that guy, possibly the other staff eng in the org too.

I work in data infrastructure and one of the components of most orgs these days is Kafka. Now, Kafka is not the only one but it was one of the first as far as I know. These messaging services are used by various things to run applications, but they can also drive the org's decision making. At least how they are used today. Kafka is an immutable log of events created by an application to do something. Most of the time.

In the data space this means streaming all of the messages out of where they originate from Kafka and to some other location to be consumed by data processes that are not the application producing them. I get a number of "duplication" alerts from these. I start looking into them and the junior engineer on the team tells me that he just deletes them. These are not duplicates but logical duplicates. As in they existed across multiple partitions and offsets within Kafka but they do contain the same message body.

The junior engineers were told to delete them by manually going into the system and deleting them. This whole situation was caused by omitting the partition/offset metadata. So for years now whenever this happens they just deleted them. I spent some of Friday afternoon sitting down with the three junior engineers explaining basic Kafka functionality to them and how you can investigate this with tools like Offset Explorer if they are interested in better understanding. I also told them directly that if they are doing anything manually and regularly then that is wrong whatever it is. That if I had ever told my seniors 14 years ago that I had a solution requiring hours of manual workarounds to function when anything unoptimal happened they would have called me an idiot, asked why I didn't consider a list of issues, and that I should go try again.

I can understand these guys with less than 3 years in the industry didn't know any better and were just listening to their leadership. I am going to ask the staff engineer next week why he didn't recognize blatant retardation here and did nothing about it. He's a shitter too so I think I know my answer.
 
Last edited:
  • 5Like
Reactions: 4 users

Sheriff Cad

scientia potentia est
<Nazi Janitors>
34,308
83,287
Look at this absolute ace defense contractor.
I mean I’m kidding but also not, do they audit to make sure you’re actually writing effective LoC or is it just LoC commits period? If it’s LoC commits period, thats fucking retarded.
 

Noodleface

A Mod Real Quick
39,748
18,428
I mean I’m kidding but also not, do they audit to make sure you’re actually writing effective LoC or is it just LoC commits period? If it’s LoC commits period, thats fucking retarded.
Defense has the absolute worst engineers I've ever met (and a few really good ones that have gone there to retire). No one audits that shit.

Just as an example... I once had to solve a problem with some messaging that was sending a bunch of bytes and we needed to check specific bits. I put in some code to mask the bits and shift them so the end result was just something we could store in a variable. CS101 shit.

An engineer saw my code (he was a senior) and could not understand what I was doing. I'm talking like... A single mask and shift. I had to sit down with this dude for 30 minutes and explain masking and shifting of bits.
 
Last edited:

TomServo

<Bronze Donator>
8,885
20,104
On Friday I discovered another idiocy bomb from that guy, possibly the other staff eng in the org too.

I work in data infrastructure and one of the components of most orgs these days is Kafka. Now, Kafka is not the only one but it was one of the first as far as I know. These messaging services are used by various things to run applications, but they can also drive the org's decision making. At least how they are used today. Kafka is an immutable log of events created by an application to do something. Most of the time.

In the data space this means streaming all of the messages out of where they originate from Kafka and to some other location to be consumed by data processes that are not the application producing them. I get a number of "duplication" alerts from these. I start looking into them and the junior engineer on the team tells me that he just deletes them. These are not duplicates but logical duplicates. As in they existed across multiple partitions and offsets within Kafka but they do contain the same message body.

The junior engineers were told to delete them by manually going into the system and deleting them. This whole situation was caused by omitting the partition/offset metadata. So for years now whenever this happens they just deleted them. I spent some of Friday afternoon sitting down with the three junior engineers explaining basic Kafka functionality to them and how you can investigate this with tools like Offset Explorer if they are interested in better understanding. I also told them directly that if they are doing anything manually and regularly then that is wrong whatever it is. That if I had ever told my seniors 14 years ago that I had a solution requiring hours of manual workarounds to function when anything unoptimal happened they would have called me an idiot, asked why I didn't consider a list of issues, and that I should go try again.

I can understand these guys with less than 3 years in the industry didn't know any better and were just listening to their leadership. I am going to ask the staff engineer next week why he didn't recognize blatant retardation here and did nothing about it. He's a shitter too so I think I know my answer.
Are the juniors shitters too?