Profile for zlatko

Header for zlatko
Avatar for zlatko
Display name
Panic In The Darkroom
Username
@zlatko@social.zlatko.dev
Role
admin

About zlatko

Bio

According to some, I'm avant-garde ;)

I try to stick to software development and engineering topics, often related to application development, but I also shitpost random stuff, occassionally about photography, (usually not more then) react to politics or economics.

My website is https://zlatko.dev but I less completely-infrequently post a photo or two to my photo gallery https://photos.zlatko.dev.

I also used to post at https://pixelfed.social/zlatko, and https://programming.dev/u/zlatko, and I'll occassionally swipe here and there.

Stats

Joined
Posts
2428
Followed by
164
Following
329

Recent posts

It's incredible how people are overcomplicating Angular (and other frameworks as well). Just because there's a "smart" feature included, it doesn't mean you should use it.

One concrete example I'm currently having a problem with is implementing complex access/permissions behavior through a directive. I assume the intention was: e.g. this: <span *canAccess="null; currentUser.perms; Access.READ">Thing to access</span>. I believe it's intention is clear, the future users of this know how you can show parts of the UI only to people who are supposed to.

But that's actually false, and people do not, in fact, know how to do it. If it was a simple <span *ngIf="canRead()">, any Angular rookie knows this. By making your own custom directive, now people need to learn not just Angular, but also your DSL. It makes sense in big apps with several teams unrelated to eachother. But a lot of the time I see this kind of smart-ass code in a small team and a relatively small app. A dev learned a new trick, and used it. And now two years later, he's long gone and you have to actually go fix things, and you don't understand the intention any more.

Stick to simple, straightforward concepts in Angular, please.

#angular #software #webdevelopment

Open thread at this post

I am being extremely stupid today. In thinking of relatively decent but easy-to-remember password, I came up with:

"roughly, horses have 10 feet".

Then the lil bit of OCD that I have wanted it to be correct. so I expanded it.

But now I cannot stop thinking about the completely unrelated problem. Rounded up, do horses have ten or a hundred feet?

#horses #passwords #math #stupidPeopleThinkStupidThoughts

Open thread at this post

What are we going to do on the Linux side of the story with all the extra CPU/GPU powers and features stuffed into the new "AI" processors, though?

I mean, we can't let it all go to waste, but what do do with it all?

Open thread at this post