@alexelcu@social.alexn.org
@alexelcu@social.alexn.org avatar

alexelcu

@alexelcu@social.alexn.org

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

alexelcu, to random
@alexelcu@social.alexn.org avatar

Twitter's domain is now officially x.com — this is probably the worst rebranding I've ever seen 😄

alexelcu, to programming
@alexelcu@social.alexn.org avatar

This is old news, but there's now an official announcement — Apache Pekko is now a top-level project:

https://news.apache.org/foundation/entry/apache-software-foundation-announces-new-top-level-project-apache-pekko

alexelcu, to programming
@alexelcu@social.alexn.org avatar
alexelcu, to typescript
@alexelcu@social.alexn.org avatar

Async/await in is essentially “direct style”. It will be interesting to see if Effect, a monadic effect system, will take off, as a case study for & — although for “direct style”, these have the advantage of context parameters.

https://effect.website

alexelcu, to random
@alexelcu@social.alexn.org avatar

Anecdotally (n=2), trying to teach teenagers programming by allowing them to use GitHub Copilot / ChatGPT hasn't been going well. Copilot/ChatGPT will generate code that they don't understand, sometimes with mistakes. And I noticed no progression happening while it's used.

alexelcu, to python
@alexelcu@social.alexn.org avatar

On the need for debuggers … I use it rarely because of FP, unit testing and println().

OTOH, I think we are deluding ourselves. We don't do debugging b/c the tools suck. Nothing ever comes close to having a real console at your breakpoint:

import pdb; pdb.set_trace()

alexelcu, to random
@alexelcu@social.alexn.org avatar

Scala Native 0.5.0 released. Introduces multithreading and delimited continuations 😍

https://scala-native.org/en/stable/changelog/0.5.x/0.5.0.html

alexelcu, to programming
@alexelcu@social.alexn.org avatar

Martin Odersky's thoughts on "Lean Scala"

What do you think?

https://odersky.github.io/blog/2024-03-21-post.html

alexelcu, to random
@alexelcu@social.alexn.org avatar

I'm starting to assess the health & maturity of programming languages by the availability of
‣ good LSP implementation (VS Code, vim, etc.);
‣ good IntelliJ IDEA plugin.

None is optional, I want both.

alexelcu, to programming
@alexelcu@social.alexn.org avatar

"Reasons to migrate to Scala 3"

alexelcu, to programming
@alexelcu@social.alexn.org avatar

turned 20

image/jpeg

alexelcu, to FunctionalProgramming
@alexelcu@social.alexn.org avatar

will make you build better software, regardless of language. Some understated effects:
‣ Prefer params to global state
‣ Prefer data pipelines to fragile state mutation
‣ Prefer clear responsibilities for components
‣ Make dangerous side effects visible.

alexelcu, to programming
@alexelcu@social.alexn.org avatar

The series of articles titled “My Scala Story” is pretty cool, worth a read 🥰
Interesting to see how many came to #Scala for mostly the same reasons — having fun with #FP 💪👾

https://softwaremill.com/blog/?tag=myscalastory

alexelcu, to react
@alexelcu@social.alexn.org avatar

#Preact, the light alternative to #React, doesn't require a build process, as it's using:

‣ tagged templates, instead of JSX;
‣ JavaScript modules.

This is the future of #JavaScript:
https://preactjs.com/guide/v10/getting-started#no-build-tools-route

#noBuildTools #op

alexelcu, to programming
@alexelcu@social.alexn.org avatar
alexelcu, to programming
@alexelcu@social.alexn.org avatar
alexelcu, to programming
@alexelcu@social.alexn.org avatar

“In #Scala, Cats-Effect's Resource is too difficult, and all those implicit params and tagless final makes code hard to read 😣”

Goes back to #Java:

https://quarkus.io/guides/cdi-reference
https://docs.spring.io/spring-framework/reference/core/beans/dependencies/factory-collaborators.html

👹 #op

alexelcu, to programming
@alexelcu@social.alexn.org avatar

PRO-TIP: can compile packages with 's native-image. And without --no-fallback, the compatibility issues (e.g., w/ reflection) are minimal.

Fast startup, reasonable binary size, good RAM use 💪

alexelcu, to Cats
@alexelcu@social.alexn.org avatar
alexelcu, to Blog
@alexelcu@social.alexn.org avatar

“Scala's Future”

Gather around, kids, let me tell you two stories from my past in the software industry.

https://alexn.org/blog/2024/01/10/scala-future/

#Blog #Scala #Scala3

alexelcu, to programming
@alexelcu@social.alexn.org avatar

"Update NextDNS with a Scala CLI script"

Today I was reminded how awesome Scala is for scripting, via Scala CLI. And it goes beyond having “batteries included”.

https://alexn.org/blog/2024/01/10/update-nextdns-with-a-scala-cli-script/

#Scala #CLI #Snippet #Shell

alexelcu, to firefox
@alexelcu@social.alexn.org avatar

#Firefox for #Android opened access to more extensions. I use uBlock Origin and Dark Reader.

Other reasons to use Firefox on Android — history sync that actually works, “open in app”, multiple search engines, not adversarial, feels good using it.

https://blog.mozilla.org/en/mozilla/new-extensions-youll-love-now-available-on-firefox-for-android/

alexelcu, to programming
@alexelcu@social.alexn.org avatar

A hidden gem in #Scala's #sbt build tool is the testQuick command. If you're not using it yet, you should.

https://www.scala-sbt.org/1.x/docs/Testing.html#testQuick
#op

alexelcu, to programming
@alexelcu@social.alexn.org avatar

https://adventofcode.com is starting soon.

This year, challenge yourself to solve those puzzles in #Scala 3, significant indentation and all 😍

So who's up for it? And would you like to see me struggle?
#adventOfCode #op

alexelcu, to programming
@alexelcu@social.alexn.org avatar

In principle, I know the advantages of dynamic type systems — treating code as data, or inventing types on the fly, based on runtime conditions. In practice, I've never seen any good use of dynamic type systems, only downsides.

Everything good about dynamic type systems has to do with tooling. The culture of simplicity, the REPL, the scripting, creating types based on external input (DBs, JSON files), etc. These are all great, yet nothing that a static language can't do better.

#programming

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