#100DAYSOFCODE Week 2

Day #8: Work

25th of Aug:

My current job is making web animated banners. I have built AVIS, BUDGET, NSW transport campaign banners for months. Most of the banners are built and implemented into Sizemek or DoubleClick studio. I am a huge fan of GASP. In my opinion, GSAP is the best library to animate assets within JS codes. Some may tell me to try pixi.js and create.js. I heavily choose libraries based on how the community responds well to different matters and issues. So far GSAP wins. I plan to upload my animation works on my personal sites. The volume of works is massive since I have made animations for 5months. I am just not sure which ways are best to go. I don’t want to expose my codes(Indeed, I am not sure I am allowed to) via code pen. I may need to look for a way to generate gif files out of from web animation. Any thoughts?

Day 9: React CRM app practice1

26th of Aug:

I wondered how Redux works on React Native App. I never built React App before so I started to play lynda.com’s tutorial called “React Course Material Writing 3” by Emmanuel Henri. I have followed his tutorial and It was a good tutorial to follow what is CRUD & Redux pattern is about.

Day #10: React CRM app practice 2

27th of Aug:

It is same day to proceed. One thing I got is to inject firebase into React correctly. I had so many troubles to implement firebase before. A lot of old React tutorial explains old firebase way and that timing is way too far before firebase merged into google. I’ve got a problem to render my code at the moment. The problem I assume is from the timing when I tried to install React Native Redux Debugger. The course’ guide didn’t work so I tried to implement the modules by myself. It seems it doesn’t render anymore. I went back to my previous working repository and the result was same. I may ask Manny about it later. It is such a good instructor.

Day #11: TDD practice 1

28th of Aug:

I have the struggle to solve about the Promise. I want to learn ES6 deeper because React is now highly relying on this syntax. If you want to try here is the website. http://es6katas.org/

If you want to help me to solve es6 promise katas on creation, you are welcomed to pull request. I am stuck at the moment…

https://bitbucket.org/digitalspacecat/fecodepractice/src/52dea474e4d8316faf3aa86cef224c87acde89ec/Fundermental%20Practice/ES6Katas/Promise_creation/test.js?at=JSFund%2FES6Katas&fileviewer=file-view-default

Day 12: Work (Animated banner)

29th of Aug: Same as usual. All of sudden, the production work flow swamped me over. I have to build new AVIS campaign banners again. I have used GSAP to build the animations on the canvas. Without GSAP, I couldn’t achieve any tricky animations. Thinking of coding all movement with vanilla javascript. Ew. At some point, I will update my previous works. It is quite fun to make something really creative works with codings. The only problem is there are not many jobs like this unless you are an expert on something up-to-date framework. It used to be Angular and it is now React. Such a framework war saga.

Day 13: Work (Animated banner)

30th of Aug: Sames as usual. This part will be updated at some point. For instance, attaching gif file of my web animation. I have built AVIS banners for the quarter 4.

Day 14: Work (Animated banner) & Writing React state example codes

31th of Aug: Sames as usual for works. Although I have written something about state. I am currently writing NodeGirlsSydney React workshop “Intro to React”. The concept of props and state was quite confusing to me when I first faced to React – I still do. I wrote some basic components to explain “state” and here is my codepen for it.

This article gave me heaps of ideas to write my workshop. I recommend you to read it.

https://medium.freecodecamp.org/all-the-fundamental-react-js-concepts-jammed-into-this-single-medium-article-c83f9b53eac2

 

 

 

Advertisements

Data Vis Practice – The Tasty Road (Ver.Seoul)

*This falls under the #100DaysOfCode challenge.

** Source code references belong to Lucy Park(D3 code) and Seoul open source project(Seoul TopoJSON map). This is the post to note on how D3 and TopoJson works.

The Data visualisation, especially data scientific appliance to storytelling and journalism, has been a fascinated topic. I had been thinking to start my own project on my career path, but there were not much of demands of it. Everyone wants to hire developers to work on SPA, Full SSAS, or whatever product is but not for story tellings. Perhaps because I am from artistic backgrounds or I am very active on political issues – the web development and new techs for up-to-date service based products were not fascinating me. Don’t get me wrong. I love web stuff and all new innovational approaches. I just am not into all the hype that forces me to hop on it. 2015 I was a kind of useless developer because I am not a seasoned angular developer. 2016 now I am again an incompetent developer because I am not an experienced Angular2 or React with Redux developer.

What is a framework for? Isn’t it supposed to be a tool just helping you to draw your abstract ambitions into a real product? No one answers me about that, and I don’t want to waste my time to learn things it will become useless at any time. Again, don’t get me wrong. I think those tools are very useful and there are a lot of reasons why people are on the highest fever pitch. I am..I am just not into it. I need something more..more likely me. More inspirational aspects of driving me to put my hands on and dig the craftsmanship.

From 2016 to 2017, I have seen three big elections. Presidental elections in USA, France, and South Korea. While observing those elections through media, there were a ton of delicate charts and data tables within the journalism platforms. While reading the articles, which is storytelling aside with insights, I was really into it. Lean into it, Put my emotions while reading articles, and observe the responses from crowds in the web. And finally, make changes. Some results were bitter, and some results were sweet to watch. That was the moment to give me motivation.

I decided to study more about data visualisation. It is going to be 100 challenges. It would sometimes be interactive infographics, or it could be my assignment after following some tutorials or books. Whatever would be, I think it is a good start to give myself to do something steady.

So, here is my challenge one.

I used to go to various tasty restaurants. I pinned locations on the Google map. The thing is there is an expiration date on the each pin, and I just lost my pins when they expire.

The thing is there is an expiration date on the each pin, and I just lost my pins when they expire.

So I decided to take a note where I have been in Seoul and tried to map them via d3.

There was a blog explaining how to put the pins on the maps by using TopoJson and d3. I will put all the references at the end of this post.

http://bl.ocks.org/DigitalSpaceCat/ee4aebbc1acf83e47abbb39560a77fb4#file-index-html

Screenshot 2017-06-02 15.43.02

I grabbed what Lucy built for making her own chart. The difference between my chart and her chart is how to grab and pin the restaurant. The main goal of this chart is learning d3 and how to use it. I didn’t use Python as she does for generating JSON because my main aim is to see how the coordinate location pins work on the d3 chart. I manually googled the restaurant and entered the location coordinates manually in the CSV file.

What I learned from this work is,

  1. D3 is a just tool for drawing data. It is a drawing tool with javascript code. It is not anything about data.
  2. To draw a map and transfer to topoJson, you need to know Python or R to some of the levels. You cannot do this with javascript
  3. For the data cleaning and grabbing some visualisation ideas, at least you need some other tools like MS Excel and Tableau.

I will try to make Sydney and Busan version next time.

Reference: Lucy Park’s tech blog (https://www.lucypark.kr/blog//)