47
ichijou
130d

Cleaning up some code when,

render () {
...
...
{this.renderSomeComponent()}
...
}

me checks renderSomeComponent

renderSomeComponent = (blabla) => {
if (this.shouldRenderComponent()){
doSomething()
}
}

me checks shouldRenderComponent

shouldRenderComponent = () => {
return false;
//unfinished single line of code
}

...
...
...

Git blame, “some guy who already left”, 7 months ago,

How can this shit even got merged to master??

Comments
  • 10
    Use hooks, I heard they are the hottest shit right now.
  • 3
    @finiteAutomaton I’ve heard about hooks from a friend, but before implementing further improvements, this abomination needs to be cleaned up properly,
  • 1
    Wow. Speechless.
  • 5
    I mean .. the encapsulated approach was a good start but very disappointing in the end. Like a sneeze that sneaks back in.
  • 3
    @wholl0p that was a very accurate depiction 🤣
Your Job Suck?
Get a Better Job
Add Comment