Whenever I need to quickly spin up a web application, Python’s Flask library is my go to tool. Recently, however, I found myself wanting to generate a static HTML page to upload to S3 and wondered if I could use it for that as well.
It’s actually not too tricky. If we’re in the scope of the app context then we have access to the template rendering that we’d normally use when serving the response to a web request.
In this blog post, we look at the operation flatMap, which is similar to the Array method map(), but more versatile.
[Read rest of post]
Python and Ruby are among some of the most popular programming languages for developing websites, web-based apps, and web services. In many ways, the two languages have a lot in common. Visually they are quite similar, and both provide programmers with high-level, object-oriented coding, an interactive shell, standard libraries, and persistence support. However, Python and Ruby are worlds apart in their approach to solving problems because their syntax and philosophies vary greatly, primarily because of their respective histories.
An excellent subhead by Felix Rieseberg: How I Learned to Stop Worrying & Trust the Compiler.
I’d wager that some of the popularity of SCSS was due to that fact that any valid CSS was valid SCSS, so you could baby step into SCSS on an existing codebase fairly easily. The same is true with TypeScript:
TypeScript at Slack is a post from CSS-Tricks
The main purpose being: you’re using npm anyway, so using it directly to run scripts removes a dependency (i.e. gulp/grunt/whatever) and brings you a bit closer to the tools you are using directly. I could see this example `package.json` file from Graham Smith being highly referenced as people try this out for themselves.
Remember Damon Bauer covered this here on CSS-Tricks last year, with a whole bunch of examples of what is possible.
Direct Link to Article — Permalink…
Using npm as a Build Tool is a post from CSS-Tricks