20
dUcKtYpEd
11d

My react component is now over 1000 lines long and contains 28 state values. Go ahead and roast me. I deserve it.

Comments
  • 7
    Does it work tho?

    No roasting involved if it works my dude
  • 4
    @AleCx04 it works great. Its just impossible to have anyone else work on it
  • 3
    I feel for you, bro.
  • 1
    @dUcKtYpEd You fucking worthless piece of shit. How dare you write something that long.

    Lol jk ❤️. That doesn’t seem too bad, what does it do?
  • 1
    @SauceBoss hahah ! Its building a specification for a worldwide data format used across all healthcare called HL7 (health level 7). Pretty much every type of transaction done in a hospitals is done over hl7 and is a plain text message so this helps with building specs to convert it. It started out with two modals and quickly turned into 7 as my R&D kept turning up more conditions needing met. It's really a beast that needs broken up into easily 8 components.
  • 1
    @dUcKtYpEd actually been there. I feel for you.

    Maybe refactor to function as a child may simplify your component enough to extract functionality
  • 1
    dont know the specs you have so this is just a kind suggestion, i have inherited same kind of project. refactored that and made pages with several components on it instead of modals when they needed more functionalities.
  • 1
    @legacyJanitor @perotti that's the road I'm about to have to go down. I really want to put the help on it but there's just no way. It's probably going to be 7 different components
Your Job Suck?
Get a Better Job
Add Comment