The home of Kotlin

kerfuffle,
@kerfuffle@mastodon.online avatar

In 45 minutes I made a application from scratch, which uses to include from a pom file. It uses static files for the first load, and then renders HTML from templates for of the parts of the pages that need that kind of interaction. There's no (or any at all) and no like or .

Now because simply setting up a project says close to nothing about its real world viability, next step is an actual usecase ( :

jitterted,
@jitterted@sfba.social avatar

@kerfuffle Curious about your choice of vs. natural templating like ?

(I've been doing a lot of HTML generation without templates at all, so curious about your thinking.)

via is so easy!!

kerfuffle,
@kerfuffle@mastodon.online avatar

@jitterted

I haven't worked with Thymeleaf; I used to do SSR using #JSP and later #Freemarker.

As for natural templating: I expect it to make my fragments more clear when the serverside directives are explicitly not in the HTML, like with JTE, whereas the clientside directives are, as HTMX. Less confusing than when clientside and serverside logic are both inline in the same HTML template.

Will have to wait and see how it turns out.

#JTE #Thymeleaf #htmx

andymoose,
@andymoose@mastodon.social avatar

I'm trying to get AWAY from the JVM ffs.

hamoid, (edited )
@hamoid@genart.social avatar

Here's yesterday's talk "Creative Coding in " at the Conf 2024. The first half show work by Edwin (principal developer of the framework) and the RNDR team.

The second part, starting at 6:32:25 (25 min. long), live codes a poster with two graphic layers and one with text.

https://www.youtube.com/watch?v=bhb8y8cJVy0&t=22531

tastapod,
@tastapod@mas.to avatar

In everything is fun, but in everything starts with a pub. It's a tough choice.

khalidabuhakmeh,
@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

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar
yopox,
@yopox@rivals.space avatar
funcode_mag,
@funcode_mag@mastodon.social avatar

We are so very proud to release the fun code() Magazine!
A Magazine for Developers! 🌟

With articles by @chethaase, @jessewilson, @mariobodemann, @mreichelt, @bitpogo, a Do-It-Yourself 3D Kotlin logo & so much more!

Download the PDF:
https://github.com/kotlin-magazine/kotlin-magazine

Enjoy KotlinConf!

mort,
@mort@fosstodon.org avatar

I really like #kotlin's (and others') approach to nullability, where nothing is nullable by default and you mark something as nullable by adding '?' to the type. And the '?.' syntax is nice too. 'foo: Foo? = ...; foo?.doThing()' is nicer than 'foo: Optional<Foo> = ...; foo.map(|it| it.doThing())', and both are miles better than "everything is always implicitly nullable unless annotated with '@NotNull' #plt

Crell,
@Crell@phpc.social avatar

#PHPStan and #PsalmPHP are lightyears better than #KTLint for #Kotlin, at least in the quality of their output. It actually reports something useful, unlike KTLint.

Dear flipping god, how do people work with tools this bad?

#PHP #Kotlin #Java

sven,
@sven@phpc.social avatar

@Crell we (the PHP community) are very spoiled when it comes to tooling. It’s so good!

Crell,
@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. 😞

henrikjernevad,
@henrikjernevad@mastodon.social avatar

@Crell @maxalmonte14 I agree. And I think several languages has shown that the last few years. From the ones I am familiar with, Scala was a surprisingly successful FP/OOP hybrid experiment. Then Kotlin took "the best parts to the masses". But even Java and C# has moved a lot towards FP. And JavaScript is flexible and weird enough to fit both camps.

Crell,
@Crell@phpc.social avatar

@henrikjernevad @maxalmonte14 Most of the guidelines for "good" OOP are borrowed straight from FP, with or without some twisting. Honestly a structurally typed language (Go or Rust) could, with the proper features, easily straddle both sides perfectly.

koje71, German
@koje71@darmstadt.social avatar

Hab ein bisschen weiter an der Kugelbahn gebastelt und etwas Schnickschnack eingebaut. Es gibt Schalter, die beim Überrollen Barrieren öffnen und einige Bahnelemente sind jetzt festgeschraubt, so dass sie sich nicht mehr verschieben lassen.

Ich überlege mir jetzt noch etwas mehr Schnickschnack 😀

Leider ruckelt es etwas im Android Emulator, aber auf dem Handy selber läuft alles total flüssig.

#Kotlin #AndroidDev #IndieGameDev #MarblePuzzle

Eine Kugelbahn für Android in der Entwicklung

Gleisplan,
@Gleisplan@mastodon.social avatar

@koje71

schön

mort,
@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 #kotlin 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 #golang. I do have it in #rust however.

#programming

mort,
@mort@fosstodon.org avatar

@ekuber That's correct, and I would've added a caveat if I wasn't limited to 512 characters, but here we are

For a whole lot of blocks in rust (such as if statements and loops not used as expressions), it doesn't make a difference whether the block technically evaluates to something, so the last semicolon there is in practice optional, so I sometimes forget it

ekuber,
@ekuber@hachyderm.io avatar

@mort but it is mandatory in many of those cases: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=32225df0708630a138de26cfba3f4ffb

Thank you for making me double check, because made me realize there's a bug in our logic: https://github.com/rust-lang/rust/issues/124819

koje71, German
@koje71@darmstadt.social avatar
Crell,
@Crell@phpc.social avatar

Another day, another way in which the #Kotlin/#Java ecosystem is weaker/worse than the #PHP ecosystem.

I'm kind of tired of finding these.

Crell,
@Crell@phpc.social avatar

@adam_turcsan Apparently, it's common (at least in some circles) to have to define database entities as classes... and then also manually write SQL to create the corresponding table/types.

Meanwhile, Doctrine has had auto-migration generation for 15 years?

Apparently there's an IDE plugin to generate migration scripts. Testing it now.

Also, Composer > Gradle, without question.

adam_turcsan,

@Crell In my head, Hibernate is the tool that Doctrine got to be in php, so I don't think that it's not a solvable thing... although I personally have no experience with that. However Composer >> most of the package managers :D

hamoid,
@hamoid@genart.social avatar

I'm very happy that I figured out how to place the icons in columns (responsive) and the names under the thumbnails. I find aligning things in Swing even harder than in CSS.

This is in my https://codeberg.org/hamoid/idea-thumbnails plugin which currently works for and programs, but would be easy to adapt to other languages / frameworks supported by the Idea IDE.

If anyone uses Idea for creative coding, I'm open for contributions :-) I'm a noob at writing Idea plugins.

hamoid,
@hamoid@genart.social avatar

Small improvements in the layout of my Thumbnailer IntelliJ Idea plugin.

dkandalov,

In case you want to try an alternative JSON (de)serialization library for , Kondor https://github.com/uberto/kondor-json by @ramtop is great. No annotation magic, just functions explicitly defining the mapping. No external dependencies. As fast as Jackson.

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