<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Julien N. on Medium]]></title>
        <description><![CDATA[Stories by Julien N. on Medium]]></description>
        <link>https://medium.com/@juliennd_?source=rss-307a6cc4a1e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eoHbkNf03tWGYhWF_xOE3g.jpeg</url>
            <title>Stories by Julien N. on Medium</title>
            <link>https://medium.com/@juliennd_?source=rss-307a6cc4a1e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 08:59:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@juliennd_/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[After the Frontend framework war, here is the State management one…]]></title>
            <link>https://blog.mathpresso.com/after-the-frontend-framework-war-here-is-the-state-management-one-daec38f22698?source=rss-307a6cc4a1e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/daec38f22698</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[febe]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[product]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[Julien N.]]></dc:creator>
            <pubDate>Wed, 12 Feb 2020 05:54:35 GMT</pubDate>
            <atom:updated>2023-02-24T09:11:04.648Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UWp_19m4kNE8lmaqc70dzg.png" /></figure><p>I have been hired at Mathpresso as the lead frontend developer a year and a half ago.</p><p>I can handle things with vanilla Javascript but I am mostly a React developer.<br>I hopped on the <a href="https://reactjs.org/">React</a> hype train few years back and haven’t really switched framework since then.<br>When I joined Mathpresso, there were already few internal tools developed in <a href="https://angular.io/">Angular</a> and <a href="https://vuejs.org/">Vue.js</a> but none in React.<br>I tried Angular1 and 2 way back but haven’t really checked it out since then (boooo!).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lC1kj3IeXoE8Z3OCKJoWkw.jpeg" /><figcaption><a href="https://blog.hyperiondev.com/">https://blog.hyperiondev.com/</a></figcaption></figure><p>In one phrase, Angular is a very “built-in” approach using a lot of new HTML attributes to handle things like conditions, loops etc, React is a very programmatical way to develop web UI/UX using JS(X) as much as possible and Vue.js is the one in the middle trying to get the best of both worlds.</p><p>Don’t get me wrong, I am not saying that one is better than another. It is obviously up to you to decide which one to use depending on your needs (learning curve, performance, longevity, …).</p><p>So since I joined, most of the web based projects are powered by React. From web views to bigger full on website where I sometimes had to use <a href="https://redux.js.org/">Redux</a>, the state management library, also made by Facebook to go with React.<br>And as Javascript is an “untyped” language (your variable is just a variable and can be an integer, a string, an array or an object without you explicitly declaring it as such), Facebook (again?) implemented Flow as their version of type checking.<br>Angular uses Typescript, React can use it too but Facebook created <a href="https://flow.org/">Flow</a> as their own alternative of it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0FS97pZdAZANyEq7gdP5vg.png" /><figcaption>React, Redux, Flow</figcaption></figure><p>Compared to Angular, React promotes unidirectional data and Redux is an implementation of <a href="https://facebook.github.io/flux/">Flux</a> (an unidirectional data architectural pattern, yes, again, Facebook…).</p><p>A basic case to Redux would be that maybe you need to have data available and manageable at many places in your code but you want it to be unique and shared everywhere. You could, with React alone, set a state variable at the root component of your application and pass it as a props every where but that would be ugly, inefficient and defies the purpose of having components that are supposed to only handle a tiny part of your application. A component should be in charge of its own state, receive props from the parent, without having to change data from a parent or neighbor component.<br>Another cool thing about redux is that the state is actually immutable, it is not changed directly but actually fully replaced at every change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*8RAG2v05qu_Rd1P2PCSXHA.gif" /><figcaption>Awesome Redux data flow animation from <a href="https://dev.to/oahehc/redux-data-flow-and-react-component-life-cycle-11n">https://dev.to/oahehc/redux-data-flow-and-react-component-life-cycle-11n</a></figcaption></figure><p>Let’s illustrate the situation with an easy case.<br>The page will display a loading overlay every time there is some API call. To do this, we will add a loading variable into the <strong>store</strong>. Then any component will be allowed to change the loading status by <strong>dispatching</strong> an setLoading(status: boolean) <strong>action</strong>. The store receiving the action will then call the <strong>reducer </strong>which will return a new version of the loading variable.<br>In this case, when the app start, the loading state is false (see reducer.js), but after the App component is mounted, we dispatch an action setting the loading state to true. The App component being connected to the loading store, will then receive a prop change and trigger a re-render and add the Loading component to the view.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5bd76d55c0866c35c9a554cb5dfc9c7a/href">https://medium.com/media/5bd76d55c0866c35c9a554cb5dfc9c7a/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/01c25e9013d9cfa69eaa25a89a13cf0c/href">https://medium.com/media/01c25e9013d9cfa69eaa25a89a13cf0c/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5ec906256d15ab9e5028176bb57b4bab/href">https://medium.com/media/5ec906256d15ab9e5028176bb57b4bab/href</a></iframe><p>For more difficult cases, like API calls, you would need to use middleware library like <a href="https://github.com/reduxjs/redux-thunk">redux-thunk</a> or <a href="https://github.com/redux-saga/redux-saga">redux-saga</a> so you manage the callback or async.<br>Overall, it is quite pragmatic but a bit heavy and needs a lot of setup.<br>I like the overall sturdiness making the code and logic more structured.</p><p>Recently we hired a bunch of awesome developers including web (please apply <a href="https://mathpresso.com/team">here</a>!).<br>Wayne is one of them and he showed great knowledge about backend and frontend development despite his young age (stay around here, he might write a post~).</p><p>Compared to me, he mostly uses <a href="https://www.typescriptlang.org/">Typescript</a> as his Javascript type checking layer and <a href="https://mobx.js.org/README.html">MobX</a> as his state management library. He asked me if we could implement it for our new big project (Qanda creator platform!).<br>At Mathpresso, we are encouraged to try new technologies and stack to stay up to date and have the best tools to improve our service. It is quite common that someone start a new project with a never used before language or framework and if it satisfy the needs of the feature, it goes into production without any issue. So it was a welcomed initiative and we started migrating the existing codebase to the new architecture.<br>And here is the main topic of this post, how MobX differs from Redux, but how both share the same kind of core concepts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*5yxE8TorK5cLHvwTTqZm9A.png" /><figcaption>React, MobX and Typescript</figcaption></figure><p>Let’s see what the same code as above would look like with Typescript and MobX.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ySQlba1ey86uOhgKhWBrcA.png" /><figcaption>As you can see, the MobX data flow is easier (<a href="https://hanno.co/blog/mobx-redux-alternative/">https://hanno.co/blog/mobx-redux-alternative/</a>)</figcaption></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f7cab9daf3ed0a9705ac1b874c77a108/href">https://medium.com/media/f7cab9daf3ed0a9705ac1b874c77a108/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae23cf4e40d797d9b6c65aa7cd83ad19/href">https://medium.com/media/ae23cf4e40d797d9b6c65aa7cd83ad19/href</a></iframe><p>As you can see, in terms of structure, the store contains the state (definition and initialization), but also the available actions. And as MobX state is mutable, the actions will change directly the value inside the state. You can also see that we define one store for one part of the data (here, loading), so you can observe a specific data and your component will only have access to that store, more modularized and have a specific role.<br>The code is less heavy and is easier to use than the Redux logic. Also as Redux doesn’t handle async actions out of the box (you need to add thunk or saga middleware), MobX implements an api called “flow” which do just that using function generators!</p><p>As a next read, you should definitely check out <a href="https://github.com/mobxjs/mobx-state-tree">MobX-State-Tree</a> as this layer on MobX will make the code more strict as it will define more specifically the observables of your state, force using actions to change the state, version-ize your state, etc…, that’s my next step too !</p><p>글로벌 교육앱 1위 QANDA(콴다)를 함께 만들어 갈 능력 있는 분들을<br>기다리고 있습니다!! 망설이지 말고 지원해주세요.</p><p>자세한 사항은 <a href="http://bit.ly/3pVjlmR">채용 사이트</a>를 통해 확인하실 수 있습니다.</p><p>#전직군채용중 #we’re_hiring #글로벌교육앱</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daec38f22698" width="1" height="1" alt=""><hr><p><a href="https://blog.mathpresso.com/after-the-frontend-framework-war-here-is-the-state-management-one-daec38f22698">After the Frontend framework war, here is the State management one…</a> was originally published in <a href="https://blog.mathpresso.com/">Team QANDA</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mathpresso @ IFA 2018 — Berlin, Germany]]></title>
            <link>https://blog.mathpresso.com/mathpresso-ifa-2018-berlin-germany-cffbd4ad6a1?source=rss-307a6cc4a1e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/cffbd4ad6a1</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[samsung]]></category>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[mathpresso]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Julien N.]]></dc:creator>
            <pubDate>Tue, 11 Sep 2018 13:28:34 GMT</pubDate>
            <atom:updated>2021-01-27T07:11:26.480Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mathpresso @ IFA 2018 — Berlin, Germany</h3><p>In our effort to expand Mathpresso globally, we attended the Internationale Funkausstellung Berlin (IFA), the world’s leading trade show for consumer electronics and home appliances. As part of Samsung Creative Square, we got to present our project to visitors from various background.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rsxG1NzPspx97drNrWgeYA.jpeg" /><figcaption>IFA entrance</figcaption></figure><p>Samsung Creative Square is the startup incubator run by Samsung Mobile.<br>Through this program, Samsung provides us with their resources: mentorship, business partnership, technologies, PR opportunities like attending global exhibitions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sBVRJJ7SANXXx83YU3DNfg.jpeg" /><figcaption>Our booth</figcaption></figure><p>IFA 2018 took place at Messe Expo center in Berlin, Germany from August 31st to September 5th.</p><p>Our booth was in the middle of the City Cube, a 6000m2 hall that Samsung totally filled with their new products.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ltzd0G0HWmehQLJzqPE45w.jpeg" /><figcaption>Creative Square booth</figcaption></figure><p>Alongside us were 3 other promising startups also part of the program.<br>- 39ºC: just like a TV director, manage your stream from your tablet, and broadcast to Twitch, Youtube, … from up to 4 different devices.<br>- Liner: the highlighter for the web. Highlight pages as you read them, it’s then categorized in your account so you don’t lose the key points.<br>- Realgam: a VR gauntlet accessory that simulates force feedback (gun recall, sword, lifting heavy weights, …) in your VR sessions.</p><p>We got to talk to a lot of international visitors from diverse background. While students were the most interested about our Qanda app, seniors were also very impressed by what we could do with current technologies. All of them wished they had access to this kind of service during their time. 😄<br>We also received the visit of multiple professionals that were interested in our project and business development ideas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fWzK0ZcrqAanfof-TSM8Hg.jpeg" /><figcaption>Our CEO and co-founder Ray demonstrating Qanda</figcaption></figure><p>It was a very interesting experience, explaining our project to very different types of people and receiving their feedback allowed us to improve our understanding of the needs have new features ideas, and also learn about cultural differences that we might encounter while developing our project abroad.</p><p>With more than 150,000m2 of show floor, IFA hosted 2000 exhibitors and welcomed 250,000 visitors on 6 days of event…<br>Samsung showcased they expertise in mobile with maybe a third of the City Cube dedicated to promote the Samsung Galaxy Note 9 recently released.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gmmhzlR14l8c79GZlVZzZA.jpeg" /><figcaption>The artist Mr.Doodle was here to draw some selfie stickers</figcaption></figure><p>The rest of the hall was about IoT (internet of things) products: devices like phone, TV (have you seen that 8K TV beauty ?!), robot vacuum, air-conditioner even oven and laundry-machine connected with each other. The phone will alert all the devices when you get to home, to start the oven, turn on the light, play some music and turn the AC on. Pretty awesome right..?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7QXY6qxogkAO0H2kXAmtVQ.jpeg" /><figcaption>Everything is connected!</figcaption></figure><p>Google was probably one of the most talked about company that was attending the event. Many companies were demonstrating their connected TV or device and a lot of them implemented Google Assistant, the AI assistant by Google (like Siri). To make the visitors see as many partners as possible, Google created this little “adventure” were you had to visit and collect a pin at 5 partner companies and learn about how you could use the assistant with their products.<br>After collecting the 5 pins from them, you could go the Google Assistant booth to take a chance at their “slot machine” and you will win goodies!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*AChZ9e7RdzpNU4uwYuVd4A.jpeg" /><figcaption>Pins for days</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lv6puUkrUW7EfkvSq7AjxA.jpeg" /><figcaption>You can’t really miss it</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*KlNlRHEJzCo5CShGb9zmtQ.gif" /><figcaption>Yeay!</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cffbd4ad6a1" width="1" height="1" alt=""><hr><p><a href="https://blog.mathpresso.com/mathpresso-ifa-2018-berlin-germany-cffbd4ad6a1">Mathpresso @ IFA 2018 — Berlin, Germany</a> was originally published in <a href="https://blog.mathpresso.com/">Team QANDA</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>