Posts

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

array, to random
@array@fosstodon.org avatar

Whenever you feel down.
https://yewtu.be/watch?v=VjEq-r2agqc

array, to javascript
@array@fosstodon.org avatar

Yesterday a colleague passed me a #javascript function which was resolved in a return. And what did it return? Well first two lines of conjunctions, disjuncted from another two lines of conjunctions. The evaluation of which is passed to a nested ternary operator. So we could finally return an empty string, or a two-word string. It's a short piece of code but believe me, you have to look twice to figure out what it will do... Is this what they call "clever" code? XD

array, to random
@array@fosstodon.org avatar

It's curious how, after I began programming, I stopped tweaking and, generally speaking, caring too much about my DE/WM configuration. I used to play with themes, icon sets, configs and stuff as much as I could. Now I just play with the code I write and/or work with, and use a pretty barebones Sway config and/or vanilla Gnome at home, and Windows at work (not my choice, though). "Does the job and stays out of your way" is more than enough for me now. :)

array, to motorcycles
@array@fosstodon.org avatar

I've been digging in the #motorbike rabbit hole for a couple of days, and I've already found some already familiar -and quite annoying- bits similar to the ones you can find in tech (programming, sysadmining, hardware and software choices...) For example, variations on the unsolicited advice "You shouldn't [buy/use] $stuff, that's garbage, use $betterStuff instead". Human nature is what it is and it just switches context I guess. :P

fedops,
@fedops@fosstodon.org avatar

@array yeah, posing is for teens and twens. 😂

I also did everything on two wheels; commuting, shopping, going on vacation. I think it's the best way to learn riding in all kinds of conditions, making you more proficient. The equipment choices reflect that. The sunny Sunday posers are just a different breed. 😄

array,
@array@fosstodon.org avatar

@fedops Amen. XD I'll take my first weekend with the ride in a solitary place where I can familiarize myself with it, and as you said, practice braking, cornering and stuff. And I don't have any necessity of going fast, but of going safe. It's not just me I'm responsible for, and I just want to move from A to B, "B" not being either a hospital nor a morgue. :P

That said, I remember riding a bike as fun. So I'll try to have my bit of fun, too. Just playing it safe. :)

array, to Java
@array@fosstodon.org avatar

In other news, this week I've found a 16,600+ LOC #Java 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

@motofix The market where I live may not be what you expect, at least for fresh junior dev positions. I spent about half a year before securing my first gig, which was a total disaster TBH... This is my second one, started just 3 weeks ago, but it's going way better so far (I do full stack, not just Java). They use Windows and I can think why is that, same as in my former position. Again, not that I like it, but the enterprise software used in my workstation would not work in Linux, I'd bet.

array,
@array@fosstodon.org avatar

@kittylyst @motofix I don't know the reason, I was just informed of the fact in my first interview. As I was using Eclipse already for personal use, I'm pretty happy with that. But even if I wasn't (as with using Windows), I'm not in a position to discuss the development choices in a multinational enterprise with decades long in the market, I'm just a newbie grunt and do what I'm told. ;)

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

fedops,
@fedops@fosstodon.org avatar

@array sorry to hear that. It's the same for many of the "sun islands". On the one hand tourism is a major source of income, but it's also a major source of inequality, waste, and hassle.

That is a really cute bike! I've always liked the classic cafe racers and even the copies of the copies preserve the style and character.

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

tulpa,
@tulpa@fosstodon.org avatar

@array That sounds just like how my dev coworkers talk about the old codebase. The new version is much less terrifying.

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. ;)

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

tulpa,
@tulpa@fosstodon.org avatar

@array @fedops Just last week, I wrote: // this is terrible.

And surprisingly, it passed code review without comment!

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

motofix,
@motofix@mamot.fr avatar

@array @fedops @tulpa after 20 years of #java coding, having worked with others ( C, C++, PHP, js, Rust, python), well I think Java is most of the time the Silver Bullet for any serious, long lasting, industry grade projects, and recent versions get it closer :-)

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

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

ntha,
@ntha@mastodon.social avatar

@array @hydrian @blu256 Do you assign data to Dto/Model classes (for better editor integration) or just keep it as a HashMap of some kind? In PHP I've been lazy and just keep everything as an array, even though for type support casting to a Model class would be better.

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 🚗.

indie1337_1,
@indie1337_1@vivaldi.net avatar

@array I meant like... An actual pedal bike or an actual scooter :-P leg-powered

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. :(

array, to Java
@array@fosstodon.org avatar

I've got the impression that the doesn't get all the love it deserves, but I'm quite a fan myself. It's really impressive how featureful it is, and sure doing would be way harder if I couldn't count on it. My $newJob, I've been told, makes using Eclipse mandatory for Java dev, so this is great news for me. :)

array, to ubuntu
@array@fosstodon.org avatar

I, for one, would like not to having to think about my OS much. Just knowing that it's FOSS, and get sh*t done. So here I am, mostly stuck on for dev work because reasons, and not a day I don't read someone telling us it's bad and we shouldn't use it. It's a bit tiring and I've got enough on my head to consider a switch ATM. So note to myself: keep using whatever works for me while I don't have to compromise personal values, and thus become:

array, to Java
@array@fosstodon.org avatar

My #Java project goes on, as a learning practice preparing for $newJob. I have, on purpose, excluded any frontend frameworks, just plain old HTML and CSS, and some JS strictly when needed. I build my templates with JSP, and I'm not using any backend framework. A bit more work? Maybe. But it's crystal clear, less bloated, and so fast! Plus, I get to see behind the abstractions, implementing models, services, factories, servlets, utils, etc. all by myself. In other words: I'm having fun. :)

array,
@array@fosstodon.org avatar

@HaraldKi I 100% agree with this and your blog post, thanks for sharing. I've been bitten by, say, trying to override Bootstrap rules, or trying to upgrade the npm deps for a Express+Vuetify project weeks later after starting such project and everything breaking... Java is, I believe, more "boring" in that sense. ;)

That said, I was taught straight "vanilla" web tech in my AD, and though I like, say, Laravel, the "magic" you mention, and to rely on so many moving parts... It's a trade off. ;)

array,
@array@fosstodon.org avatar

@HaraldKi For CSS in particular, I very much prefer straight CSS rules. I have a complete control (well, to a point; CSS is as easy as it's really difficult to get right!) on my views, up to any detail. And JS, sure say Vue makes some things more straightforward, but writing vanilla JS puts you, again, in control, no magic here (dynamically inserting data with JSP apart), and for a pet project more than suffices. Plus I've noticed how fast it is, compared to the Node/Vue project...

array, to random
@array@fosstodon.org avatar

What ends with my patience when I'm in "helpdesk mode" is that most people I'm trying to help seem to have learned to use their GUIs just by repetition and memory, and fsck heuristics. Switch a button's position, move a menu item, and they are lost. No matter how many times you say, "you just have one screen to explore, so just read what's there, move your pointer, read the tooltips, click and read the menus..." But it's parrot's way or the highway. 🤦‍♀️

array,
@array@fosstodon.org avatar

@justincroser I use Sway myself and TBH, there's not much to play with, as it's mostly not responsive to mouse clicks, no icons, no nothing... If you don't know the kb shortcuts you are mostly lost. But that's a bit of a corner case. ;)

array,
@array@fosstodon.org avatar

@justincroser Yeah, I've sometimes given my laptop to some people and asked them to open the browser or something like that just for a laugh... People just think that you are weird I guess. I'm pretty ok with being a weirdo, you know. XD

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