If 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.
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.
- 16 Posts
- 70 Comments
- samus7070@programming.devtoRust@programming.dev•My frustrations with Rust. Why is this the most loved language?15·9 months ago
- samus7070@programming.devtoProgrammer Humor@programming.dev•Quantum Lock suspends sales due to developers losing access to source code2·1 year ago
The reflog is your friend in situations like that.
- samus7070@programming.devtoSwift@programming.dev•Is there a sentence case modifier for the text component in Swift?1·1 year ago
I 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.
- samus7070@programming.devtopolitics @lemmy.world•Trump says he is open to restrictions on contraception before backing away from the statement8·1 year ago
I would argue that Biden can say and do plenty of crazy things as long as he never goes full Trump.
- samus7070@programming.devtoProgramming@programming.dev•Google lays off staff from Flutter, Dart and Python teams weeks before its developer conference | TechCrunch9·1 year ago
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.devtoSelfhosted@lemmy.world•Why is Matrix mentioned more often than XMPP in self hosted forums?English11·1 year ago
The 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.
- samus7070@programming.devtoProgramming@programming.dev•Top 5 Most Popular Web Backend Frameworks in 202416·1 year ago
Claims top 5 and offers zero evidence and very little content beyond what an LLM might write.
- samus7070@programming.devtoWeb Development@programming.dev•Top 5 Most Popular Web Backend Frameworks in 20241·1 year ago
Because ChatGPT thought that was a pro?
- samus7070@programming.devtopolitics @lemmy.world•Court agrees to block collection of Trump's $454 million civil fraud judgment if he puts up $175M2·1 year ago
He’s not going to jail yet. Those are other criminal cases.
- samus7070@programming.devtopolitics @lemmy.world•The GOP Is Too Scared to Let South Dakota Vote on Abortion7·1 year 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.devtoTechnology@lemmy.world•Samsung does an Apple with its first Snapdragon X Elite laptop, suggesting the new Arm-based Windows machines aren't going to be a cheap alternative to x86English5·1 year ago
Or it is just corporate greed. Samsung would love to position something that is just okay into a premium price tier and not have to pay Intel. Sure they’re going to pay Qualcomm instead but you can bet that Qualcomm is giving some great introductory prices to their early partners.
- samus7070@programming.devtoTechnology@lemmy.world•Samsung does an Apple with its first Snapdragon X Elite laptop, suggesting the new Arm-based Windows machines aren't going to be a cheap alternative to x86English5·1 year ago
Any program written for the .net clr ought to just run out of the box. There’s also an x64 to ARM translation layer that works much like Apple’s Rosetta. It will run the binary through a translation and execute that. I have one of the windows arm dev units. It works relatively well except on some games from my limited experience.
- samus7070@programming.devtopolitics @lemmy.world•The NYPD Spent $150 Million to Catch Farebeaters Who Cost the MTA $104,0009·1 year ago
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.devtopolitics @lemmy.world•Frozen embryos shouldn't be considered people, two-thirds of Americans say3·1 year 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.devtoTechnology@lemmy.world•Fanfiction Community Rocked By Etsy Sellers Turning Their Work Into Bound BooksEnglish5·1 year ago
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.devtoTechnology@lemmy.world•Leaks for Windows 11 laptop with Snapdragon X Elite show a CPU that’s a serious threat to Apple’s M3English12·1 year 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.
- samus7070@programming.devtoProgramming@programming.dev•Recommend me a programming language1·1 year ago
People shouldn’t be down voting you just because they disagree and hate php. I’ve read that it has come along way in the last 10 years or so. People really like Laravel too. I wouldn’t put it on my list of recommendations personally but I get why someone might.
- samus7070@programming.devtopolitics @lemmy.world•Officers in Colorado are investigating an apparent altercation between Rep. Boebert and ex-husband61·2 years ago
She’s in her thirties.
The facts are that large companies rarely innovate anything major. They tend to buy up smaller companies that have taken the risk and succeeded. Look at Google and Microsoft and tons of others. It’s a problem with growing big. The forces that make a company a successful scrappy little startup die out in the name of organizational efficiency. If you want to know what Apple innovated you have to look at what they did in the 70s or extend your criteria to companies they have bought.
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.