For more information about AMD, CommonJS and UMD, David Calhoun wrote a great blog that compared them, it’s highly recommended for a read.
Ok, let’s get started!
We are going to create a super simple calculator :)
Go to Github and create a new project called
calculator, initialize the repository with a README,
.gitignore, and choose a license.
Every time when I got a new computer or reinstalled the macOS, the first thing I would like to do is to set up my terminal and make it look cool. There are several tools I always like to gear up for the terminal including the following:
There are already a lot of great articles that teach people how to install and configure the above tools, however, in order to set them up correctly, usually I need to refer to at least 5 separate articles and it took me a while to figure out the necessary steps, and most importantly I don’t remember what I did last time. So I decided to put all I have learned together and write them down, this article will show you how to install and configure all the above tools with necessary and concrete steps, and hope it helps. …
As an iOS developer, you may have used a few CocoaPods libraries in your project, and you may have been very familiar with how to install them and call their methods. However, have you ever dreamed of contributing to the iOS open-source community by distributing your own pod(CocoaPods library)? Imagine many iOS apps are going to use your awesome library, isn’t that fantastic?
In this tutorial, I will show you how to distribute a simple pod. In addition to that, you will also learn how to leverage Travis CI and Codecov to make sure your pod is reliable and robust.
Learning how to use productivity tools will save you a great amount of time
Have you ever thought about open source your awesome React components? Follow this tutorial and you will learn how to use some of the best productivity tools to help you scaffold a project, write a React component and publish it to NPM so that it can be used by developers around the world.
First, let’s think about what we need before writing any code, below is a list of the basic requirement for open-sourcing a React component:
🎉 Finally the CocoaPod is released! See here.
This is a simple iOS project demonstrates how to implement collapsible table section programmatically, that is no main storyboard, no XIB, no need to register nib, just pure Swift 3!
In this project, the table view automatically resizes the height of the rows to fit the content in each cell, and the custom cell is also implemented programmatically.
The source code can be found on my Github.
Let’s say we have the following data that is grouped to different sections, each section is a Section object:
collapsed indicates whether the current section is collapsed or not, by default is false. …