samus7070

joined 1 year ago
[–] samus7070@programming.dev 3 points 5 days ago (3 children)

I think the responder means that duplicate code is usually easy to refactor into single methods. Typically I see copy pasted code that is changed just a little bit. However much of a duplicated function can be broken into smaller functions and the redundant code removed in favor of calling into the functions. Often what is left then becomes easier to reason about and refactor accordingly. I love the PRs that I make which delete more code than I add but still manage to add functionality. It doesn’t happen often but it’s fun when it does.

[–] samus7070@programming.dev 2 points 3 months ago

The reflog is your friend in situations like that.

[–] samus7070@programming.dev 9 points 6 months ago (1 children)

It was originally meant as a better JavaScript and it was. It failed when none of the other browsers expressed interest in supporting it. It languished for a while and then was taken up by the Flutter team. At the time Flutter took it up it was somewhere around the level of Java 8 in features but not quite on par. Since then it’s seen some massive improvements to the type system and language. It’s completely null sound, not just null safe like Kotlin. It recently got records/tuples and one of the more capable pattern matching syntaxes I’ve ever seen in a functional imperative hybrid language. The next stable version of dart will introduce a compiler macro system that is very promising. The syntax isn’t always the prettiest due to it trying to not totally break old code. I do think that it offers a wide range of modern language features that competes heavily with Swift and Kotlin in the mobile space.

[–] samus7070@programming.dev 16 points 7 months ago

Claims top 5 and offers zero evidence and very little content beyond what an LLM might write.

[–] samus7070@programming.dev 1 points 7 months ago

Because ChatGPT thought that was a pro?

[–] samus7070@programming.dev 1 points 7 months ago

They tried like hell to keep it off of the ballot in Ohio because they were afraid of what did happen. I can’t say if all of the dirty politics influenced people who were unsure how to vote in the opposite direction the GOP intended. Statistically speaking the final vote wasn’t even close. That is what they fear.

[–] samus7070@programming.dev 6 points 7 months ago (1 children)

Have you ever driven through a small town and seen a police car sitting right where the speed limit drops? Those tickets and the kangaroo mayor’s courts are the only reason some of those towns are still alive.

[–] samus7070@programming.dev 3 points 7 months ago

The logo is closer to do ith ub. It might summon an orcish demon patron if said with the right spell components.

[–] samus7070@programming.dev 4 points 8 months ago

Recently I made an app using Flutter that I tried to distribute over the Windows Store. I was unable to get past the company verification process despite having whatever I needed. Their backend management site is pretty bad. Eventually I got stuck in some loop where the page would just keep refreshing endlessly. The tax form site which is separate wraps another site in an iframe. I decided to set it aside for a while because the app is also in the Amazon store. If I can conjure up the energy I’ll fight that beast again.

[–] samus7070@programming.dev 3 points 8 months ago

I’m all for it as long as the federal tax credit for fourteen children outweighs the storage costs. It’ll be nice to still claim that one when I’m in my nineties. /s in case it wasn’t clear.

[–] samus7070@programming.dev 3 points 8 months ago (1 children)

True. I’m not an expert here but I always thought that fan fiction could only co-exist with copyrighted material if the author wasn’t benefiting financially from the derivative work. Someone else taking it and selling it seems like more a target for the rights holders of the original work.

[–] samus7070@programming.dev 10 points 8 months ago

I have one of the Voltera dev kits. It’s not bad. It probably runs at almost the same speed as the m1 mini or maybe closer to the dev kit. The x86 emulation is decent. It doesn’t do well when running old games like Age of Empires 2 HD. For doing light development it is okay. The nice thing is that it is far more efficient than anything Intel puts out. Whether Qualcomm can keep the performance per watt to levels like the M series chips remains to be seen.

 

Android 14 is already here, so I took the documentation, experts’ reviews, and other available resources to sort out all the important changes that will affect most application developers. Let’s examine new restrictions on background mode, changes in Foreground Service, new restrictions on the work of Intent and BroadcastReceiver. In this release, we have many restrictions, but we’ve also got new features.

 

Usually when I read a KMP article it talks about mobile. This one is about JS and the JVM.

 

In this episode, we talk to Rick Clephas, one of the Kotlin Foundation Grants Program winners and the creator of KMP-NativeCoroutines and KMM-ViewModel.

When I last used KMP it was before the new memory model so I avoided coroutines as much as possible. A year later and it looks to be so much easier and better now.

view more: next ›