Better HN
topnewbestaskshowjobs
Log inSign up

yisheng

20 karma · joined Apr 9, 2016 (10y ago) · 11 submissions

Submissions

comment 8y ago · link · parent

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.

comment 9y ago · link · parent

Oh cool thanks! useful link too

comment 9y ago · link · parent

A little aside - does anyone know what's the colorscheme / theme of the editor in that blogpost?

comment 9y ago · link · parent

I used your tutorial for learning to make my first interpreter and learnt a lot from it. Thank you for sharing!

comment 9y ago · link · parent

I really liked The Elements of Computing Systems (nand2tetris). The reader gets to build a computer from nand gates up.

comment 10y ago · link · parent

Any upsides to using this over a Table view in default kibana?

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

I use DRY to enforce consistency.

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

comment 10y ago · link · parent

Nice references. Thanks!

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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.