4 ms·
I don't understand why changing a title tag would require any code. Is it the framework or the code? (I don't know Vue, but this smells a bit.)
by robertlagrant 7y ago
I don't understand why changing a title tag would require any code. Is it the framework or the code?
(I don't know Vue, but this smells a bit.)
- chownie 7y agoWe had a similar scenario at my workplace, but with React rather than Vue. We wanted an internal component to be able to change the page title, which ended up with a project to transition to using react-helmet. It ended up taking a few weeks before this project completed.
- chadlavi 7y agoWhich is nuts, because you can also just write your own little one-liner to manipulate the title ```ts const setTitle = (t: string): void => document.title = t ```
- chownie 7y agoYeah, that would've been great but it was a shared codebase among many teams and one of the hard rules was no access to stuff like document :( We also couldn't console.log in this codebase, it was very ideologically pure but it took ages to make any changes
- 5Qn8mNbc2FNCiVV 7y agoSounds to me more insane than pure
- amenod 7y agoIt's not about Vue (or React for that matter). Incompetent developers will take whatever tools they have at their disposal and turn a few hours project into an unmaintainable monstrosity.
- camillomiller 7y agoTrue, but in my experience a lot of younger developers have been trained to think in frameworks all the way, with the result of growing a dangerous fondness for unnecessary complexity. To them, I feel, turning something easy into an opaque mess that the client is of course too dumb too appreciate, let alone understand, is a sign of quality and somehow a matter of pride. For the aforementioned project, that I could have built up in three days with HTML + CSS + some js sprinkled on top for effects, it took them a month and a half, and then he bailed on minor Cosmetic changes because “the allotted time was over”. The client was literally fooled into spending more for this bullshit.
- type0 7y agoIt's a syndrome of modern web dev, killing mosquitoes with bazookas