@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 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

And it seems I'll be doing full stack, but mostly. I know, I know, but indulge me: I just love Java, so I feel lucky. And more important, I've found a very cozy workplace, the team seems to get along fine, they meet every Friday after workday for beers and chat, and they have been very helpful and welcoming. This is what I signed for when I began Programming, and quite different from what have been my early experiences. I hope this ends up as well as it is promising now. :D

array,
@array@fosstodon.org avatar

@tulpa I just hope I won't be laid off in a few weeks, then... But if so happens, well, that's life. XD

The good part is that I'm not just setting up stuff, I've got liberty to come to other coworkers' places and see what they are up to, they explain what they do and I can even make suggestions. It's been just two days, but I'm really enjoying this, so if tomorrow they lay me off, I still get two days of enjoyment. :)

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

amin, to random
@amin@alpha.polymaths.social avatar

Welp, just finished my school year.

array,
@array@fosstodon.org avatar

@amin Congratulations! 🎉

array, to php
@array@fosstodon.org avatar

My first was 8.0, still in school, and I confess that I began learning it with the prejudice of it being a junky, terrible language everybody was making fun of. Fast forward ~1 year later, after finishing my internship, where I used full stack mainly, and having discovered that not only it wasn't that bad, but really a pleasure to work with. Not perfect, but perfectly suitable for its use cases and, what's perfect anyway? So reading this has been a joy. :D https://developerjoy.co/blog/php-doesnt-suck-anymore

array,
@array@fosstodon.org avatar

@hydrian @blu256 That's, I guess, the beauty of FLOSS, I give thanks everyday to the people who have created, maintained, improved etc. the tools I use on a daily basis. I began with programming just a few years ago so I have missed the development, but I think the blog post I shared hit the point: some people who still think PHP is terrible or even "dead" maybe have the memories of way older versions of the language. :)

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

@ntha @hydrian @blu256 Sure, the PHP "corpse" is quite healthy indeed. XD EDIT: and now that frameworks are mentioned, I'm really curious about WinterCMS. One of my colleagues used it in a former job and he said it's really great. :)

array,
@array@fosstodon.org avatar

@ntha @hydrian @blu256 And I totally agree with that, at this point I believe that should be clear enough, right? ;) I'm mostly making fun of the people who make fun of PHP being "dead", which is a trend I've found quite examples on the internet already. Not my opinion, on the contrary. :)

array,
@array@fosstodon.org avatar

@ntha @hydrian @blu256 No problem, I guessed you just missed the context. And out of context yeah, that maybe sounded like a trigger, so sorry about that. ;)

Sigh, I don't have much experience (finished my programming AD less than a year ago), but I've already worked with PHP and JS, and next Monday I'll start a full stack position with Java... So I may know a thing or two about programming languages being "punching bags". :P Yet I really enjoy all of them!

array,
@array@fosstodon.org avatar

@ntha @hydrian @blu256 Fair enough, and agreed. For me it will be Java now, but I guess that mutatis mutandis it all applies. Java (and PHP) can be seen as old, junky languages, inferior to those new and flashy ones, but most web dev job offers I see are precisely Java (a lot) and PHP (WordPress), if we talk backend/ full stack. I love them both, though. As you say, the maturity of the ecosystem really pays. :)

array,
@array@fosstodon.org avatar

@ntha @hydrian @blu256 Same, exactly. Actually, seeing what you already posted in your profile I think there's another thing we may agree with: https://fosstodon.org/@array/112348049196060708 I'm not in principle against frameworks, ORMs and so on, but for personal projects and as a learning experience, going down the abstraction layers may have its benefits too! (And yeah, I'm using "raw" SQL statements -sanitized, though- in my project, too).

array,
@array@fosstodon.org avatar

@ntha @hydrian @blu256 That's great! In Java I'm using dedicated validation classes, then declaring the SQL statements as constants in its own package with placeholders when needed, and then service classes which use the PreparedStatement interface. These are finally called by the servlets, and the data is passed to .JSP views. There's a bit more going on (I have some extra interfaces and factories), but that's the gist of it. Going minimal is great for experimenting and getting a better grasp!

array,
@array@fosstodon.org avatar

@ntha @hydrian @blu256 No, my models declare the attributes (mapped to the database ones), with constructors and getters/setters. That way I can pass the model objects through, for example, factories and interfaces (I use generics) up to the views. In this I was clearly "inspired" by the way say Laravel implements the MVC model. I'm just a noob so take this with a grain of salt, I'm probably doing more than one thing wrong or at least, not the best way possible. ;)

array, to random
@array@fosstodon.org avatar

Commuting to $newJob will be complicated. The place is close to the beach, so the public buses, at least in the hot season (so half of the year or so, and counting), will be full of tourists to the point that I'll likely miss more than one because full capacity overflow.

I still refuse to have a 🚗.

array,
@array@fosstodon.org avatar

@indie1337_1 Ah sorry I misunderstood. :P Well then I just commented before why this is not really an option: https://fosstodon.org/@array/112382938215759310 Public transport in my city is far from good, but all things considered is still my only reasonable option, at least by now. :(

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