featured story 2 hours to master RxSwift - Part 1 a simple introudction on rxswift, including what is rxswift, how to use it and a quick example (with swift code) on demo that. 14 Mar 2023 · 8 min read Read post
Swift Constructor Injection, Property Injection vs. Method Injection Dependency Injection is a design pattern that is providing another object with its dependencies, instead of having the object created or managed themselves. There are three main types of dependency Needone 12 Dec 2022 · 2 min read
Kotlin Type safe in programming language Introduction Type safety in programming languages refers to the concept that variables and data structures are strongly typed and cannot be assigned values of different types. This means that the Needone 9 Dec 2022 · 2 min read
iOS ContentHugging vs. ContentCompressionResistance in UIStackView In Swift, it is quite common to see ContentHugging and ContentCompressionResistance either when we are using the storyboard or code to render the user interfaces in UIStackView. Those 2 properties Needone 9 Dec 2022 · 1 min read
Android Companion Object in Kotlin Kotlin provides a brand new keyword companion which not exists in other programming languages. But don't be panic, it is not something new when you have one step closer. A Needone 7 Dec 2022 · 1 min read
Other Use openssl to create public key and private key Generally speaking, currently digital encryption methods can be divided into two main categories, symmetric encryption and asymmetric encryption. For symmetric encryption, the same key is used for encryption and decryption. Needone 7 Mar 2021 · 3 min read
Swift A summary of use enum in Swift Enumeration type is a common type in many programming languages, which normally presents a set of limited status for a program, such as list all the directions for a compass: Needone 1 Mar 2021 · 2 min read
Swift Use Extension in Swift Extension is a great feature in Swift, which can help us to create helper/utility variables and method, and etc. Use extension to conform protocols It is quite common to Needone 27 Feb 2021 · 1 min read
iOS Property in Swift Unlike other programming languages, there are three types properties in Swift. Stored Properties They are constants or variables of a class, and part of the class instances that used to Needone 25 Feb 2021 · 1 min read
iOS How to check whether a mobile device is muted or not on iPhone/iPad On iOS devices, there are mainly two types of sounds: * Ringtones and reminders: Including system sounds such as phone calls, text messages, notifications (also including key tones, lock sounds, which Needone 23 Feb 2021 · 2 min read
iOS Init vs Convenience init in Swift Initializers, also known as constructors in other programming languages, have two types: Designated init and Convenience init. They are used to initialize properties or customize a variable or object for Needone 15 Feb 2021 · 2 min read
Git Git Merge vs Git Rebase TLDR Both git rebase and git merge are used to synchronise changes between branches. The difference is git rebase will revise the commits but keep a clean organised history, while Needone 13 Jan 2021 · 2 min read
iOS iPhone/iPad Redeem promo code to get free App in 2022 This will happen when developers decides to give out some free apps, which sometimes you will see the promo code like this EAJXJEXL7MJH. As many of you might know how Needone 1 Jan 2021 · 1 min read