samus7070

joined 1 year ago
[–] samus7070@programming.dev 3 points 2 weeks 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 14 points 1 month ago (1 children)

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.

[–] samus7070@programming.dev 11 points 6 months 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.dev 5 points 8 months ago (2 children)

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.dev 5 points 8 months ago (2 children)

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.dev 2 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 12 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.

[–] samus7070@programming.dev 1 points 9 months 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.dev 16 points 11 months ago (1 children)

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.

[–] samus7070@programming.dev 47 points 11 months ago (1 children)

People laughed their assess off at Bill Gates’s epic failed demo of usb on windows 95. Live on stage he plugged in a peripheral and the machine blue screened. No way in hell would Jobs have taken that risk.

[–] samus7070@programming.dev 215 points 11 months ago (37 children)

The real crime is marketing the driver assist capability under the name autopilot when it is anything but that.

[–] samus7070@programming.dev 5 points 11 months ago

More like banking and finance. Many of them have shipped jobs out of New York and elsewhere to cities in the DFW area like Plano.

view more: next ›