iOS Dev Weekly - iOS Dev Weekly - Issue 689

I tried two new (ish) AI coding tools this week. What did I think? šŸ¤”
 

iOS Dev Weekly

 
View on the Web    Archives

ISSUE 689  November 29th 2024

 
Comment

  Comment  

 

Iā€™ve had a week off from Swift Package Index this week as I needed to do some work on this newsletter. Curated (the email service I use) has had some problems recently, and Iā€™m investigating what it would take to self-host my newsletter again. It started over 13 years ago as a simple Jekyll site with an ESP account, and thatā€™s where I think itā€™ll end up again soon.

You wonā€™t see big changes when it transitions back to being self-hosted, so why am I talking about it? Well, itā€™s been a great chance for me to play with a couple of AI developer tools that Iā€™ve been meaning to check out.

First, OpenAIā€™s new o1-preview model that you might have read about. Itā€™s designed for larger tasks that take more ā€œthinking aboutā€ before the model gives a response. One of the things itā€™s good at is writing code, so I thought Iā€™d give it the task of turning the structured JSON export of my Curated data into. I spent about ten minutes writing a fairly lengthy specification and included a sample of the JSON data.

It spent about two minutes ā€œthinkingā€ and then produced code for me. It ran first time without errors and did exactly what I asked it toā€¦ which is where the only flaw was. šŸ˜‚ I spent another few minutes writing up a bulleted list of amendments, clarifications, and additions to my original spec, and apart from one small blip, I had a working program that did what I needed. It only took two prompts and less than thirty minutes, and the code was better than I would have written.

I also checked out Cursor this week, as I said I would, and itā€™s good. I have more to write than what I have room for here, but I canā€™t go without mentioning one feature that feels like a step forward for inline completion. All AI code completion I have used so far has been additive, suggesting either a line or block of code. Cursor offers that, of course, but it can also offer to edit other parts of a file that might not be part of the same contiguous block of code.

Iā€™ll explain. Imagine you have some inline logic in a variable assignment, and you decide that itā€™s getting too complex for that line. You might decide to make a new intermediate variable on the line above. Cursor will notice that, and as you declare the new variable with partial logic from the line below it wonā€™t only complete the line youā€™re typing, but also offer to remove the now duplicate code from its original location. It may sound simple, but itā€™s striking when it happens.

That explanation might not be super clear, so I made a 20 second demo video which might clarify things. Cursor performed that edit in two consecutive presses of Tab, but it can also combine two suggestions like that into one. I guess if it feels confident enough that youā€™d want them both. Itā€™s not 100% clear to me yet how it decides what type of completion or edit it will suggest, but it got it right over and over again as I used it. Thereā€™s a free plan that is more than capable of showing what it can do, so thereā€™s no reason not to give it a try if youā€™re interested in this area.

This feature is what felt like a big step forward to me over line-at-a-time and block-of-code suggestions. It felt like having true assistance rather than completion or generation.

I could talk more about how Cursor also takes advantage of modern LLM models having such huge context windows by using all open tabs as context. It can even include every file in your repository if you choose. Iā€™ll leave that for another time, though. This is already too long.

We live in interesting times.

Dave Verwer  Permalink

 
 

  Sponsored Link  

 

Learn advanced Swift with PointFree.co

Feeling overwhelmed by Swift concurrency, generics, data persistence, domain modeling, navigation, and testing? Level up your Swift skills with over 190 hours of advanced and original content crafted by industry experts. Subscribe today and save 30% for Black Friday!

pointfree.co  Permalink

 
 

  News  

 

Black Friday Deals

Happy Friday, Happy Thanksgiving, and Happy Black Friday!

We may not celebrate Thanksgiving over here, but Black Friday is a truly global phenomenon. This year, as always, Marius Landwehrā€™s repo of deals is bang up to date, this year with the help of Noah Tran, and youā€™re sure to find something worth your while.

Michael Tsai also has a great post covering even more deals.

github.com  Permalink

 

App Store Award finalists

Congratulations to all the nominees. šŸŽ‰

apple.com  Permalink

 
 

  Tools  

 

Alex

Talking of Cursor and AI code assistants, this app claims to be "The Cursor for Xcode"! It offers a chat-style interface where you can "chat with your code" and also get it to generate code, even with a nice diff view before it applies it. It also has Tab completion, as youā€™d expect. Iā€™ve not tried it yet, but it looks to be a companion app that automates Xcode rather than trying to interface with it, but I could be wrong! Itā€™s free while in beta, so give it a try if youā€™re interested in this kind of tool.

alexsidebar.app  Permalink

 
 

  Code  

 

Animate UIKit views with SwiftUI animations in iOS 18

Natalia Panferova blew my mind with this post. Did you know that you could animate UIKit views with SwiftUI animations? Nether did I! Itā€™s so simple to implement, too, as Natalia shows us here.

nilcoalescing.com  Permalink

 

Introducing Swift Testing

Iā€™ve been waiting for Majid Jabrayilov to finish up this series of blog posts, and it looks like he has! Check out the basics of Swift Testing, the testing lifecycle, traits, and parameterized tests. They make a great intro to the framework.

swiftwithmajid.com  Permalink

 

My favorite Thanksgiving traditionā€¦

What a Thanksgiving tradition Holly Borla has! Iā€™m not proficient enough with Swift concurrency to offer deep insight into the proposal, but I am all for improving approachability. I especially like the idea of allowing modules to opt to be single-threaded.

Happy Thanksgiving, Holly!

hachyderm.io  Permalink

 
 

  Design  

 

In-app settings to adjust every aspect and get things just right

Iā€™ve seen many apps in beta or debug modes that include a settings screen like this over the years. I believe itā€™s a technique that Apple used to use, too, and maybe they still do! Itā€™s so much smoother than the whole compile, install, run, repeatā€¦ loop.

bsky.app  Permalink

 
 

  Jobs  

 

Senior iOS Developer @ komoot ā€“ Develop innovative new features from the first idea and concept over to road map planning, implementation, testing, release and monitoring. Team up with six team members to build a state of the art iOS app with more than 5 million installations. ā€“ Remote (within European timezones)

 Permalink

 
 

  And finally...  

 

My gosh, this took me back. Not just to Delicious Library, which I remember made a huge splash when it debuted, but to that whole era of Mac software. Those apps are the reason Iā€™m here writing this on a Mac today.

Via John Gruberā€™s post and, unfortunately, this news.

 Permalink

 
You received this email because you subscribed via the iOS Dev Weekly site.
We'll be sorry to see you go but you can unsubscribe instantly.
 
iOS Dev Weekly is published by Verwer Services Ltd. with a registered office at 5 Albert Road, Southsea, Hampshire, England, PO5 2SE.
 
 

 
 

RSS

 
Ā©2024 iOS Dev Weekly | Privacy Policy | Mastodon | Suggest a Link
 
Published with Curated

Older messages

iOS Dev Weekly - Issue 688

Friday, November 22, 2024

How do you get an app featured on the App Store? There's a new process, and it's great! 📝 View on the Web Archives ISSUE 688 November 22nd 2024 Comment Every developer, from solo indie devs to

iOS Dev Weekly - Issue 687

Friday, November 15, 2024

It's not all as bad as you think it is! 🙏 View on the Web Archives ISSUE 687 November 15th 2024 Comment The recent survey I did reminded me that, when you work with Swift every day, it can be easy

iOS Dev Weekly - Issue 686

Friday, November 8, 2024

CoPilot vs Xcode Predictive Code Completion: Is the playing field level now? 🤖 View on the Web Archives ISSUE 686 November 8th 2024 Comment If you didn't catch GitHub Universe, you might have

iOS Dev Weekly - Issue 685

Friday, November 1, 2024

Something a bit different this week. What do you all hope for from WWDC2025? 🚀 View on the Web Archives ISSUE 685 November 1st 2024 Comment Thanks to everyone who responded to last week's question

iOS Dev Weekly - Issue 684

Friday, October 25, 2024

What are you hoping for from WWDC 2025? Let me know and get quoted in next week's issue. ✌️ View on the Web Archives ISSUE 684 October 25th 2024 Comment It's extremely likely that come June

You Might Also Like

🛜 Using the Internet the Old-School Unixy Way With Shell Accounts — Turn Your TV Into a Virtual Fireplace

Friday, November 29, 2024

Also: Meditation Apps for Android, and More! How-To Geek Logo November 29, 2024 Did You Know A study investigating whether or not our perception of value has any effect on medical outcomes demonstrated

JSK Daily for Nov 29, 2024

Friday, November 29, 2024

JSK Daily for Nov 29, 2024 View this email in your browser A community curated daily e-mail of JavaScript news Top Linters for JavaScript and TypeScript: Simplifying Code Quality Management Linters are

Spyglass Dispatch 020 🏈

Friday, November 29, 2024

Under 16s Social Media • Threads Starter Packs • Live Vision Pro Content • When Mark Met Donald • Cult of the Smart Geek • Amazon's New AI Model • 'The Blip' 1 Year Later The Spyglass

Ranked | The World’s 15 Most Powerful Business Leaders 💪

Friday, November 29, 2024

From Elon Musk to Sam Altman, we show the most powerful people in the corporate world based on rankings from Fortune. View Online | Subscribe | Download Our App Presented by: Find the megatrends

Issue #569: Softbody volume, custom fonts, and Clickery Hexagon

Friday, November 29, 2024

View this email in your browser Issue #569 - November 29th 2024 Weekly newsletter about Web Game Development. If you have anything you want to share with our community please let me know by replying to

iOS Cocoa Treats

Friday, November 29, 2024

View in browser Hello, you're reading Infinum iOS Cocoa Treats, bringing you the latest iOS related news straight to your inbox every week. The power of previews in Xcode Previews in Xcode become

ASP.NET Core News - 11/29/2024

Friday, November 29, 2024

View this email in your browser Get ready for this weeks best blog posts about ASP.NET Core! Better Azure Identity authentication support and performance during local development with .NET Aspire — by

Hackers Exploit Popular Game Engine to Distribute Cross-Platform Malware

Friday, November 29, 2024

THN Daily Updates Newsletter cover Programming with GitHub Copilot: Write Better Code--Faster! ($48.00 Value) FREE for a Limited Time Accelerate your programming with the most popular AI coding tool on

SmallCon: Free virtual conference for GenAI builders ft. Meta, DoorDash, Mistral

Friday, November 29, 2024

Join AI leaders from Meta, Mistral, Salesforce, DoorDash, Harvey AI, Nubank, Hugging Face, and more at SmallCon on Dec 11th for deep-dive tech talks, panel discussions, and live demos on the latest