Crell, to php
@Crell@phpc.social avatar

Any time I see "bad" code, the first answer is usually "you need more precise and strict types."

Often there's other stuff wrong, but easily 70% of the time, the fix starts with "define the problem better and the problem goes away."

kerfuffle, to Java
@kerfuffle@mastodon.online avatar

Who here knows a CDN that offers edge computing capability for the JVM / GraalVM?

AWS Lambda@Edge only supports JavaScript and Python.
Cloudflare only supports JavaScript.
Fastly supports WebAssembly.

kerfuffle,
@kerfuffle@mastodon.online avatar

Actually, it may be soon that #WebAssembly with WASI support as offered by Fastly can be targeted from #Kotlin / #Java. Nice article on the development by @sdeleuze at https://seb.deleuze.fr/introducing-kotlin-wasm/

Would be sweet if I can have a static #HTML / #CSS website that uses #HTMX for interaction with a backend written in Kotlin and compiled to #wasm running on an edge location using #wasi .

mort, to Kotlin
@mort@fosstodon.org avatar

I really like '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'

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/

sdeleuze, to webassembly French
@sdeleuze@mastodon.online avatar

The Kotlin/Wasm team has created an early prototype of a component written in linked with another component written in and running in Node.js. Looking forward being able to run that in Wasmtime when it gets WasmGC support. https://github.com/skuzmich/kotlin-wasm-cm-experiments

androidweekly, to androiddev German
@androidweekly@androiddev.social avatar

Latest Android Weekly Issue 622 is out!
https://androidweekly.net/issues/issue-622

koje71, to Kotlin 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

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. 😞

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.

Crell,
@Crell@phpc.social avatar

@mort I have the same issue going from #PHP to #Kotlin. Though not having it in Rust is weird. It's a semicolon language aside from returns, no? Or is it the returns that bug you?

koje71, to Kotlin German
@koje71@darmstadt.social avatar
leanpub, to Software
@leanpub@mastodon.social avatar

Jetpack Compose internals https://leanpub.com/composeinternals by Jorge Castillo is the featured book on the Leanpub homepage! https://leanpub.com

robustjumprope, to androiddev

Annotated strings in kotlin with ParagraphStyles or SpanStyles work great for simple forms of MFM (Misskey-Flavored Markdown), but the more complicated they get, the more I'm starting to think I need to look for a better option. Like, what the hell do I do for a blockquote? Or better yet, what the hell do I do for the animated ones? I'm getting really frustrated. If anyone better at Kotlin / Android development has any suggestions for me, please let me know because I am running out of ideas.

leanpub, to Kotlin
@leanpub@mastodon.social avatar

Kotlin Coroutines http://leanpub.com/courses/leanpub/kotlin_coroutines by Marcin Moskała is the featured online course on the Leanpub homepage! https://leanpub.com

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

ovid, to javascript
@ovid@fosstodon.org avatar

I started programming in 1982. Though I'm known as a developer, I tried to remember every other languages I've programmed in.

, #C, 6809 Assembler, , VBScript (and its many variants), , , , , , , Easytrieve, and probably a few others.

I wish I had gotten a job in Prolog, primarily because I loved what I could create with it. I don't love programming; I love creating.

What are you languages?

androidweekly, to androiddev German
@androidweekly@androiddev.social avatar

Latest Android Weekly Issue 620 is out!
https://androidweekly.net/issues/issue-620

Crell, to node
@Crell@phpc.social avatar

We often joke about the billion-dependency problems with . But I haven't seen anyone complain about the equivalent one in /.

He says, looking at the 9000+ line generated dependencies file for this project...

lobocode, to Java
@lobocode@hachyderm.io avatar

I run from #java, but it always follows me. :blobfoxshy:

kerfuffle,
@kerfuffle@mastodon.online avatar

@lobocode Run towards #kotlin then!

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

furmans, to FunctionalProgramming
@furmans@chaos.social avatar

We are super glad to inform you that LAMBDA WORLD CADIZ is BACK...

🗓️2-4 October 2024
📌Palacio de Congresos de Cadiz
🎟️Early Camarón at €150
🪩lambda.world

Should the best Rock-Funky-Hard SolYNaranjaS band make a noise there...? Should not ?

leanpub, to Software
@leanpub@mastodon.social avatar

Jetpack Compose internals by Jorge Castillo is on sale on Leanpub! Its suggested price is $54.99; get it for $32.79 with this coupon: https://leanpub.com/sh/0434fA7W

hamoid, to Kotlin
@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 #OPENRNDR and #Kotlin 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.

#creativeCoding

hamoid,
@hamoid@genart.social avatar

Small improvements in the layout of my Thumbnailer IntelliJ Idea plugin. #creativeCoding #Kotlin #OPENRNDR

jeffsheets, to random
@jeffsheets@hachyderm.io avatar

Kotlin's mapNotNull is beautiful magic

jeffsheets,
@jeffsheets@hachyderm.io avatar

constants are weird in Kotlin. every language has one or two things that should be simple but are weird. I still love kotlin but still struggle with constants, and how copy/pasting files will drop them in IntelliJ every time because they are top-level and semi-classless

https://stackoverflow.com/questions/44038721/constants-in-kotlin-whats-a-recommended-way-to-create-them

#kotlin

jeffsheets,
@jeffsheets@hachyderm.io avatar

Love how Kotlin builds in helpers to all sorts of random things that Java never got around to doing. The padStart function came in super handy when saving data to a mainframe today and needing to pad zero's in front of the last four of an SSN:

request.ssnLastFour?.padStart(9, '0')  

#kotlin

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