Last month, I wrote a post about How to setup SwiftNIO for iOS and tvOS. Basically, I manually create all the targets in a new project, set up everything from scratch. It takes time and I wonder there is a better way? I go back to the start point, try to compile the original Swift-NIO project, finally I see how it works.
Don’t mind to use Objective-C
Since the first Swift release in 2014, It seems like Swift is a super rock star which takes over the stage. As advertising, Swift is more modern, elegant and even faster. Well, they talk it up a lot. More and more companies have decided to migrate to Swift. Many many senior developers have moved away from Objective-C. Fresh iOS developers are told to learn Swift rather than Objective-C. However, Objective-C won't be dying. It will last long for many reasons. Let's go through the following reasons which I recap in this post
Setup Swift-NIO for iOS, tvOS
I look over Swift NIO, and I see it kind of potential. Written on the top of POSIX socket. Simple, lightweight. Some parts of its core are written in C or reuse C library. It even reuses the NGNIX's HTTP parser in its core. I have found out that this parser is used widely in some well-known software and open sources. Some instances are NodeJs's parser, IBM-Swift's Kitura-net,...
Keep the watch app away from Release Build
WatchOS app is an extension, it doesn't stand alone. It basically needs a host app. The WatchOS project usually is a sub-project which eventually its product will be attached to the main app. But XCode doesn’t give us an option to keep the extension out for Release Build. I’m going to write a tutorial to handle this situation.
Swift’s guard keyword. Why do We use it?
In Swift, both "if" and "guard" keywords can handle unwrapping optional type. "if" keyword is enough to handle, why is "guard" available?
Sharing the working environment, tools, and software
Hello everyone, In this post, I'm gonna share you about my working environment. What I use for development. Some software, freeware, development kit and related stuff. Let's roll the ball.
Projects which use method swizzling technique
The post basically looks over some projects listed in awesome ios. I do not dive deep into each project to figure out what it does with method swizzling technique. Some of them use method swizzling for writing unit tests, some use swizzling for its core logic business, etc. Data persistence Firebase Firebase is Google's mobile platform that … Continue reading Projects which use method swizzling technique
Vultr, look over
Having some interests in cloud infrastructure. Wanna host a website, service API, database, etc... Is there any option besides AWS, Google Cloud? Let's look over Vultr Price The cheapest option is 2.5 bucks per month for a cloud instance with 1 CPU, 20Gb SSD storage, 512Mb and 0.5Tb bandwidth. That price is unbeatable compared to … Continue reading Vultr, look over
Method Swizzling Fun Fact
Eventually, I have had my answer about using method swizzling in Swift/Objective-C. One of my teammates in AT&T who went to WWDC 2018 with a list of the desired questions to ask Apple engineers, he took notes some answers. These are 2 questions on Swizzling which were brought up...
Programming language interoperability
There are a ton of programming languages in our world. If you're a developer, I think you may know a few. C#, JAVA, C++ or whatever I used to develop programs in C#. I used to learn JAVA. I learned C from the beginning to understand what is programming. I've been working on Objective-C, Swift … Continue reading Programming language interoperability