michal.pawlik.dev
Software engineer 💻 • #Scala • #FP λ • https://github.com/majk-p • https://polyvariant.org/ • Speaker 🎙️ • Learning through teaching • Blog 🗒️ https://blog.michal.pawlik.dev
70 posts
233 followers
176 following
Regular Contributor
Active Commenter
comment in response to
post
The downside is the discoverability of libraries, especially when a newcomer wants to try this approach. Scaladex helps, but it's still plenty of upfront discovery and wiring.
Adopt tapir adopt-tapir.softwaremill.com does a great work to make it simpler. We should have more wizards like this
comment in response to
post
Personally I like that approach, gives you a lot of flexibility, teaches you to separate concerns and you interface with the library.
comment in response to
post
I hope to turn it into a comprehensive compendium, so please reach out if you have any feedback for the slides.
comment in response to
post
Thanks for the ping! I had an issue with vps, it should be up again now
comment in response to
post
If anything is missing, feel free to raise a PR github.com/scala/scala-...
comment in response to
post
If you've never tried #Scala before, this session is definitely for you!
We'll discuss how to get started, engage with the community, and explore libraries and frameworks you might want to try.
Make sure to bring your friends who haven't tried Scala yet!
comment in response to
post
Looks like the author shares the code on github: bsky.app/profile/why....
@why.bsky.team do you mind lending a hand?
comment in response to
post
I haven't tried that, but if I were to guess, perhaps there's an authenticated counterpart of this api that only serves the feed to the logged in user.
Perhaps someone from #buildinpublic can help, and people are building entire services around bluesky. They will definitely know better 😉
comment in response to
post
The serwer exposes the feed via server.app.bsky.feed.getFeedSkeleton (see: github.com/polyvariant/...) which according to the docs doesn't take any user info docs.bsky.app/docs/api/app.... This means you can't pass anything about the user to your algorithm to request further info like their follows
comment in response to
post
Hey!
That's an interesting question. Honestly, I didn't try anything more complex than mt Scala Feed github.com/polyvariant/....
I just gave it a quick look and I'm not sure if it's doable this way. If I understand correctly you wish to send personalized content based on the requesting user.
comment in response to
post
I'm enrolled already! Thanks @rockthejvm.bsky.social!
comment in response to
post
In case you're wondering the hours mentioned are in CET timezone
comment in response to
post
and kudos @tgodzik.bsky.social for the change!
comment in response to
post
I tried the snapshot for the entire day and it looks awesome!
That might be placebo but I didn't have to clean/import and the overall IDE experience was much smoother.
Definitely give it a go if you haven't already!
comment in response to
post
Yes, can't miss it!
comment in response to
post
Check out podcast by @scalaspace.bsky.social at youtube.com/@scalaspace/...
comment in response to
post
Using sbt in this case is an overkill. With latest #Scala you can call `scala run` to run the code, it's much faster.
It can even run code from gists, give it a go with:
scala run gist.github.com/majk-p/087d0...
comment in response to
post
It's in! Scala feed will now publish all messages from @scala-lang.org @scalaspace.bsky.social and @scalatimes.com 📣
Ping me or raise a PR in github.com/polyvariant/... to add more accounts
comment in response to
post
That said, some projects like scalafix distribute their CLI apps via coursier scalacenter.github.io/scalafix/doc...
comment in response to
post
That's true. You need to set up publishing, and users need to have courier installed.
If your target user is not a scala developer, I'd go with `scala-cli run`. Bonus points for making some users see the code that way 😁
comment in response to
post
There's also `courier launch` where you can provide the package name get-coursier.io/docs/cli-lau...
comment in response to
post
This is also a good reminder to enable punycode winaero.com/enable-idn-p... for better #phishing protection!
In Firefox go for `about:config` and set `network.IDN_show_punycode` to `true`
comment in response to
post
Resolved and deployed, the feed will now include #scala3 hashtag 🚀
comment in response to
post
I like the idea, but I doubt the implementation is intuitive. IMO this would be more straightforward:
```
def idsWithName(expectedName: String) = values.collect {
case User(name == expectedName, id = userId) => userId
}
```
Where `==` acts as comparison
comment in response to
post
Added an issue github.com/polyvariant/...
I'll take care of it tomorrow
comment in response to
post
Thanks! I've never seen it used in the wild, but doesn't hurt to add it either 😉
comment in response to
post
Context: Smithy is an Interface Definition Language (IDL) smithy.io with generators for many languages. I used Smithy4s disneystreaming.github.io/smithy4s for Scala codegen
comment in response to
post
scala-cli is also an option 😄 #scala
comment in response to
post
Top-level methods are present in many popular languages, so it made sense to introduce them for smoother newcomer experience. It makes sense as a concept. Implementation makes it problematic
comment in response to
post
This can be a trap for library developers. Renaming a file makes you break the contract.