Skip to content

[DO NOT MERGE]: just an example from frustration#2079

Closed
dgdavid wants to merge 1 commit intomasterfrom
frustration-draft
Closed

[DO NOT MERGE]: just an example from frustration#2079
dgdavid wants to merge 1 commit intomasterfrom
frustration-draft

Conversation

@dgdavid
Copy link
Contributor

@dgdavid dgdavid commented Feb 25, 2025

Warning

DO NOT MERGE

First of all, please excuse me for:

  • Spending time on this PR (just 30 minutes of non-working hours)
  • The tone of the PR itself

This PR is not intended to be merged. It’s not fully documented, doesn’t have tests, and the naming could definitely be better. It’s just a PR born out of a developer's frustration while playing the front-end role, realizing that even in 2025, front-end work is still underestimated and treated as second-class citizen.

This is just a wrapper meant to make things easier, avoid repetition, and add some consistency to the code. A wrapper that, in all honesty, wouldn’t be overlooked in a more respected stack (think backend or languages considered more serious), without involving debates over developers’ personal preferences. It also shows that it’s possible to do things a little better from the very beginning without restricting the developers to use the spacing of their preference.

Additionally, it highlights (at least to me) how easy it can be to think about the entire application, rather than just focusing on the part that's working at a given moment—especially when considering future maintenance and reusability.

I know it's a bit rough (read scaring) in its current state, but I hope it helps explain one of the things I’ve been advocating for. It’s not that difficult to write code in a more structured, thoughtful way, rather than relying on repeated lines with the idea that they’ll be fixed later.

I hope a diff speaks louder than my words, as I feel I’ve fully failed to get my point with words.


Related to #2070 (comment), among a ton of other discussions about interface code.

@dgdavid dgdavid closed this Feb 25, 2025
@dgdavid dgdavid deleted the frustration-draft branch February 26, 2025 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant