It comes naturally to create a function whenever needed, that should be true for all developers. But we all have different standards on when we create methods.
Are you creating a function/method when:
- the current one exceeds a certain number of lines, or a certain complexity?
- or do you just pile all the code in one giant function until you can't see the scrollbar?
- do you create them based on readability?
- what about re-usability?
Leave your answers below! It would be very interesting to see the differences we have on this subject.
Does front-end development as a we know it still exist; or has the role evolved into something we no longer recognise? As with evolution in nature, the evolution of "front-end" has resulted in several distinct flavours --- and in my opinion --- an identity crisis.