Apply now

Freelancing in China with WeChat Mini Program Development

After 2 months' dedicated study, shortly after finishing the bootcamp, Nathan successfully landed several freelance projects of building WeChat mini programs while receiving other offers as a developer.

Freelancing in China with WeChat Mini Program Development
Featuring graduate Nathan Lee Software Engineer in Set Sail Software More about Nathan
Share article
Nathan Lee is a Le Wagon alumni from batch 76 in China. He used to work at a FinTech startup, but he wanted to combine creativity in a more analytical way in his career. After 2 months' dedicated study, shortly after finishing the Le Wagon bootcamp, Nathan successfully landed several freelance projects of building Wechat mini programs while receiving other offers as developer. As of today, Nathan is a software developer at SetSail Software in Hong Kong, and is using NLP to build bots.

We conducted an interview for Nathan to provide some personal insights on the development of WeChat mini programs, including the potential difficulties, useful toolkits and tricks etc.

Where and how did you learn to develop mini programs?

I started off learning the basics when I was a student at Le Wagon, such as, how to setup the WeChat IDE, what are the capabilities and how to usethe APIs through quickly diving into building a mini program with a team. Luckily enough for us, Le Wagon China's chapter had dedicated courses about WeChat mini programs to help explain most of the fundamentals that we could quickly use to develop our own apps, and later dive deeper into the documentation. Even though our Chinese wasn’t the best, we were familiar enough with the concepts taught to us during the bootcamp to quickly understand what API’s were available and how to utilise them. Later on, WeChat team added an English version of developer documentation for Mini Programs.

What sparked my interest in mini programs was the fact that it is accessible to everyone using WeChat, requires no download, no commitment and we can rest assured the app is always up-to-date. Which was great to me, it meant we could just push the latest version without worrying about support legacy versions!

Did you take on any projects shortly after the bootcamp?

Right after the bootcamp I wanted to continue the intensity that I had at Le Wagon and keep the momentum going. Through WeChat groups, I got involved in the mini program community in Shanghai, which led me to the freelance jobs I have now. Developing mini programs is still a relatively new thing, so many companies were willing to take me on to start their new projects.

To name a few, Night+ was one of the startups looking to expand their reach through the mini program environment. Their whole app revolved around showing you the best deals for KTVs, bars and clubs. Another company, Maijin, was looking to create a mini program for generating sales leads.

With Night+ I was introduced to a new framework, which I would not have even heard of had I not taking these freelance projects. Because they were very early into development, we had the freedom to explore different kinds of frameworks and decided it would be best if we went with something similar to VueJS called Wepy. Which is amazing because it allowed you to create sustainable and organized code by promoting component division, reusability and so on.

What was surprising to me was that although I was working with experienced developers, not many of them had that mentality of writing reusable code. Instead they would write long lines of code onto one file, as opposed to splitting them into components for the sake of reusability. So I decided not to follow that route and took more time to organize them into components and save time in the future by also creating documentation for each component; what parameters they use, how to use them, etc.

One of the greatest satisfactions being a developer is when you’re being complimented for your efforts:
In the end, I learnt a lot from taking on these projects, it helped me solidify the knowledge I had, introduced me to new frameworks and developed my understanding of software engineering in general.

What toolkit do you recommend to produce MPs?

If you’re just learning the in’s and out’s of mini programs, it’s best to stick with the WeChat IDE editor until you feel like you know it like the back of your hand, because it does offer the convenience of snippets and shortcuts to train your familiarity with the syntax.

However, having said that I personally do not like the WeChat IDE editor because it’s quite restrictive, there are functions I love to use in VS code or sublime that the editor just doesn’t have. For example, searching through files is a pain, you have to click and find the file, when it’s much easier to just “cmd + t“ in sublime. Another huge thing is split layouts which you can’t do on the editor, which is a shame because you’re constantly passing data from the logic layer to the view layer. Once you do get more familiar you can combine the WeChat IDE (just for its display) with either VS code or sublime. Both editors have an extensive range of snippets and auto-completion for mini program development.

What are the main issues you faced when developing a mini program?

There was mixture of difficulties I had, the first was picking up a new framework when I had only just got the hang of using Rails and the second was understanding what the documentation was trying to tell me!

There was definitely a lot of copy and pasting at the very start of our final project at Le Wagon because we were simply clueless. However, as more familiar we got with the javascript ES6 syntax and concepts, reading the documentation really started to help. We started to understand more about what the functions or API calls were actually doing. This gave us more knowledge to develop our ideas to explore crazier options and most importantly ask better questions. When we knew what we needed it was much easier to ask a question that would guide us to the right answer.

Additionally, I personally felt that making mistakes early on in the project (and I made a ton) was a good thing, it mean’t that I was able to debug things much quicker as I’ve either seen it before or know how the API works enough to debug it.

Having said all this, a majority of it was trial and error. If it didn’t work I would approach it another way, if it still didn’t want to work, I would try other ways or using other API’s that would still achieve the same result. And one of the things that helped massively was pair programming. I was able to learn a lot simply from understanding how other people worked, how they approached the problem and integrating it with how I solved my problems.

What are your suggestions for developers jumping into this new framework?

I learned the best when I just dove in and created an app and ran into a ton of errors. Not only did I become better at searching for the issue I was having, it gave me a deeper understanding of the connections between components, the architecture of the framework and now it makes it much easier to debug because I have either run into the error before or I know how it works to solve it.

Read enough of the documentation to create an app. Improve the app.

What other inspirations did you gain in terms of web/ mini app development?

Definitely learning new frameworks, or learning in general, I felt more empowered to learn a new framework as I felt that I got better at reading documentation and understanding how to utilise and learn from it.

I am also more willing to dive into making an app to practice using the framework, using the documentation as a reference (not only purely as reading material) because I felt it was the best way for me to learn, making mistakes and learning from them. Additionally, I think reading just enough of the documentation where you can create a simple app is key and then trying to build on that with new features to improve your app to extend your knowledge and give you more incentive to read the documentation.

Oh, and also giving functions/ variables proper names. I look at my code now and think, wow, who could possibly understand this but me. Naming things is definitely important.
Nathan Lee Wechat ID: kwnath

Want to know more about Le Wagon's 9-week bootcamp?
Keep reading
Graduate stories

Le Wagon Changed My Life

Ever felt as though you’ve hit a wall at work or that you're not doing what you love? For many of us, the thought of changing careers seems like a daunting journey to start. However, with hard work and the right program, George was able to pivot into something that not only challenges him every day but is also fulfilling in more ways than one.

Learn to code

Meet our hiring partners in London

It can be a scary thing, deciding to change career and embarking on a coding bootcamp. That's why we added a 10th week to the batch, where graduates receive career preparation workshops, resources and jobs fairs. Keep reading and get to know our hiring partners a bit better!

Learn to code

How to find a job as a Ruby or React developer

I am a team leader of Explore Group, one of Le Wagon London's hiring partners! I oversee the day to day activities of a team of specialist Ruby and React consultants who focus on placing talented devs in a range of companies, big and small. I thought I'd share some insight into the job market and some advice with you.

Interested in joining the #1 ranked coding bootcamp?

We are in 39 cities worldwide.