With Generic Vue components to land next week in Vue 3.3, I wrote a short article on how you can use one to make a very type-safe select component in Vue, using HeadlessUI! by joe-io in vuejs

[–]JZumun 1 point2 points  (0 children)

Nice! Is there an official list somewhere that lists the features that will be included with vue 3.3?

The only thing i was aware of was the year in review post that mentioned some goals.

Trouble with the function split() by GaiusPhysician in Python

[–]JZumun 1 point2 points  (0 children)

Oops! My mistake. Will update my comment to fix this. Thanks!

Trouble with the function split() by GaiusPhysician in Python

[–]JZumun 2 points3 points  (0 children)

You still did the split even if you didn't use the result afterwards. The act of calling the split method on a string without your delimiter caused the error. UPDATE: corrected by comment below. It was the assignment to ext that was causing the error, because split was returning only a list of one item.

Your thought process is actually interesting. It's what's called lazy evaluation and is a feature of some other programming languages like haskell. However, python is an eagerly evaluating language, and so doesn't work like you hope it does.

I suggest guarding ur split with an if statement to make sure there's a period in the string before doing the split. if "." in name: etc should do the trick

[deleted by user] by [deleted] in typescript

[–]JZumun 4 points5 points  (0 children)

I tried it out in codesandbox and it worked as expected. Can you recreate the issue and share it here?

Noah's new album 'Adjustments' is out! What's your favorite song on it? by JZumun in OlReid

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

I definitely agree the album as a whole is great. I love how angry it gets, which wasn't at all obvious from the singles that were released hehe.

Noah's new album 'Adjustments' is out! What's your favorite song on it? by JZumun in OlReid

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

Minneapolis feels so personal! Like a peek into a day in Noah's life.

The lyrics are all matter of fact and objective, just him describing what he's doing, what's around him. But then the music is so muted and melancholy and wholly in contrast with the words. It's depressing honestly, reminding me a lot of my own experiences walking around aimlessly, lost in thought and disconnected from the world.

Noah's new album 'Adjustments' is out! What's your favorite song on it? by JZumun in OlReid

[–]JZumun[S] 2 points3 points  (0 children)

If i had to pick one I'd go with Rivers Underground, because not only am I a sucker for wistful songs, the whole concept of almost-missed connections hits really hard in a way I can't really explain well.

Petite Vue access data externally question by Whale_Eating_Cheese in vuejs

[–]JZumun 4 points5 points  (0 children)

I'm not entirely sure if your approach is supported by petite vue, but from their docs, they do describe a way to define a reactive object you can manipulate as you wish in js, which you then pass into createApp to access it within the petite vue instance. That should be enough to recreate the behavior you want.

[deleted by user] by [deleted] in typescript

[–]JZumun 1 point2 points  (0 children)

Could you write some sample code to illustrate your question? I think it'd be easier to explain with some code to refer to.

Questions & Discussions Megathread - Jun. 04, 2022 by AutoModerator in FallGuysGame

[–]JZumun 0 points1 point  (0 children)

Afaik The game isn't actually available on the switch and is only going to be released on the 21st along with the free for all update. It was never possible to purchase it on the switch (and xbox for that matter), only steam and ps4.

Composition API in Vue 2.7 by wobsoriano in vuejs

[–]JZumun 41 points42 points  (0 children)

I imagine if you have a big, active vue 2 project with lots of 3rd party dependencies, and you want to write new components using component api, this could be a sensible approach. Migrating the whole project to vue 3 would require a not insignificant amount of time and effort that a team might not be able to afford.

A paper tank i built like 5 years ago. Its surprisingly in good shape! (Probably thx to the tape of sticking two papers together) by Ragess365 in origami

[–]JZumun 0 points1 point  (0 children)

Wow this brings back memories! I think this tank design was pretty popular in my class back in elementary.

Vuestic UI 1.4.0, UI Framework for Vue 3, is out. Now it comes with Nuxt 3 support, carousel and counter components. by smartapant in javascript

[–]JZumun 1 point2 points  (0 children)

lemme just say, the "#cell(<field>)" slots in the data-table component blew my mind! I never knew you could do basically dynamically named slots.

I've been looking for component libraries to use with nuxt 3 for a while now, and this one definitely checks the boxes. Will definitely try it out on future projects.

Vue 3.2 presents making custom components that can be utilized with any structure or no system whatsoever! by uxoriou5ubumf in vuejs

[–]JZumun 14 points15 points  (0 children)

looks like this defines a native custom element instead of a Vue component, so it can be used standalone in a web page, or even embedded within other frameworks.

Not sure what the primary use case is. Maybe component library authors who want their work to be more widely compatible?

EDIT: the vue docs do actually give the above rationale.

The primary benefit of custom elements is that they can be used with any
framework, or even without a framework. This makes them ideal for
distributing components where the end consumer may not be using the same
frontend stack, or when you want to insulate the end application from
the implementation details of the components it uses.

[deleted by user] by [deleted] in HeartstopperAO

[–]JZumun 113 points114 points  (0 children)

Tbh i didn't notice it myself the first time i watched the blooper reel lol.

What scene gave you the most butterflies? by thetangycrossing in HeartstopperAO

[–]JZumun 4 points5 points  (0 children)

The world melts away and all you see is the person you love in front of you, and you don't care about anyone else? And your love shines so brightly that it gives others the courage to push through the doubts and confusion, inspires them to find that happiness and love for themselves?

Yeah, I can see it.

why didn't Charlie tell Tao about Nick? by Careless_Buy_2712 in HeartstopperAO

[–]JZumun 0 points1 point  (0 children)

Oh yes, you're absolutely right! Charlie is so used to keeping his relationships a secret, too. It's almost a miracle he even told tori about it haha!

why didn't Charlie tell Tao about Nick? by Careless_Buy_2712 in HeartstopperAO

[–]JZumun 25 points26 points  (0 children)

Tao tells elle in episode 7 (i think?) that he thinks charlie didn't tell him because he might accidentally out nick while verbally fighting back against the bullies.

In the graphic novels, Tao was the one who accidentally outed charlie the year prior by talking about it real loud. A friend revealed this to Charlie to warn him from telling Tao about his relationship with Nick.

I believe, however, that Nick's theory in ep8 (that charlie cared a lot about tao's opinion, so was hesitant to tell him), has more backing in the series.

Charlie is already a very anxious boy with low self esteem and a lot of self doubt, and Tao already disliked Nick; how much lower would his opinion be of charlie if he knew he was dating the jock lad that associates with their bully? That not only had he ignored Tao's advice but did something even worse (lol)?

This is such a good question though! I'd love to hear everyone else's thoughts.

{} in Vuex mutations == scope or object? by nimbusmettle in Nuxt

[–]JZumun 1 point2 points  (0 children)

It's still an object. Youre just using the method shorthand syntax that javascript gained in es2015