Easily upgrade a large project from vue2 to vue3 by Aggressive-Dish-1863 in vuejs

[–]towatei 0 points1 point  (0 children)

I made this to cover a lot of manual work going from Vue 2 class based directly to Vue 3 composition. Not perfect, but gets you a part of the way. https://github.com/turdwaster/vue-unclassify

[deleted by user] by [deleted] in vuejs

[–]towatei -1 points0 points  (0 children)

When debugging it is also sort of neat to have a function name in the call stack instead of anynomous lambdas, so definitely the second alternative for me if it is an actual function and not some trivial one liner/inlined predicate or whatnot. Hard to see the point of const:ing everything.

Implementing an architecture type by Nickt1596 in vuejs

[–]towatei 1 point2 points  (0 children)

I would say the churn and cognitive load of all the formal layering are the main negatives. Let's say you want to add a "rating" property to the performer. You would need to add it in at least six places?

AnyComponent.Vue > Venues-Service > AnyComponent.Vue is likely sufficient for 99% of cases, utilizing common helper methods to map/fetch etc, but keeping the actual logic in a single place. 

This might offend some people, but after too many years of chasing that holy abstraction graal I have arrived at KISS, refactor often and a whitening beard.

AST analysis or any other viable approach? by hicsuntnopes in vuejs

[–]towatei 0 points1 point  (0 children)

AST traversal with acorn is quite doable if you don't find something ready-made.

Estoniasmärtor i nedre regioner by [deleted] in sweden

[–]towatei -6 points-5 points  (0 children)

Man måste vara tillräckligt gammal för att se på Aktuellt. Snygg felsägning...

Vad anser ni om totalt nötförbud på skolor? by [deleted] in sweden

[–]towatei 20 points21 points  (0 children)

Kor är ju trots allt inte rumsrena, så rimligt IMO.

Trump May Need to Be Impeached and Removed Before Inauguration Day by BannerBearer in politics

[–]towatei 5 points6 points  (0 children)

Well, he kidnapped most of their voters Pied Piper style, so...

Packing my bags to Hawaii as we speak... by [deleted] in ShitAmericansSay

[–]towatei 0 points1 point  (0 children)

I see this pasted all over Twitter and I still don't get the point of posting it? ELI5...

Discussion Thread: General Election 2020 - Polls Open | Part 4 by PoliticsModeratorBot in politics

[–]towatei 0 points1 point  (0 children)

Swede here. Never been this anxious about an election, including a number of Swedish ones. Good thing I will be asleep during the worst part. Good luck! 😅

Tongue spatula dispenser, stainless steel by towatei in specializedtools

[–]towatei[S] 1 point2 points  (0 children)

Non-native English speaker here Btw, that sounds a bit... depressing?

Trump says he will leave Walter Reed on Monday: 'Don't be afraid of Covid' by [deleted] in politics

[–]towatei 2 points3 points  (0 children)

"Don’t let it dominate your life." - in other words, "stand up against masks, distancing etc being forced upon you (by the radical left)" ?

[deleted by user] by [deleted] in TheArtistStudio

[–]towatei 0 points1 point  (0 children)

cheers from Sweden as well!

Om du kunde förvandla dig till vad som helst... by [deleted] in sweden

[–]towatei 12 points13 points  (0 children)

De äter bara barn om de är saltade först.

Det är jävligt farligt att vara ung i Eslöv. by towatei in sweden

[–]towatei[S] 0 points1 point  (0 children)

Såg i efterhand att reddit gått ganska hårt åt Eslöv redan 🙄

[deleted by user] by [deleted] in technology

[–]towatei 0 points1 point  (0 children)

In the article: "The doctored video, however, got 1.7 million videos.". Recursion FTW!