News for hackers. Stuff that matters.
Re:NHS.UK frontend by ng12 on Thursday December 20, 2018 @06:14PM (#18730112)
Not to be curmudgeonly but this is exactly what I would expect from public sector.

- Odd technology choices. It took me a long time to figure out what .njk files were.

- Misapplication of popular technologies. They're using webpack for... something? But most of the actual bundling is done by hand with gulp, and a lot of the JavaScript is operating in the global scope.

- Overselling. It's just a bunch of scss with some mostly-HTML components.

Re:NHS.UK frontend by bendmorris on Thursday December 20, 2018 @06:26PM (#18730187)
>It took me a long time to figure out what .njk files were.

Nunjucks is a very popular JS templating language (more or less a straight port of the even more popular jinja2) - it's not an odd choice at all.

https://github.com/mozilla/nunjucks

Re:NHS.UK frontend by tomelders on Thursday December 20, 2018 @07:44PM (#18730601)
This entire thing will compile down to regular HTML/CSS. This is about as future proof as you can get.
Re:NHS.UK frontend by chickenfries on Thursday December 20, 2018 @07:17PM (#18730465)
Would this be more impressive to you if it were React or Angular? Your users don’t care that it’s Nunjucks or Sass. Nunjucks and Sass are perfectly fine.
Re:NHS.UK frontend by ribs on Thursday December 20, 2018 @07:34PM (#18730554)
But obviously the users are not the only or even major constituency here. These are UI components to be used by other developers and (like all software) to be modified down the road to satisfy new and changed requirements. Technology choices matters greatly.
Re:NHS.UK frontend by chickenfries on Friday December 21, 2018 @10:25AM (#18733833)
The NHS is probably concerned with stability, accessibility and performance. Also I would like you to please explain why sass and Nunjucks are not good for “satisfying changed requirements”

Edit:

Also, are you serious that GDS should consider front end developers their constituents and not their users?

Re:NHS.UK frontend by djw09 on Friday December 21, 2018 @03:16AM (#18732047)
As it’s a open project, have you considered opening a GitHub issue or even a pull request with some recommendations on better approaches/tools?
Re:NHS.UK frontend by noir_lord on Friday December 21, 2018 @07:48AM (#18732987)
> It took me a long time to figure out what .njk files were.

https://www.google.com/search?client=firefox-b-ab&q=.njk+fil... I mean how long are talking here? 5s or 2 days?.