News for hackers. Stuff that matters.

yisheng

I use this when designing a redux application:

1. Define function signatures of selectors and action creators. 2. Define the state tree shape.

Action Creators and Selectors translate to the "API endpoints" as it's the public interface to your frontend data model.

The state tree translates to the "database schema".

I would also consider what the data model for client-side persistence (localstorage, cookies) is.

Re:What's New in Create React App on Friday May 19, 2017 @07:46AM (#14374666)
Oh cool thanks! useful link too
Re:What's New in Create React App on Friday May 19, 2017 @05:49AM (#14374122)
A little aside - does anyone know what's the colorscheme / theme of the editor in that blogpost?
Re:Show HN: How to write a recursive descent parser on Monday March 20, 2017 @10:43AM (#13914596)
I used your tutorial for learning to make my first interpreter and learnt a lot from it. Thank you for sharing!
I really liked The Elements of Computing Systems (nand2tetris). The reader gets to build a computer from nand gates up.
Any upsides to using this over a Table view in default kibana?
Re:Flask 0.11 Released on Sunday May 29, 2016 @11:51AM (#11796759)
Flask is a server-side framework, as others have mentioned.

You should be comparing it to micro web frameworks like Nodejs' Express, Ruby's Sinatra, PHP's Slim, Java's Spark, etc.

Re:Tips for beginning systems and software engineers on Thursday May 19, 2016 @04:51AM (#11728878)
I use DRY to enforce consistency.

Bad repetition is when you or other engineers have to also remember to update the repeated parts.

Re:Visual Studio Code 1.0 on Thursday April 14, 2016 @01:43PM (#11498844)
Nice references. Thanks!
Re:Visual Studio Code 1.0 on Thursday April 14, 2016 @12:59PM (#11498393)
Are there any emacs/vim users here who moved to GUI editors like atom or VS code?

I would like to know what potential gains could come from using a GUI text editor.

Re:Regarding JavaScript trailing commas on Friday April 08, 2016 @11:40PM (#11459781)
The only time you should avoid trailing commas is if your javascript needs to run on older browsers.

If you use babel, you can write your source with trailing commas, then let the build step remove them for older browsers.