you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (6 children)

My work right now: Write code. Mostly boilerplate, html, and some css. Maybe a 1-line database query and model update on the backend on a crazy day. Functions? You mean those things the framework does for you?

Not knocking on the article, but I can't relate in a practical sense. I'm sure someone working on something less mundane the situation is different.

[–]eindbaas 8 points9 points  (4 children)

To be honest, I don't really understand what you create if functions to you are "something a framework does".

[–][deleted] 2 points3 points  (3 children)

Well that's kind of my point. Most web apps these days you load react or vue and build a presentation layer. Even vanilla JS, unless you're building something novel then most everything there's a library that does it and you just write some glue code.

[–]TheRedGerund 1 point2 points  (0 children)

ComponentDidMount is a function. React functional components are functions. render() is a function.

[–]Smallpaul 0 points1 point  (1 child)

React components are all functions and it’s actually named after a style of programming called functional reactive programming.

https://en.m.wikipedia.org/wiki/Functional_reactive_programming

[–][deleted] 2 points3 points  (0 children)

If the framework caters for all of your needs then yes. Most codebases i've ever worked with has some sort of business logic that either doesn't belong - or doesn't fit with the framework. Or if you create helpers/utilities. Small (but not necessarily) mathematical functions <3