The Joys Of Programming

But then today I had to work on some of that legacy code and this app is just a pain in my ass. MVC and MVVC patterns require a certain degree of abstraction but this code is such a weirdly abstracted mess that I can't make heads or tails of it. Like, it's a nightmare even stepping through it in a debugger.

Quintin_Stone wrote:

But then today I had to work on some of that legacy code and this app is just a pain in my ass. MVC and MVVC patterns require a certain degree of abstraction but this code is such a weirdly abstracted mess that I can't make heads or tails of it. Like, it's a nightmare even stepping through it in a debugger.

Lol, debugger. Try on embedded where you feel like you might as well be a step above punch cards at times. Stupid reliable devices.

lunchbox12682 wrote:
Quintin_Stone wrote:

But then today I had to work on some of that legacy code and this app is just a pain in my ass. MVC and MVVC patterns require a certain degree of abstraction but this code is such a weirdly abstracted mess that I can't make heads or tails of it. Like, it's a nightmare even stepping through it in a debugger.

Lol, debugger. Try on embedded where you feel like you might as well be a step above punch cards at times. Stupid reliable devices.

Debugging from just logs sucks. I did that for quite some time with C++ programs on Navy ships.

I'm no stranger to debugging from logs. Customers aren't too receptive of running a debugger on their production server.

That's why you run the debugger locally, and connect into their live processes from remote. Totally safe and secure!

From a recent Daily WTF: if you've ever wondered why you occasionally got an XCOM mission with "Chicken" in the title, this is why.

(not exactly current news, but Daily WTF works with what they get)

Elon ranking programmers by lines of code in commits. Holy f*ck. That's like measuring managers by e-mails sent.

Mixolyde wrote:

Elon ranking programmers by lines of code in commits. Holy f*ck. That's like measuring managers by e-mails sent.

You couldn't pay me (or apparently any engineer) enough to jump into Twitter right now. Nobody that has more than 1 year experience wants to go into a "HARDCORE" project. I thought that kind of bullsh*t went out with the Brogrammer Rockstar.

Really? Based on conversations with friends I have working at major tech companies, the ‘spend all your time working on our project (that you’ll never see any actual returns on)’ tech bro culture is alive and well.

Mixolyde wrote:

Elon ranking programmers by lines of code in commits. Holy f*ck.

*cracks knuckles*

Boys, I'm finally 'bout to become that 10x developer of myth and legend.

Enter key, are you ready? Some of these lines look like they need... breaking.

IMAGE(https://media.giphy.com/media/v9rfTQBNqdsSA/giphy.gif)

I love stuff like this.

One of my earliest jobs was when I was brought in (as a contractor) around 1992 to fix the software for some military test equipment. It was brutally misusing some early visual test interface software that ran on VMS, with thousands of lines of largely duplicated Ada code.

By the time I was done with it, the product contained about one third of the SLOCs it had when I started, but it worked.

I guess I'm not hardcore enough for Elon.

Safely deleted code is a much better measure of a good programmer.

Hrdina wrote:

By the time I was done with it, the product contained about one third of the SLOCs it had when I started, but it worked.

There's a famous Bill Atkinson story along those lines.

*Legion* wrote:
Hrdina wrote:

By the time I was done with it, the product contained about one third of the SLOCs it had when I started, but it worked.

There's a famous Bill Atkinson story along those lines.

Yeah, management stopped asking me for SLOC counts, too.

They still do overall counts for the product because we have to report that to the customer.

Advent of Code 2022 has begun. Anyone else playing?

merphle wrote:

Advent of Code 2022 has begun. Anyone else playing?

I'll try to do as many as I can this year.

I probably will skip out, but the Perl Advent calendar is up and going again as well, https://perladvent.org/2022/2022-12-...

yay, Day 1 down in less than a hundred tries Im bad at this. (Ok it was like 6, and I built a class for Elf that I hope I get to extend in future days)

If I were judged on total lines of codes added, I'd have been fired from every job I've ever had, based on the number of times I've refactored tens of thousands of lines down to a few dozen. Checked my current repos, and I'm at about -47,000 across all our projects.

merphle wrote:

Advent of Code 2022 has begun. Anyone else playing?

I'm in. Shall we create a GWJ leaderboard?

EDT: NM. I see the one from last year is still active. I shall be using Python with Visual Studio 2022 as my IDE this year.

Moggy wrote:

I'm in. Shall we create a GWJ leaderboard?

EDT: NM. I see the one from last year is still active.

Ah, good memory! I had forgotten.

GWJ Leaderboard

The code to join this leaderboard is "1063102-26827897"

I'm sure I've mentioned this site before - https://www.codingame.com/

Pretty cool concept where the programs you write are bots for games. The site has a bunch of different style games and you pit your bot against others. The matches happen automatically (you just submit your bot code) and you get ranked in a series of leagues.

They have a fall challenge that I just signed up for (it's free). No idea what the game will be, but it's a timed challenge. 25 days from the 12th, I believe. If there's interest, I can create a GWJ "company" (or "school") and we can see how we do against the unwashed masses.

Moggy wrote:

I'm sure I've mentioned this site before - https://www.codingame.com/

Pretty cool concept where the programs you write are bots for games. The site has a bunch of different style games and you pit your bot against others. The matches happen automatically (you just submit your bot code) and you get ranked in a series of leagues.

They have a fall challenge that I just signed up for (it's free). No idea what the game will be, but it's a timed challenge. 25 days from the 12th, I believe. If there's interest, I can create a GWJ "company" (or "school") and we can see how we do against the unwashed masses.

I love this site! I used to be super active when I could play from work in my downtime, but not so much anymore. I used to be ranked a Guru, but now I am only a master in the top 0.3% on the site.

merphle wrote:

Advent of Code 2022 has begun. Anyone else playing?

I'm playing, first couple of problems were pretty straightforward. Hopefully I will be able to keep up as they get harder. I don't think I finished last year's until well into January.

I haven't done Advent in several years but I think I'll try it out again.

It's it still safe to assume that every problem has two parts that each take a single text file as input and return a string output?

fenomas wrote:

I haven't done Advent in several years but I think I'll try it out again.

It's it still safe to assume that every problem has two parts that each take a single text file as input and return a string output?

Welcome back.

Yes, I think that's a safe assumption. Each day uses the same input text file for both parts, and each part should return a single output (always a number?).

I wish they built on each other more, like if any functions I wrote for Day 1 might be useful again and I'd be encouraged to write with an eye for the future rather than just brute-forcing a problem.

polypusher wrote:

I wish they built on each other more, like if any functions I wrote for Day 1 might be useful again and I'd be encouraged to write with an eye for the future rather than just brute-forcing a problem.

I hear you, but I think they keep each day encapsulated so that if you miss on an early day you won't be shut out from completing later days.

Yeah that makes sense. Maybe some other challenge does something like I'm thinking

I re use a lot of grid math and physics functions from one Codingame competition to the next.