@preslavrachev@mastodon.social avatar

preslavrachev

@preslavrachev@mastodon.social

I co-created https://mastodon.social/@murmel_social and https://mastodon.social/@feedle, because I believe in building tools that foster discourse on the open web.

Knowledge management is my second name. I am a software developer, turned entrepreneur, educator, and writer. Between #java (#quarkus) and #golang

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

preslavrachev, to random
@preslavrachev@mastodon.social avatar

FYI: I have added a small automation to this account. I am using the RSS feed that @murmel_social generates for me, to re-post links that appear to be trending in my Mastodon timeline. A good example is the one I posted below.

I have set the threshold for auto-posting a link fairly high, so it should post a couple of times a day, max. Still, if that's too spammy for you, let me know and I will stop it (or guard behind a CW).

Example: https://mastodon.social/@preslavrachev/112322941224117766

preslavrachev, to random
@preslavrachev@mastodon.social avatar

Got this in my @murmel_social digest today: FTC Announces Rule Banning Noncompetes https://www.ftc.gov/news-events/news/press-releases/2024/04/ftc-announces-rule-banning-noncompetes 🔁

preslavrachev, to random
@preslavrachev@mastodon.social avatar

Got this in my @murmel_social digest today: AI Is Poisoning Reddit to Promote Products and Game Google With 'Parasite SEO' https://www.404media.co/ai-is-poisoning-reddit-to-promote-products-and-game-google-with-parasite-seo/ 🔁

preslavrachev, to random
@preslavrachev@mastodon.social avatar

Got this in my @murmel_social digest today: The Man Who Killed Google Search https://www.wheresyoured.at/the-men-who-killed-google/ 🔁

preslavrachev, to random
@preslavrachev@mastodon.social avatar

Got this in my @murmel_social digest today: Logitech’s Mouse Software Now Includes ChatGPT Support, Adds Janky ‘ai_overlay_tmp’ Directory to Users’ Home Folders https://512pixels.net/2024/04/ai-overlay-tmp-home-folder-mac-os/ 🔁

preslavrachev, (edited ) to random
@preslavrachev@mastodon.social avatar

Got this in my @murmel_social digest today: Tracker Beeper - Bert Hubert's writings https://berthub.eu/articles/posts/tracker-beeper/ 🔁

preslavrachev, to programming
@preslavrachev@mastodon.social avatar

Months after my last serious article on Go, I am back at it, reflecting on a topic that is controversial for many devs: should you copy your struct values or pass them as pointers. The comon wisdom suggests to just go "with the flow" and decide on a case-by-case basis. I find this naive and prone to creating unmaintainable codebases. I think that the more robust approach is to strive for creating a consistent codebase backed up by solid reasoning.

https://preslav.me/2024/04/23/two-reasons-to-prefer-struct-pointers-in-golang/

#programming #golang

christophberger, to golang
@christophberger@c.im avatar

Is a-h/templ overrated? What's your opinion?

I stumbled upon this (sometimes heated) discussion:

https://www.reddit.com/r/golang/comments/1c8l8ux/templ_is_overhyped_have_you_even_tried_it/

Some love Templ, some say its DX leaves a lot to be desired. Some miss the field-tested templating engines of other languages.

Curious:

  1. What is your favorite Go templating engine?

  2. What is your favorite Go templating engine if you want type safety in your templates?

#golang
https://www.reddit.com/r/golang/comments/1c8l8ux/templ_is_overhyped_have_you_even_tried_it/

preslavrachev,
@preslavrachev@mastodon.social avatar

@christophberger I used templ to demo a small thing last year. To me, it’s about as useful as sqlc - while I absolutely love the safety and code generation aspect of both, each adds its own level of overhead that I don’t think I enjoy.

That said, the only thing I miss from the stdlib’s template engine is the ability to hierarchically compose templates (which I doubt we’ll ever get). I have previous experience with Django, so I found the Pongo2 lib a good fit too. So, one of those two.

preslavrachev, to ai
@preslavrachev@mastodon.social avatar

We are at the desperate stage of having to ask AI how to fix climate change, hoping it won’t reply with “nuclear winter.”

🥶 💥


#ai #climatechange #nuclear

preslavrachev, (edited ) to golang
@preslavrachev@mastodon.social avatar

I’m writing my next feature post on Go after a long break. For that, I’m interested in your opinion.

In your Go projects, what is more important for you to strive for?

(A quick reminder that you can’t optimize for both, as it would be too good to be true, and won’t make the programmer’s job so exciting.)


bastianallgeier, to random
@bastianallgeier@mastodon.social avatar

Going to a new doctor in Gemany in 2024:

  1. you hand them your insurance card with all your personal data

  2. you fill out a hand written form with the exact same personal data for their files

  3. you fill out another form with the exact same data to agree to their privacy terms.

I really don’t know if people from other countries are aware how much we live in the digital stone age here.

preslavrachev,
@preslavrachev@mastodon.social avatar

@bastianallgeier I’ve been to different doctors, because I’m trying alternative treatments. However, this poses exactly the problem you outlined - every new doc wants to get the entire history so far, and believe it not, they can’t just go and grab it from some common database (even though it’s probably there). So, I have to collect all the papers with me in a folder, and go around with it. I know it’s probably a privileged thing to complain about, but come on, it’s Germany in 2024!

cellfourteen, to random
@cellfourteen@social.petertoushkov.eu avatar

It's time to read the 32 books under the category "Reading" in my Kindle.

preslavrachev,
@preslavrachev@mastodon.social avatar

@cellfourteen same :)

preslavrachev, to writing
@preslavrachev@mastodon.social avatar

Trying to write anything other than a blog post will be a greater challenge than I expected. Not because of lack of creativity - I have the plot, the characters, the conflict, etc. My problem is that everything I write reads and sounds … well, “average” (didn’t want to say “mediocre” here).

Years and years of writing for the Internet have inadvertently eroded my dictionary. When I was taking the SAT years ago, I bragged that I was the king of English vocabulary. Well, not anymore.

preslavrachev, to tesla
@preslavrachev@mastodon.social avatar
lehtimaeki, to random
@lehtimaeki@snapp.social avatar

I want to go for a run

preslavrachev,
@preslavrachev@mastodon.social avatar

@lehtimaeki Me too! I't been a week since my last run, and on top, I had to lay in bed the whole day https://mastodon.social/@preslavrachev/112309224555762114

anze3db, to random
@anze3db@fosstodon.org avatar

Summer has arrived ☀️

preslavrachev,
@preslavrachev@mastodon.social avatar

@anze3db My dream! Enjoy!

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

Some good points to keep in mind when preparing courses and trainings for science majors with no software engineering background. (thanks, @gvwilson)
https://mastodon.social/@gvwilson/112308798099328380

preslavrachev, to blogging
@preslavrachev@mastodon.social avatar

I have an idea, but don’t know if there is a tool available out there that already does it.

Think of a sending system, but instead of sending everyone the latest posts, it takes into account when someone has joined, and sends them all posts in a sequence, spread out by a week of each other (or any other interval). Kind of like chapters in a series - regardless of when you joined, you always get the entire series from the start, one piece at a time.

Thoughts?

preslavrachev,
@preslavrachev@mastodon.social avatar

I don’t think that Ghost or Substack are capable of achieving anything like that. Best I could think of is email campaigning software like Mailchimp, where I’d meticulously set up when each post would be sent (at start, after one week, after 2 weeks, etc). For dynamically evolving content, however, that would be an overkill.

box464, to random
@box464@mastodon.social avatar

What's the best iOS/Mac/Web Podcast listening app?

I want to sync between all devices of course.

preslavrachev,
@preslavrachev@mastodon.social avatar

@box464 PocketCasts. Been using it for ages. It syncs to Android, too, if that matters.

anze3db, to random
@anze3db@fosstodon.org avatar

I've started working on a golang project this week and I’m already knee deep in RWMutexes and atomic pointers, send help.

preslavrachev,
@preslavrachev@mastodon.social avatar

@anze3db normally a channel should do just fine. What are you trying to achieve?

preslavrachev,
@preslavrachev@mastodon.social avatar

@anze3db that's exactly what channels were made for, IMO. All concurrent readers on a channel would block until new data has been pushed on it. Think of a single goroutine (the coordinator) that continuously loops over a channel (containing the current DB ptr). On every iteration, it would create a bunch of "worker" goroutines and then block until a new DB ptr has been pushed onto that channel.

You can read a bit about #Golang's common concurrency patterns here: https://go.dev/talks/2012/concurrency.slide#1

preslavrachev,
@preslavrachev@mastodon.social avatar

@anze3db I know it is hard to explain that in 500 characters without code support. It's probably a good idea to create a short blog post about concurrency patterns in #Golang. I've been meaning to do it for some time.

preslavrachev,
@preslavrachev@mastodon.social avatar

@anze3db Of course, your solution will work, too and is probably even one idea more performant. However, the great thing about channels is that they make it more intuitive and likely, with less edge cases.

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