iOS Swift developer with an unhealthy amount of Android and Flutter thrown in. Cycling enthusiast. Admirer of TTRPGs, sometimes a player, often times a GM.
Write code that is easy to delete, not easy to extend
1y 7mon ago in programming@programming.dev from programmingisterrible.comI 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.
My frustrations with Rust. Why is this the most loved language?
1y 8mon ago in rust@programming.devIf your primary exposure to programming is only typescript or JavaScript maybe you shouldn’t be jumping straight into something like rust. JS is a high level language and rust is aimed at the lower levels where things can’t be as automatic. There are many languages out there like C#, Kotlin and Swift that will help you get used to the idea of strong types and immutability.
A second edition of clean code is being written
1y 10mon ago in books@programming.dev from programming.devSuch a polarizing book. I like it but I tell everyone that I recommend it to, to not go to the depths that the book recommends. Never go full Clean Code.
Quantum Lock suspends sales due to developers losing access to source code
1y 10mon ago in programmer_humor@programming.dev from store.steampowered.comThe reflog is your friend in situations like that.
Is there a sentence case modifier for the text component in Swift?
1y 11mon ago in swift@programming.devI think there might be something to do that in Foundation. You would have to cast to an NSString to access it though. I might be mistaken and there’s only a title case method. Sentence case is easy minus the not converting proper names to lower case problem.
Trump says he is open to restrictions on contraception before backing away from the statement
2y 6d ago in politics from apnews.comI would argue that Biden can say and do plenty of crazy things as long as he never goes full Trump.
Google lays off staff from Flutter, Dart and Python teams weeks before its developer conference | TechCrunch
2y 1mon ago in programming@programming.dev from techcrunch.comIt 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.
Why is Matrix mentioned more often than XMPP in self hosted forums?
2y 1mon ago in selfhostedThe only things JSON has over xml is that it’s easier to write a parser for it and the format is less verbose and less complicated. There are extensions to JSON that can add features that xml has and the JSON spec doesn’t have. Overall the xml spec is bigger and has more features but that also makes it overkill for many of the cases that it would be used in.
Top 5 Most Popular Web Backend Frameworks in 2024
2y 2mon ago in webdev@programming.dev from withcodeexample.comBecause ChatGPT thought that was a pro?
Top 5 Most Popular Web Backend Frameworks in 2024
2y 2mon ago in programming@programming.dev from withcodeexample.comClaims top 5 and offers zero evidence and very little content beyond what an LLM might write.
WWDC24 Announced
2y 2mon ago in ios_dev@programming.devMasking Third Party Dependencies
2y 7mon ago in ios_dev@programming.dev from www.swiftjectivec.comHow (not) to monitor SwiftUI State
2y 7mon ago in ios_dev@programming.dev from blog.thomasdurand.frDeveloping Flutter apps for Large screens
2y 7mon ago in flutter@programming.dev from medium.comIssue 188 - Flutter Tap Weekly Newsletter
2y 8mon ago in flutter@programming.dev from fluttertap.comXcode 15 issue related to Flutter 3 — Fix
2y 8mon ago in flutter@programming.dev from medium.comWhat’s new in Android 14 for developers
2y 8mon ago in android_dev@programming.dev from proandroiddev.comMastering Observation framework in Swift
2y 8mon ago in ios_dev@programming.dev from swiftwithmajid.comSwift Data by Example
2y 8mon ago in ios_dev@programming.dev from www.hackingwithswift.comEverything you need to know about Enum with Flutter and Dart
2y 8mon ago in flutter@programming.dev from lyabs.hashnode.dev










