News for hackers. Stuff that matters.
Re:Tiny websites are great by robertlagrant on Tuesday May 19, 2020 @04:28AM (#23232620)
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.)

Re:Tiny websites are great by chownie on Tuesday May 19, 2020 @06:38AM (#23233374)
We 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.

Re:Tiny websites are great by chadlavi on Tuesday May 19, 2020 @09:27AM (#23234629)
Which 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

```

Re:Tiny websites are great by chownie on Wednesday May 20, 2020 @05:10AM (#23244815)
Yeah, 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

Re:Tiny websites are great by 5Qn8mNbc2FNCiVV on Wednesday May 20, 2020 @01:02PM (#23249189)
Sounds to me more insane than pure
Re:Tiny websites are great by amenod on Tuesday May 19, 2020 @08:02AM (#23233886)
It'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.
Re:Tiny websites are great by camillomiller on Wednesday May 20, 2020 @03:27AM (#23244233)
True, 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.
Re:Tiny websites are great by type0 on Wednesday May 20, 2020 @10:48AM (#23247484)
It's a syndrome of modern web dev, killing mosquitoes with bazookas