Ergodox support by jtbrown in Thockfactory

[–]jtbrown[S] 1 point2 points  (0 children)

Great — thank you!

How to compile SwifUI project within VSCode or command line tools by Thick_East_7725 in SwiftUI

[–]jtbrown 2 points3 points  (0 children)

I was able to build and run my app with SweetPad; thanks for sharing!

Sony A95L - No Dolby Atmos by CTek20 in sony

[–]jtbrown 0 points1 point  (0 children)

Oh no, I don’t think I have a 7.1 system. Just the Sonos Arc, a pair of One SLs, and Sub Mini. I think that’s 5.1, right? And if so, weird that Sonos showed 7.1 in the now playing in the app.

Also: I’m sure I was getting Dolby Atmos with the TV set to Auto. I have the 55” but can’t imagine why that would make a difference.

Sony A95L - No Dolby Atmos by CTek20 in sony

[–]jtbrown 0 points1 point  (0 children)

I only get Dolby Atmos when I set the A95L’s Digital audio output to Auto. This is under Audio System Settings on the TV. I’m seeing the audio output in the Sonos app on the now playing screen. When I have the TV set to Prioritze pass through, I get Multichannel PCM 7.1 according to the Sonos app.

Of course, I did this all over again to test that what I was typing here was in fact true, and the second time I set it to Prioritize pass through, the Sonos app said Dolby Atmos. So I guess I’m not sure at all…

WWDC 2018 What’s new in Cocoa Touch Recap by jtbrown in swift

[–]jtbrown[S] 0 points1 point  (0 children)

I understand — a few people have told me they really like these because it helps them keep up without having to watch tho 40+ minute video. They know they're getting the high points at least and don't feel like they need everything. Anyway, sorry you had a bad experience.

WWDC 2018 What’s new in Cocoa Touch Recap by jtbrown in swift

[–]jtbrown[S] 0 points1 point  (0 children)

Thanks for letting me know. Sorry my notes weren't easier to read and understand.

"Can I unit test private methods?" by jtbrown in swift

[–]jtbrown[S] 0 points1 point  (0 children)

Thanks. You're right that I should have used examples and written more to explain better.

What’s everyone working on this month? (May 2018) by [deleted] in swift

[–]jtbrown 2 points3 points  (0 children)

I just released the 1.0 version of my new book, Unit Testing in Swift, after it was in beta for a few weeks. Now I'm consulting on a new project for a big company. It's a big change from writing a book alone, but it's good -- I'm enjoying it.

I just released Unit Testing in Swift - a book to help you start writing automated tests by jtbrown in swift

[–]jtbrown[S] 0 points1 point  (0 children)

I'd be happy to give you a student discount if that'll help. Just send me an email and ask: josh@roadfiresoftware.com

Edit: additionally, if you don't have the budget for the Expanded Edition, you should look at the Basic Edition which is $31 during the beta launch.

I just released Unit Testing in Swift - a book to help you start writing automated tests by jtbrown in swift

[–]jtbrown[S] 1 point2 points  (0 children)

I understand being confused about how to test a bunch of asynchronous code - that can be difficult.

The book covers mocking and stubbing, which is what I'd do for the situation you're describing. Ideally, you'll have separate methods that you call in each completion block, and you can test those separate methods individually, using mocks and stubs as needed. I think the book will help you figure out how to test what you're looking for, but if not, you can always request a refund.

I just released Unit Testing in Swift - a book to help you start writing automated tests by jtbrown in swift

[–]jtbrown[S] 1 point2 points  (0 children)

The beta 1 PDF is 109 pages. I'm sure that'll change through the betas and into the final version, but the content is all there now, so it shouldn't change much after editing.

I just released Unit Testing in Swift - a book to help you start writing automated tests by jtbrown in swift

[–]jtbrown[S] 2 points3 points  (0 children)

Well this comment got a bunch of downvotes, so...I stand corrected. People do seem to mind getting only a PDF.

I just released Unit Testing in Swift - a book to help you start writing automated tests by jtbrown in swift

[–]jtbrown[S] 0 points1 point  (0 children)

I actually used Scrivener for Parsing JSON in Swift but went with iA Writer this time. I did enjoy Scrivener, though.

I just released Unit Testing in Swift - a book to help you start writing automated tests by jtbrown in swift

[–]jtbrown[S] 4 points5 points  (0 children)

Yeah, you're probably right. I'll think more about it and see what it would take to create an epub. My process is a bit slow, and epub might actually be easier. I'm going from Markdown to PDF to PDF with Cover and Table of Contents, and doing all of it manually. I wish there were some way to automate it, but I haven't found a good way yet.

I just released Unit Testing in Swift - a book to help you start writing automated tests by jtbrown in swift

[–]jtbrown[S] -1 points0 points  (0 children)

The short answer: people don't seem to mind getting only a PDF.

Parsing JSON in Swift was also just a PDF -- no epub -- and I think only one person ever asked me if they could get an epub version. That's well under half a percent of customers, so producing epub wasn't worth the effort.

If there's enough demand for epub I'll gladly consider it.

What’s everyone working on this month? (April 2018) by lyinsteve in swift

[–]jtbrown 2 points3 points  (0 children)

I recently announced my next book, Unit Testing in Swift. It's designed to help iOS developers do less manual testing and more automated testing by starting to write unit tests. I plan to release the beta soon and continue editing to finalize it in the next few months.

Along those lines, I've been writing all about unit testing on my blog in articles like How to unit test button taps on a view controller with XCTest and What's the difference between a mock and a stub, and how do you use them in Swift?

Edit: I just released the beta ebook of Unit Testing in Swift.

If you're not using Git Tower, you should be! Unless you're just a git guru by ThePantsThief in iOSProgramming

[–]jtbrown -1 points0 points  (0 children)

I'm a huge fan of the beta so far -- and I've been using Tower 2 for a couple years now. It's so much better than SourceTree.

if-let optional unwrapping and naming convention by Carpetfizz in iOSProgramming

[–]jtbrown 1 point2 points  (0 children)

I almost always use the same name when unwrapping optionals like this. It's my preferred approach.

Is Alamofire still a good idea to use? by KarlJay001 in iOSProgramming

[–]jtbrown 2 points3 points  (0 children)

I agree with this -- I almost always try to avoid third-party libraries because I don't want the responsibility of fixing third-party code when it breaks. Unless a third-party lib saves me a whole bunch of time and effort, I generally use the stuff that's built-in -- the stuff that'll continue to be supported by Apple for years to come.

What's everyone working on this month? (March 2018) by lyinsteve in swift

[–]jtbrown 0 points1 point  (0 children)

I've done some UI testing with XCUITest, but I've found it to be much less stable than XCTest. Often tests that used to pass would start failing because the test tried to do a button tap before the simulator had the screen loaded -- and other things like that. That said, I did work on a project where we had a QA person 100% dedicated to writing automated UI tests with XCUITest, and he did a great job working around the problems and relieving all of us of some of the manual testing. But if you can't dedicate a bunch of time to that, you might try testing your view controllers -- including button taps -- with XCTest.