Hacker Newsnew | past | comments | ask | show | jobs | submit | _bAp_'s commentslogin

I had the same problem and used a JSONSchema as a single source of truth. Then from that schema you can generate:

- the typescript interfaces: https://www.npmjs.com/package/json-schema-to-typescript

- the runtime checks with AJV

So you have no duplication and you're type safe.


He was talking about the competition, not Mozilla.


MakeMeReach | Paris, France (near Opera) | Full Time | Onsite

MakeMeReach is a fast-growing social ad tech company. We empower agencies (Havas, Dentsu-Aegis, GroupM...) and advertisers (Meetic, BlaBlaCar, L’Occitane...) to outperform their campaigns on Facebook, Twitter and Instagram, at scale.

Our solution leverages a cutting-edge platform that automates and optimizes all social ads campaigns in one place, and a team of performance marketing experts who maximize ads efficiency.

Our intuitive tool and team expertise are leading to success thousand customers in hundred countries. MakeMeReach is vetted by Facebook, Twitter and Instagram as an Official Partner.

We are looking for a Full-Stack Software Engineer to join our amazing team. You will be part of a human-size, fun and fast-moving team and you will have a direct impact on the product. We would like someone who can learn quickly and play ping-pong at a professional level (last point optional).

Stack : HHVM (Hack), Angular, MongoDB, Coffeescript, Node.js, Ping-Pong, Foosball

Advantages : Startup experiencing exponential growth, Attractive wages, Amazing office in the center of Paris, Autonomy, Fun environnement, ...

Website : http://makemereach.com/

Apply : https://makemereach.workable.com/

Culture : https://www.instagram.com/make_me_reach/


Not intuitive enough apparently ;)

$NR stores the number of records (or the current record number) not the number of fields (that's $NF). In the example the "NR > 1" is meant to exclude the header line from the output.


You are entirely correct -- I got tunnel vision/brain fart and mixed NF and NR up, newbie mistake!

NR is initialized to 1 on the first line, and is incremented for every subsequent line read. So, in this case, the above pattern will match any line after the first.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: