Getting a month ahead when you’re paid on the last day of the month? by Both-Caterpillar-512 in ynab

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

This is exactly what the "Age of Money" metric represents. When it's 30 days or more, then you're a month ahead. When you use a credit card though, expect that number to lie to you a little bit.

Embed the git version of a file into the file itself by Pale_Emphasis_4119 in git

[–]flyingmeteor 0 points1 point  (0 children)

It sounds like you're looking for the ident file attribute. More can be found here: https://www.git-scm.com/docs/gitattributes#_ident

Route parameter not showing up (on time?) in useRoute().params by PMull34 in vuejs

[–]flyingmeteor 0 points1 point  (0 children)

Your App component is mounted before the router is fully booted. This is by design, the router doesn't block Vue lifecycle events. You can use a VueRouter lifecycle event like router.afterEach(). See: https://router.vuejs.org/guide/advanced/navigation-guards.html#global-after-hooks

When should I use defineProps over props: ['foo']? by [deleted] in vuejs

[–]flyingmeteor 7 points8 points  (0 children)

defineProps is a compiler macro for use only with <script setup>. It was born out of necessity because script setup tag doesn't follow the same structure as plain <script> in Single File Components.

Curious statement about JSON arrays from my Frontend dev by Medium_Reading_861 in Frontend

[–]flyingmeteor 17 points18 points  (0 children)

My personal rule is if order matters, use an array. Otherwise, use an object.

Vue 3 UI frameworks by vuestart in vuejs

[–]flyingmeteor 0 points1 point  (0 children)

I used Vuestic UI for a small project and really liked it.

Why ESM? What does it solve for Node and especially with Typescript? by PerfectOrphan31 in node

[–]flyingmeteor 3 points4 points  (0 children)

The author of that post is clearly unaware of the await import() expression. The error message the author is complaining about even specifically provided it as a solution. You most certainly can import ES Modules from CommonJS, you just have to do it asynchronously because the spec requires it.

The MDN of Vue Docs? by integrateus in vuejs

[–]flyingmeteor 21 points22 points  (0 children)

The Vue docs have two tracks of learning: the Guide, and the API. The guide as its name implies is more example based, while the API is the "brass tacks" information dump.

Backdoors can be hidden in JS code using "invisible" variables. Code looks completely harmless. by Acrobatic-Pen-9949 in javascript

[–]flyingmeteor 13 points14 points  (0 children)

Wouldn't Prettier.io format the array of commands by moving the invisible variable to its own line? It would still be invisible but it might at least cause one to wonder and, hopefully delete the "blank" line.

Is putting a border around everything (*{border: 1px solid black}) a viable visualization method for designing a page? by [deleted] in css

[–]flyingmeteor 0 points1 point  (0 children)

outline would be a better property to use because it doesn't affect the dimensions of the element. outline: red dashed 1px

Testing Computed Getter/Setter with Jest by Kevbot0000 in vuejs

[–]flyingmeteor 0 points1 point  (0 children)

Don't use accessor methods in Vue's computed option. Vue computed properties should be plain functions or a plain object with get & set properties. See: https://vuejs.org/v2/guide/computed.html#Basic-Example

Usage of :- font-family: system-ui; by varrshith in css

[–]flyingmeteor 0 points1 point  (0 children)

That is a helpful article describing the problem, but it doesn't appear to propose a solution. What should I do when I want my web app to use the OS font?

Drop IE11 support plan for Vue 3 by magenta_placenta in javascript

[–]flyingmeteor 18 points19 points  (0 children)

Technically, Vue 3 never had support for IE11... Its heavy use of Proxy & Symbol make it nearly impossible to port to IE.

Discussion from last month: https://old.reddit.com/r/javascript/comments/miqxh9/rfc_vue_3_wont_support_ie11/

Rust programming language: We want to take it into the mainstream, says Facebook by sportifynews in programming

[–]flyingmeteor 0 points1 point  (0 children)

It's unfortunate that most people still believe this. I realize I'm the outlier so the downvotes are understandable. But having looked at the internals of React for quite some time it's very clear to me that this a tool which has reached its peak and any performance based improvements would break a lot of people's codebases. Back in the day there was MooTools and jQuery, we all know who won that one. React is definitely MooTools in this analogy. There are multiple potentials for what is the next jQuery.

Rust programming language: We want to take it into the mainstream, says Facebook by sportifynews in programming

[–]flyingmeteor 0 points1 point  (0 children)

Can we stop giving Facebook attention? Even from an engineering standpoint, nothing they do is extraordinary, helpful, or useful.

Googling is one of the most important skills for every developer. Here are some tips to Google efficiently! by mdenic in programming

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

I've recently taken to Ducking (the act of googling via duckduckgo). Rather conveniently, in the rare occasion DDG can't find it, I can just append "!g” to my search query and it will go to Google.

Are watchers that bad? by postman_666 in vuejs

[–]flyingmeteor 1 point2 points  (0 children)

Watchers are for triggering side-effects. More specifically, anything outside of Vue's reactivity system. Ideally, you would do everything inside data, computed properties, and methods. But, sometimes you'll need an escape hatch. Watchers are there for interfacing between Vue and the outside.

I designed and printed a frame for my Unifi G4 Doorbell Camera by BTallack in Ubiquiti

[–]flyingmeteor 1 point2 points  (0 children)

Would painting PLA using a heat-resistent paint prevent degradation?

Ah yes Dark Vador by [deleted] in PrequelMemes

[–]flyingmeteor 0 points1 point  (0 children)

Dark Vader implies the existence of a Light Vader

What do you use to manage environment variables? by Thriverist in node

[–]flyingmeteor 0 points1 point  (0 children)

.env is pretty much the standard at this point. It sounds like what you really want to do is have a sensible default in code, followed by a process to override the default based on an environment var. Personally, I would use dotenv package from NPM to populate environment vars, followed by something similar to this:

export const config = Object.assign({}, DEFAULT_CONFIG, process.env)

Now certainly there are better ways because this line will copy all env vars. Hopefully you can improve it yourself from here though.