@vascorsd@mastodon.social
@vascorsd@mastodon.social avatar

vascorsd

@vascorsd@mastodon.social

• anime & manga • strong copyleft • privacy
• linux • functional programming • tech

No Freedom exists without Privacy.

Currently #scala software developer.
Half-shit posting around. Check at your own risk.

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

vascorsd, to random
@vascorsd@mastodon.social avatar

Internet Archive is continuing to face DDoS attacks after several days, says “this attack has been sustained, impactful, targeted, adaptive, and importantly, mean”
https://lemmy.world/post/15949642

vascorsd, to programming
@vascorsd@mastodon.social avatar

I was pointed out yesterday to scodec for . It has some important things there that seem very useful and will likely use it.

It's just pretty sad that such a known, useful, stable library has most of the site with incomplete docs, broken links and incomplete released version numbers.

Example:

🫣

vascorsd,
@vascorsd@mastodon.social avatar

In general the official API docs are very very lacking and generally suck.

Methods have barely any description on them. There are no examples in most methods to understand them. Important methods and collections lack explanation of their characteristics related to performance, runtime, O notations of each etc. Barely describe where each is more appropriate vs others, etc.

🫣

vascorsd, to linux
@vascorsd@mastodon.social avatar

I find extremely confusing the whole dbus service & object & interface thing, it makes no sense at all in my dumb head. But it is what it is.

Seems a nice post about .

--
DBus and systemd — Beartama's Blog documentation
https://uyha.github.io/technical/dbus-systemd.html

vascorsd,
@vascorsd@mastodon.social avatar

@dvim oh that's some nice code you got there. I'll be checking it, there's some stuff I also wanted to do there.

I had tried to use the process calling of fs2 some time ago but it was confusing to me how to deal with some of the streams. Eventually I'll try it again.

With the code size and libs there it should be possible to get things working with scala native. At least cats and fs2 I know should work.

vascorsd, to random
@vascorsd@mastodon.social avatar

An Overview of the Starlark language | Laurent Le Brun's blog
https://laurent.le-brun.eu/blog/an-overview-of-starlark

vascorsd, to random
@vascorsd@mastodon.social avatar
vascorsd, to random
@vascorsd@mastodon.social avatar

The AI scams are out of control.

https://www.youtube.com/watch?v=d7DtiMzMBdU

vascorsd, to random
@vascorsd@mastodon.social avatar

Why are vulnerabilities out of control in 2024? – Open Source Security
https://opensourcesecurity.io/2024/06/03/why-are-vulnerabilities-out-of-control-in-2024/

vascorsd, to programming
@vascorsd@mastodon.social avatar

Holy cow, I enabled strict equality on to see if it fixed my problems and now I have to manually add a "derives CanEqual" to every enum that I want to compare. Wth :aaaa: :welp: :wyd:

vascorsd, to Anime
@vascorsd@mastodon.social avatar

Amazing how there are so many ost music that you just end up knowing and loving even without ever having watched the animes.

It's a testament to just how good the bands and artists really are.

https://www.youtube.com/watch?v=JF6Sw1d4qrY

vascorsd,
@vascorsd@mastodon.social avatar

Doesn't really help if you regularly listen to some nippon nerdy music from sites like https://listen.moe or https://r-a-d.io

:blobnom:

Just happy that after so many years they keep working 😅

vascorsd, to random
@vascorsd@mastodon.social avatar

GitHub - mikesart/inotify-info: Linux inotify info reporting app
https://github.com/mikesart/inotify-info

vascorsd, to random
@vascorsd@mastodon.social avatar

Stop Scraping my Git Forge | Lobsters
https://lobste.rs/s/rvrl33/stop_scraping_my_git_forge

vascorsd, to programming
@vascorsd@mastodon.social avatar

And am extremely confused with some of new syntax. So if I have a enum with a case X I can't simply add a method for a specific case by just doing

enum AST
case Str(v : String) {
def newMethodIWantHere...
}

Seems very weird. Probably doing something wrong again 🤔😮‍💨

vascorsd,
@vascorsd@mastodon.social avatar

@davesmith00000 yeah that works. I ended up also using some of those extensions for the enum members as well for their companion objects. Like

extension (so: Str.type) {  
 def empty = ...  
}  

Kinda works, which is nice.

It's a little frustrating that I can't do

extension (_: Str.type) or extension (Str.type).

Extensions and enums kinda pair well with each other.

vascorsd,
@vascorsd@mastodon.social avatar

Well doesn't matter. Solved the problem in another way 🫣

vascorsd, to programming
@vascorsd@mastodon.social avatar

You may not like it, but hear me out...

For new code using the newer weird white space syntax you should try to configure the formatter to give you 3 spaces as the indent.

It just makes everything better. Go and try 🫣 :catPOWER:

I tried it the other day before turning the newer syntax off completely and it looked much better than 2 spaces.

:blobpeek:

vascorsd,
@vascorsd@mastodon.social avatar

@ragb and 3 is the best number ever invented. Close to it and maybe better is 5! 🍌

vascorsd,
@vascorsd@mastodon.social avatar

@dwardoric not the tabs 😭. I'm highly allergic to it 😅.

I think you're right about deep nested code, and it absolutely helps there.

But I bet most code out there is not simple and straightforward and small. Most code ends up with nesting and many lines. At least enterprise grade code I've seen over the years. I believe the defaults should be optimized for what the code ends up being eventually.

A simple method is very likely to grow in size and scope.

vascorsd,
@vascorsd@mastodon.social avatar

@enmodo oh, there were some languages that try that model, where the code editing is irrelevant to the underlying code data that is saved/kept in the repo.

The problem being that it doesn't play well with diffs/git I think 🤔.

But it's an interesting concept, I've wondered about it previously.

I'm kinda sure that unison is like that - https://www.unison-lang.org/docs/tour/

vascorsd,
@vascorsd@mastodon.social avatar

@dwardoric it kinda really helps with the eye strain and the mental parsing and grouping of things. I felt it too.

It was kinda unexpected for me since I've been convinced forever that the 2 space indents were a good thing we had.

vascorsd,
@vascorsd@mastodon.social avatar

@dwardoric seeing too deep nesting and the code running off the screen to the right kinda screams at you to try and simplify it earlier and to move things to other functions 🤔

vascorsd,
@vascorsd@mastodon.social avatar

@enmodo true that 😌.

The few hours that I was trying the newer syntax just left me confused, annoyed and frustrated.

Too many errors being thrown to my face about incorrect indentation or can't parse something, expected another.

Nothing beats putting a bunch of code lines, triggering the formatter and it actually working and putting things in the correct places and correct interpretation.

Although I can see some use cases and how some people may like it, I don't think it's for me rn :yell:

vascorsd,
@vascorsd@mastodon.social avatar

@ragb tabs are the worse thing ever invented 😡.

I fondly remember my early programming days and some clang code that had those mixed in and it was horrible everytime I wanted to change code or align things.

Ptsd for life.

The good old days where I didn't know about these holy wars or what indenting or wtv those concepts were.

Simpler times 😌

Not to mention all the 4 or 5 different places where one usually wants to read or change code all being inconsistent with that.

vascorsd,
@vascorsd@mastodon.social avatar

@ragb it's easy to mix them. For understanding when and how to use them you need a deep understanding of what they are meant to be used for, which newbies won't know or understand earlier in their career.

It happened a lot having parameters that you want to align and variable declarations and other things, but then having the tab key not expanding automatically to spaces means that you will use it in the middle of code to try to align things accidentally and inherently things will end up mixed.

vascorsd, to random
@vascorsd@mastodon.social avatar

Any LinkedIn alternatives?
https://lemmy.world/post/16176277

  • 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