fell, (edited ) to programming
@fell@ma.fellr.net avatar
Jdreben, to javascript

I regularly use and love #Typescript. I used to use #Python the most – it’s what I learned in and I am more interested in backends than frontends. I also am regularly using and really enjoying #Kotlin (so much better than #Java). But truly Typescript is bae.

#Julia is a joy to work with. Very much like Python but more powerful. If it had the library support Python or #JVM has I would probably prefer to use Julia for backends.

But Typescript really changed the game and now that’s probably my favorite language not just because of the language itself but because it has web dominance. Until I can write #WASM with Python or Kotlin or Rust, and I’m building #web applications, TS is my lingua franca.

I want to try #Rust because it’s the new hotness.

koje71, to Kotlin German
@koje71@darmstadt.social avatar

Das Design wurde etwas überarbeitet und es gibt jetzt schon ein Latein Wörterbuch mit fast 100 Vokabeln und das Mathe Einmaleins.

Der aktuelle Source Code ist hier: https://github.com/koje71/com.koje.cards

Eine Lernkarten App in der Android Entwicklungsumgebung

kenkousen, to Kotlin

Tales from the jar side, including how to zip and unzip files using Gradle (with a rant about Groovy vs Kotlin), some more AI experiments, and the usual silly tweets and toots and skeets oh my

https://kenkousen.substack.com/p/tales-from-the-jar-side-archives?utm_source=mastodon&sd=pf

ArmouredWizard, to Kotlin
@ArmouredWizard@dice.camp avatar

Am I being a bit dumb, or is making a database that has more than 1 table a Herculean Labour?
Scoundrels, Crews and Contacts.
A Scoundrel is in 1 Crew.
A Crew has 0+ Scoundrels.
Contacts are known to individual Scoundrels and/or Crews. A Contact has a Rating (Friend/Neutral/Hostile) with each Scoundrel/Crew.
I need to call each and every combination.
How complicated is this meant to be, as I seem to be making a pig's ear of the whole thing!

Help!

Crell, to Kotlin
@Crell@phpc.social avatar

It's nice to know that the random tutorials you get from search engines in are just as out of date as the ones for . It provides a comfort, of sorts, while learning a new ecosystem.

Crell, to Java
@Crell@phpc.social avatar

Oh. My. Fucking. God.

I have just learned that " Bean" has two completely different and incompatible definitions.

One is a dumb, badly designed data object with getters and setters.

The other is... a service object managed by the Spring framework IoC container.

Holy hell. This is 10x worse than "facades."

Am I wrong here? This is what I'm finding from online tutorials. Is there more nuance that is not coming through, because for now I just hate even more.

ArmouredWizard, to Kotlin
@ArmouredWizard@dice.camp avatar

Big Database Post:

I have my basic App. It allows Users to record details of Quests for .
It uses a single table, with mostly String fields.
I would like to expand, so that each field could hold more data.
e.g. Location ("The Swamp of Doom", "Wizard's Tower") could be it's own table, with each entry having more info.
I could write a sprawling SQL-Helper class to convert everything back and forth to the DTOs used by UI, but isn't Room meant to help?
more...

hywan, to Matrix
@hywan@fosstodon.org avatar

This week has been pretty busy at work. Hopefully it has resulted in absolutely awesome results!

✨ Cold start up time for Element X Android has significantly improved from 3-4sec to 100-150ms for accounts with 1000, 2000 or even 4000 rooms (≈30x speed up). That’s awesome! ✨

I’ll explain tomorrow how we did that. Async Rust and immutable data types simply rock.

Crell, to Kotlin
@Crell@phpc.social avatar

Having tasted extension functions in , I really really want them in . I am not sure how that would be even feasible, though. 😞

jakub_zalas, to FunctionalProgramming
@jakub_zalas@mastodon.social avatar

In the previous post, we looked at the benefits of a domain model implemented in a purely functional code.

This time, we’ll consider how it might work in practice by applying the event sourcing pattern to a functional domain model.

As it turns out the two go very well together.

Read more in my latest post “Functional event sourcing”: https://dev.to/jakub_zalas/functional-event-sourcing-1ea5

ArmouredWizard, to Kotlin
@ArmouredWizard@dice.camp avatar

Whelp, I'm being dumb again, but aren't tutorials meant to assume I'm dumb?
I have my 2 Entity tables, plus a CrossRef table (Scoundrels, Contacts, ScoundrelContactCrossRef)
I can read and write the 2 main tables.
How do I write a new "Scoundrel with associated Contacts" to the 3 tables? I've got it defined in my UI/Domain, and I click SAVE, and... what do I tell ROOM/SQL?

khalidabuhakmeh, to Kotlin
@khalidabuhakmeh@mastodon.social avatar

Wow. @maartenballiauw looks great in the official mascot, Kodee, costume. He's got some amazing Belgian dance moves.

https://www.youtube.com/live/Ar73Axsz2YA?si=pcBS2SclZSqyW72h&t=122

ljrk, to Java
@ljrk@todon.eu avatar

Broke: Using i/o or because it's functional and that's better!

Woke: Using Clojure because is just the better build system and , and suck.

ArmouredWizard, to Kotlin
@ArmouredWizard@dice.camp avatar

Yet another plea for information:
Are there any resources out there that deal with writing data to multiple tables?

I have several tables, and need to both insert and update them with data from my UI/Domain Layer.
e.g. a new Scoundrel needs to Insert ScoundrelEntity, and maybe Insert new CrewEntity, and update CrewScoundrelCrossRef.
I need to do this for several Relationships.
I will also need to edit/delete
Is there any info on this?

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

With 's evolution (discriminated unions, pattern matching, virtual threads), are / still worth it?

Scala & Kotlin have a culture of doing things at compile-time, the former more so than the latter.

This yields safety & expressiveness, and is reflected in features that Java will never implement, in platforms that it will never target well, or in paradigms it will never embrace.

Java is still Java, and you're stuck with Spring, Hibernate, and Jackson, sorry.

ArmouredWizard, to Kotlin
@ArmouredWizard@dice.camp avatar

...and I've run into the same problem I hit before...
I have 3 Entities (Scoundrels, Crews, Contacts)
I have "Scoundrel with Crew" working (Each scoundrel is in exactly 1 Crew. A Crew can have 0+ Scoundrels)
I need to add Contacts. Each Contact can be known to many Scoundrels, and Many Crews.
Each Contact also has a Rating ("Friend", "Neutral" or "Hostile") with each relationship.
I'd like to start by building adding Scoundrels/Contacts relationships

mort, to Kotlin
@mort@fosstodon.org avatar

I can't deal with languages with optional semicolons! I like languages without semicolons, but when they're optional, especially if they feel "C-like", I always end up adding semicolons to some lines even when I try to write in a semicolon-less style. I'm writing some now and I decided to just use semicolons consistently because the alternative is seemingly to use them inconsistently.

Strangely, this isn't an issue I have in . I do have it in however.

Komac, the Kotlin program for creating Winget packages, has now been rewritten in Rust (github.com)

In other news, URLs are now delimited by a space rather than a comma when updating manifests. Komac uses a very small amount amount of memory and has been heavily optimised to minimise memory usage (especially heap allocations). Updating Android Studio (a 1GB+ binary) consistently took just ~3.5mb memory. Komac now has a...

Jdreben, (edited ) to django
@Jdreben@mastodon.world avatar

I’m looking for work! If you’re hiring and I seem like a fit, please reach out.

I have ~7 years of experience as a full stack software developer, and was founding engineer / CTO of Zoba.com.

I graduated from in 2017, have been working on early stage startups since 2014. I studied CS, concentrating on data science and ML.

I’m strong in , RoR, , , , and . I’ve dabbled in , , and .

uliwitness, to Kotlin
@uliwitness@chaos.social avatar

Has anyone managed to implement any iOS delegate protocols from KMM?

Given most will/did delegate methods have the same names and argument types (application for application(willChangeOrientation:…) and application(didChangeOrientation:…)), Kotlin gets confused when I try to implement both, saying I'd already done ...will… when I do …did… .

henrikjernevad, to Kotlin
@henrikjernevad@mastodon.social avatar

Inspired by @thejtoken, here is my programming journey:

QBasic -> Visual Basic 1-6 -> Visual Basic .NET -> C# -> PHP -> JavaScript -> Java -> Scala -> Kotlin -> TypeScript

Favorite so far is (for backend development).

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

If you’re working with external web APIs do I have the feature for you. With the new plugin, you can mock any external API and test against it.

This makes it really easy to try different edge cases or replay failed request/response scenarios. Works in all IDEs starting in the 2024.1 release. You can try it now in the EAP releases.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Don't panic folks, but I do now. Give it a try, is pretty nice. Also, there's . 😄

🙏 boosts appreciated

https://blog.jetbrains.com/idea/2024/05/easy-hacks-how-to-use-java-streams-for-working-with-data/

loke, to Kotlin
@loke@functional.cafe avatar

My Kotlin Native project started giving me link errors after installing Fedora 39.

My Kotlin code links libgmp using cinterop, and when building on Fedora 39 I get this error:

undefined reference to '__isoc23_strtol', version 'GLIBC_2.38'<br></br>

I know that I'm probably one of very few people that uses Kotlin Native for a large project, so the chances of someone actually having stumbled across this issue is probably small, but I'm still mentioning it here in case anyone has any ideas.

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