@array@fosstodon.org avatar

array

@array@fosstodon.org

Life's an array of arrays. 101010 exactly.
Philosophy & Programming. I love coding, comic-books (and no-comic books), films and (dark and loud mostly) music. I suck at all of this. <3
:sway: :gnome: :archlinux: :debian: :ubuntu: :laravel: :javascript: :nodejs:

This profile is from a federated server and may be incomplete. Browse more on the original instance.

array, to Java
@array@fosstodon.org avatar

In other news, this week I've found a 16,600+ LOC file in the "main" monolith which performs the bulk of business logic for the main web (interconnected to other monoliths and -from what I've been told- even way huger PL/SQL scripts with tens of thousands LOC). And this is just one file, of thousands.The file has no comments, is not documented anywhere, the variable names are far from informative, and there's at least one function with way more 1000 LOC. Now go and debug this. XD

array,
@array@fosstodon.org avatar

@jhx It's either put breakpoints in almost every line, or just go from executed line to the next. "Fun" is an understatement. XD

array,
@array@fosstodon.org avatar

@motofix We use Eclipse, actually, but yeah, we're lucky it's Java and not... You know. ;) Anyway yeah, I've found some XML maps which are... Anything but informative and actually hard to figure out, yeah. ;)

array,
@array@fosstodon.org avatar

@jhx I could do with the lack of docs and comments if at least the variable and function naming were more... Descriptive. But I guess some people are scared of long variable names, so why call something, say, priceWhenDiscountIsSetByGeolocation when you can use pwdisbg. XD

array, to random
@array@fosstodon.org avatar

Work commuting in my city is beyond terrible. $dayJob is ~12 km from home and close to the beach, so with summer closing in the public bus is comically crowded with tourist and holiday industry workers to the point that I have missed them regularly because they just can't take more passengers... And it's just May, from June to September this will only be worse. Add the crazy heat and lack of space to just breathe there and you have a recipe for nightmares... 1/n

array,
@array@fosstodon.org avatar

I take the 7 AM bus every morning. There are immigrant people mostly, people from Africa, Asia and South America. Yeah, those people some wise and well informed guys say they come to steal and kill us, poor and noble Europeans. I'm pretty sure they hide knives and guns under their working clothes, which they wear as a clever disguise. I guess the body count will be huge this summer. 2/n

array,
@array@fosstodon.org avatar

Luckily for me, in the evening the bus switches human geography and I can see White Europeans from the Cold North, gradually turning into Red Europeans by way of spending the day half naked on the beach and drinking as much beer as they can take, and then some. Those are the same White to Red Europeans that throw themselves out of their hotel balconies (the media call this "balconing", as if this was a sport) for no reason. I know people who find that funny; I'm sorry not sorry I just don't. 3/n

array,
@array@fosstodon.org avatar

So I've finally decided to come to terms with my principles (or in this case, sort of the contrary) and I'll be buying myself a small motorbike. I feel I'm kind of abandoning my fate companions to their own luck in their crowded buses. But this is how it is.

I have chosen a model that I like because it's small, cheap and has very low gas consumption. And indulge me in my frivolity, but I just find it nice.

I would find having actually good public transport services nicer, though. 4/n.

array,
@array@fosstodon.org avatar

@fedops You don't have an idea. This island could be a natural paradise. Let's just say it's not. :(

Yeah, I really love the aesthetics. It's technically a Spanish brand, but you know, licensed from old tech and made in China I believe, so it's actually quite cheap. But for me the point is that it's so low powered (125 cc, 10 HP) and lightweight (112 kg) that it promises less than 2 l/100km of gas consumption. Way less than a car, at least. :)

array, to random
@array@fosstodon.org avatar

I've been a couple of days to write... Say, about 5 LOC. In the meanwhile, I've read thousands, run the debugger more times than I can count, read a lot of external docs and try almost hopelessly to figure out what was really happening in the code soup I'm struggling with. Now I'm almost sure that my solution to what on paper looked like an easy problem to solve should work and hopefully won't break anything else.

Or not. :P

array,
@array@fosstodon.org avatar

@danielsiepmann "No architecture" is something I won't dare say, but... No comments, no documentation, and enough spaghetti to feed the whole of Italy for years to come. XD It's pretty old Java code, fed for decades long by external contractors with, from what I've been told, little to no supervision, to finally create an ugly Frankenstein monster continuously patched, but who nobody dares to really fix. It's really amazing, it somewhat (mostly) works, and it's really difficult to work with. :)

array,
@array@fosstodon.org avatar

@tulpa Yeah, there's, I've been told, a new web with microservices being done in substitution of this crazy old monolith. But when will that be on prod, nobody knows. I'm totally in for the challenge, though; it's unnerving as it's great when you finally figure something out in this labyrinth. ;)

ninokadic, to random
@ninokadic@mastodon.social avatar

Had a job interview today. Wish me luck! 🤞🏻

array,
@array@fosstodon.org avatar

@ninokadic Best wishes! :)

array, to random
@array@fosstodon.org avatar

I'm experiencing first hand the beauty of, ahem, "legacy" code in prod. Four code blocks in a row that insert a break statement... After a return one; up to 13 levels of nested if- else if blocks (something so common my colleagues call that figure the "Doritos"); one class with a couple of thousands lines which has class declarations in the middle of pure spaghetti functions; TODO comments from a decade ago; functions with 3 (!) different declarations to perform the same exact logic... 1/2

array, (edited )
@array@fosstodon.org avatar

To be fair, this is a monster which has been fed for decades by very different people. And me, as newbie as I am, can't brag about doing this much better. Well, maybe a little better, as I can at least see what is obviously wrong. But this does calm the impostor syndrome a bit, so everything's fine. ;)

Anyway, I'm incredibly happy with $newJob, really enjoying the workplace and colleagues. And, better or worse codebase, I'm really having fun playing with it. :D 2/2

array,
@array@fosstodon.org avatar

@joel Very fun indeed, and the people in the workplace is very cool, I haven't felt any pressure yet (no need, I can put more than enough pressure on myself!) XD

array,
@array@fosstodon.org avatar

@supernov For me, it's easy: I just have to compare with what have been my jobs until this point. A clue: this is the first one I can do sitting in a chair. ;)

array,
@array@fosstodon.org avatar

@fedops There's a VS Code plugin which does the magic of showing up who and when did the last commit on the line you put the cursor on. As Jim Morrison put it, "No one here gets out alive". XD

The comments are neverending fun, too. I've seen one which goes something like, "[Name of one of their colleagues], I've done [this and that, pretty weird stuff] so maybe we can bypass [something they didn't really understand] and [hopefully fix the mess they were requested to fix]". XD

array,
@array@fosstodon.org avatar

@tulpa @fedops I have a colleague which, as far as I can judge, is quite brilliant. And today it's the third time in a row that happened to him that, fixing some frontend code in production, he's breaking something else, no matter code reviews. This is a whack-a-mole game against a hydra monster, so yes, any code just needs to grow to some critical point to be terrible indeed. No code review can't do much against that, it would seem; so maybe they just admitted that to you. ;)

array, to random
@array@fosstodon.org avatar

The ETA just for setting up the development environment in $newJob is no less than 2 weeks, but it's no problem if it's two months. I know many of you are used to this kind of scale in dev work places, but I'm kind of terrified (that, plus the ~300 person IT workforce all in the same place, the git repo with more than 100 repos -and this is, apparently, just the tip of the iceberg-), the commits in 1000+ LOC files made in the past century... This will be fun, fortunately. And sadly. :P

array,
@array@fosstodon.org avatar

@tulpa Those long years wandering in the Philosophy department had to pay off! XD

array,
@array@fosstodon.org avatar

@fedops As I said, I know, I know... Just take into account that my experience so far includes not only Java, but PHP and JavaScript (full stack JS!), so it's either learning to love the underdog, or live a life of pure misery. XD

Now seriously, Java is way better than some people give it credit for. You can say whatever about it, but compared to "[new, hip and shiny]", it's really battle tested, had years to improve, and the community, docs, ecosystem etc are just huge, so that may count. ;)

array,
@array@fosstodon.org avatar

@tulpa Not Cioran, probably. XD

array,
@array@fosstodon.org avatar

@tulpa @fedops There's code in prod ranging from Java 6 to 17, and it all does the job. It happened to me that upgrading a Node project's dependencies just a few weeks old broke said project; just saying. ;)

array,
@array@fosstodon.org avatar

@fedops @tulpa Indeed, I've read some performance comparisons and Java usually does quite well. Anyway, I believe it could happen to me what I've seen many times, people very often hate what they use at work, as there's no silver bullet and the more you use something, the more problems you can find, so I may change my mind. I'll just enjoy my Java honeymoon while it lasts. XD

array,
@array@fosstodon.org avatar

@motofix @fedops @tulpa My company's Big Brains seem to agree with you! ;) Yeah, I'm almost crushed by the raw quantity and the complexity of the code base I'm just beginning to get a peek of, meanwhile Java has managed to work as expected for decades here, no sweat. :D

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • tacticalgear
  • mdbf
  • InstantRegret
  • magazineikmin
  • Youngstown
  • thenastyranch
  • rosin
  • slotface
  • Durango
  • cubers
  • ngwrru68w68
  • anitta
  • cisconetworking
  • GTA5RPClips
  • modclub
  • tester
  • khanakhh
  • everett
  • provamag3
  • osvaldo12
  • Leos
  • normalnudes
  • ethstaker
  • megavids
  • lostlight
  • All magazines