Preferences

sandoze
Joined 258 karma

  1. I can’t speak to OS development but industrial coding there’s a lot of experimenting and throw away. You generally don’t write a lot of code for the platform you’re building on (PLCs, automation components). It’s well tested and if it doesn’t hit industry standards (eg. timing, braking) you iterate or start over. At least that was my experience.

    When it comes to general software development for customers in the everyday world (phones, computers, web). I often write once for proof, iterate as product requirements becomes clearer/refined, rewrite if necessary (code smell, initial pattern was inefficient for the final outcome).

    On a large project, often I’ll touch something I wrote a year ago and realize I’ve evolved the pattern or learned something new in the language/system and I’ll do a little refactor while I’m in there. Even if it’s just code organization for readability.

  2. My thought to who you replied to exactly. Am I going to invest several days to read an AI slop novel? No. But I will take several minutes to read a blog post and likely have read many that were AI generated or assisted.
  3. Before AI there was a general consensus that creative areas (eg. Cities) were becoming a homogenized experience. A Starbuckization if you will. I can’t help but wonder what gets lost when using tools like this.
  4. Different strokes for different folks. You don't need to please everyone, but it helps if you can move 15 million units with three developers. I don't play Candy Crush but yet somehow this little cash cow keeps getting updated and I'm not one of the 2.7 billion downloads!
  5. There are additional links and details about LazyVStack highlighted in the content. I thought the top level article focused on Lists would be more helpful for you.
  6. I’m on a phone which means digging through Apple docs or WWDC-ascii isn’t fun. But for my recent Insta-like infinite feed on iOS this was very helpful:

    https://fatbobman.com/en/posts/tips-and-considerations-for-u...

  7. To be fair a LazyVStack handles cell reuse and unloading automatically which is why offscreen content that was previously viewed further back on the list will only maintain the root level state (children in the view hierarchy may and will lose state in order to save memory and energy). How that data is loaded and how you key off Identifiable is also important.

    Apple’s own documentation discusses this in detail and for large data sets recommends the Lazy approach. If you’re using List you’re in for some issues.

  8. I primarily do iOS and iPadOS, but it’s far easier to bridge the gap between all the platforms than the experience I had in the past with UIKit/AppKit. My last MacOS app sadly does not do infinite scrolling.

    Off the top of my head, I’d consider the approach. Is it a ScrollView? A LazyVStack? What do your view redraws look like?

    Anyone working with Swift Strings back in Swift 1+2 was in for some shockingly bad performance. We adopt, we adapt, and the framework matures.

  9. So many things wrong with this. Reminds me of the Objective-c vs Swift arguments from back in the day. The author mentions the initial release, as someone who held out migrating production apps to Swift until v3 I think we all know early adoption is going to be bumpy.

    But as of iOS 15+ SwiftUI is very production ready. I’ve migrated two production applications from UIKit to SwiftUI. These have active users and are available on the App Store.

    Bloated? The last migration resulted in 79k new lines of code written and 181k deletions after rewriting 80% of the application.

    Photos album works out of the box. If you mean camera then there are some issues depending on your use case. Beauty of SwiftUI is we can wrap UIKit views and interop allowing it to play nicely with other frameworks.

    If you’re supporting applications that target the last few iOS versions it’s time to learn the new paradigm. Do yourself a favor but most of all anyone who might inherit your codebase.

  10. I know all cars can’t be perfect but as a 2010 Prius owner (I probably shouldn’t complain given it’s 15 years old) it has had several well documented issues that never prompted a recall.

    I was hit with a bad oil gasket that causes the engine to burn oil. It’s so much work to replace their solution is to replace the entire engine. My solution is to keep putting oil in it. I was told by the dealer this is common over 70k miles.

    The steering controls (heat, volume, cruise) stopped working pretty early on. It was well over $1k to fix, mostly labor. Apparently the connection they use is prone to failure.

    Leaves me wondering if my next car will be a Toyota. Maybe if they adopted Apple CarPlay.

    That being said, batteries are still good and I’ve been pretty impressed how low the maintenance has been.

  11. Sadly this rings true. Of all the apps and games we've ported to Android the cost has never been worth it. The games were pirated more than purchased and across both apps and games our support tickets went way up.
  12. Had this back in the 90s for a month or two. It was amazing. A bit finicky. Our neighbors split out cable outside and it stopped working. Apparently needed a dedicated line.
  13. I program for a career and I’m not going to argue that iPad is going to be my go to device, until there’s a ‘killer’ app. But that’s my day job. When I want to play around with a hobby (writing, music, game dev using Godot???) I turn to an iPad because it’s NOT a computer. Maybe in the same way a lot of music hobbyists buy gear to make music even though using a computer DAW is far easier - we want to ‘unplug’.
  14. I’m always confused by these comments.

    iPad Pros have a very capable (and expensive) keyboard which doubles as a great stand. BLE keyboards and mice can be paired with an iPad. Wired keyboards also work.

  15. I experienced this chronically. It was so pervasive that I would convince myself the next day that I was exhausted with only six hours of sleep. I started tracking my sleep with an Apple Watch and soon realized that, I may wake up, it’s usually for minutes and not nearly as often as I thought!
  16. Broken or broken in your use case? I recently left corporate development for the start up life. As I recall we had to disable our VPN for the majority of development use cases, from package management (gradle), robotics comms, all the way down to running third party unsigned software (I received a stern email from security for downloading Apple’s OpenAPI package).

    Our security chain was so deeply embedded in every part of the OS that I was constantly trying to figure out where the failures and slow downs were coming from.

  17. You may be correct? Then the assumption would be developers need to pay the $99 fee to be part of the Apple dev program (pretty sure that’s the only way to get notarized). Next step in Apple’s playbook might be upping that fee for third party stores?
  18. Mind giving some high level clarification on how Apple would revoke entitlements on applications they’re not allowed to manage? Honestly curious about the infrastructure involved, is it really simple from a technological stand point?

    If the developer needs to use Apple resources to track and manage said entitlements, and the consumer expects Apple to police bad actors, then are we asking Apple to do this for free on the bad actor’s behalf (oops, I didn’t mean to use your microphone, GPS, BLE in order to sell the info to an enemy state, law enforcement, angry ex!) or should the cost of said infrastructure be passed to the customer when purchasing hardware? OR does Apple wait until an application is exposed, generally through an echo chamber after the damage is done and is made aware of the issue?

  19. Yikes, you might be disappointed:

    https://www.reuters.com/legal/transactional/google-asks-judg...

    I hear Huawei makes nice phones.

  20. Why am I doing all these interviews that grill me on big O(n) if they’re not even using it?!
  21. Maybe their.. issue.. is more related to yelling ‘fire’ in a theatre.

    https://en.m.wikipedia.org/wiki/Shouting_fire_in_a_crowded_t...

  22. I was so proud when I noticed my young child using the always allowed Libby app for hours on end. Finally, setting time limits has turned them into a book worm!

    Only to realize there’s a built in browser that you can bring up if the book embeds a link.

    It’s a safari browser but under the rules of the Libby app.

  23. I don’t think we realize just how much damage an online incident can affect children because we’re no longer ten years old. While I’d love to trust companies to have the best interest in all audiences in mind, my child went down a YouTube rabbit hole of Minecraft, Scratch, and innocent kid videos before being suggested Slenderman, spooky ghost stories, and inevitably a rebirthing video where the participant died.

    Several years of behavioral therapy fixed the night terrors and ticks (he is a spectrum child tbh) but the anxiety attacks in certain situations hasn’t. Neither has my ability to unblock YouTube on our DNS because the recommendation engine is clearly predatory.

    My child is old enough now to circumvent arbitrary restrictions. Whether it’s friends, VPN, or coding up some clever solution. But that effort comes from maturity and reasoning. Not some corp serving ads and clicks.

  24. I use a laptop for work or when I need to use Xcode but I’ve been able to create music and code just fine by piggy backing a raspberry pi. The USB-C port on the iPad can power the pi and run an Ethernet connection. From there I can terminal in or VNC. The iPad becomes my monitor and I use the keyboard case and everything is pretty ok.
  25. This is a great question that will likely be subsidized by their development community. The smart move here is making the SDK available, hopefully hardware for development in the near future, and (most importantly) a market place available on day one for consumers.

    We can never predict the future and can safely assume this will never have the reach of their phones, tablets, or computer market. But it is tempting to play the App Store lottery before the clones roll in!

  26. I hate to say it. From a PR move this is a well crafted email. I can support and relate to the argument. If the moderators are so crucial to the subreddit that they’re in charge of, their loss (and possible movement to another platform) will reflect that as community members also move on. That’s the real protest. Instead closing subs felt a lot like burning down your own house.
  27. There were communities on Reddit that did a poll in Discord on whether or not they should go private. Given the where and who the audience was, what voices do you think were ‘overwhelming’ representative?

    In the end it was a way for many moderators to hijack a community and transfer it to their next pet social space (Discord seems to be the current favorite).

  28. See you in Discord.. after I give them my phone number and figure out how to discover your niche community.. then read through how to join.. which chat room do I type some obscure message into to prove I read the rules in order for a bot to approve me and wait 15 minutes before getting into a welcome chat room where I now need to introduce myself? How do I get access to what it was I was looking for?

    God forbid I ask a question that’s been asked before. If only there was some way to archive and search what I was looking for in the first place.

    Wake me up when I can google site:discord.com

This user hasn’t submitted anything.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal