Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Comment Re:ObjC to Swift, 4 years in (Score 1) 262

This.

HUGE fan of Objective-C, back from the NeXT days. Been writing iOS apps since ARC was optional and I never used it, because *I* knew how to alloc and free memory. Yeah, that meant it was a pain in the ass when Apple made ARC a requirement.

I miss introspection, sure. But optionals, tuples, native unicode support, default parameters, conditional generics, and a consistent calling syntax just makes my life easier. Add to that first-class immutable structs, better functional programming support, and stronger exception handling, and I just enjoy programming Swift more than Objective-C.

It's not like dynamic dispatch went away -- it just got shuffled to object extensions.

That said, there are some things I don't like about Swift: lack of introspection (as I admitted), and especially still using ARC for memory management. While it may be fast, resolving retention cycles can be difficult, especially if one half of the retention is in some Cocoa library.

Swift doesn't lock you into Apple products. It's an open-source language, for cryin' out loud. What locks you into Apple products are the libraries you use to target a specific platform. Just like MFC locks you into Microsoft products.

I can see why some people might prefer Objective-C. I still look on it fondly as the best of the C-based OO languages. Hell, I still love programming in straight-up C.

I'm just glad I made the jump to Swift.

Oh, I'm also moving to Kotlin for my Android projects for many of the same reasons.

Biotech

Researcher Hacks Nine Sleep-Tracking Devices To Test Their Accuracy (brown.edu) 44

A determined researcher at Brown University extracted "the previously irretrievable sleep tracking data from the Hello Sense, from the Microsoft Band, and nine other popular devices," according to an anonymous reader, "by decompiling the apps and using man-in-the-middle attacks." Then they compared each device's data to that from a research-standard actigraph. Their results? The Fitbit Alta seems to be the most accurate among the other nine in terms of sleep versus awake data... Our findings tell that these consumer-level sleep reports should be taken with a grain of salt, but regardless we're happy to see more and more people investing in improving their sleep.

Comment Not Keeping Up. Horseshit. (Score 4, Insightful) 87

"In fact, with Chrome's regular additions and changes, developers have to keep up to ensure they are taking advantage of everything available. "

Uh, no. You don't. The page you developed yesterday (or in 2000) should display just the same if you did it right in the first place. If not it's the browsers fault, not yours for "not keeping up". It's a fucking web browser.

Slashdot Top Deals

"I think trash is the most important manifestation of culture we have in my lifetime." - Johnny Legend

Working...