News for hackers. Stuff that matters.

tewolde

Show HN: vGhost – Vue directive to unload offscreen elements and maintain layout

https://github.com/isaact/vue-infinity

Follow-up to a previous Show HN for vue-infinity: https://news.ycombinator.com/item?id=44375369Just released a major new feature: v-ghost — a Vue directive that automatically unloads elements when they scroll out of view, without breaking layout or scroll position.Now you can keep your DOM light without wrapper components or manual logic.Just drop v-ghost on any element: <video...

( Read More... | no comments | on HN )
A vue library inspired by how 3D engines only render what the camera sees. Applying that idea to the DOM lets us build UIs that are radically more efficient under load.

The library includes two components: - Ghost: Wrap heavy elements like images, video, or animations. It tracks their size and unloads them from the DOM when out of view — preserving layout without wasting memory. - InfiniteCarousel: A virtual scroller that renders only what's visible, but keeps your DOM layout intact. No absolute positioning tricks — just native scroll snapping and easy styling

- Code: https://github.com/isaact/vue-infinity

- Demo: https://tewolde.co/vueInfinity

- Background: https://tewolde.co/blog/vue-infinity

Re:It’s not all lightbulbs on Tuesday October 18, 2016 @02:07PM (#12737116)
Yeah, it left me reeling. Some sacred cows were slain for sure :D
Re:The comeback of static typing on Sunday February 24, 2013 @01:15PM (#5275204)
For the dev building the library static typing is a very convenient thing to have. All the ins and outs have very clear rules enforced at compile level.

However, for the user of the library, it simply gets in the way. This may be avoided though if the library has been designed well enough that strange internal types are not exposed to the user unless absolutely necessary.

Re:Never, Ever Compromise: Hiring For Culture Fit on Tuesday January 08, 2013 @04:46PM (#5028710)
No! No. No.

Find what you need, and hire for talent...all else is smoke and noise!

Re:Disposable Email address on Sunday May 20, 2012 @09:45AM (#3998733)
Check this out, they've been around for a while.

http://mailnull.com/

Re:Why Software Development Estimations Are Regularly Off on Sunday January 29, 2012 @12:03AM (#3524496)
I think semantically we're talking about two sides of the same coin. It's like asking if invention is the answer or the question.

I believe it is both in fact probably leaning a bit more on the question side of the equation.

Re:Why Software Development Estimations Are Regularly Off on Saturday January 28, 2012 @11:57PM (#3524485)
This is even a mirror to the development process itself. The most difficult aspect of fixing a bug is identifying it.
Re:Why Startups Could Use .NET, But Don’t on Thursday December 29, 2011 @06:52PM (#3405948)
A point to consider is that having .net or php on a resume gives a lot less information than say having ruby or python.

As a hiring manager I want developers who are interested in their craft beyond merely what they learned in school. Seeing experience with obscure tech or less popular languages is an easy way to spot this.

Assuming the candidate can back up what they say on the resume, it shows that they have enough confidence and ability to go off the beaten path.

Re:Why We Haven’t Met Any Aliens on Thursday December 22, 2011 @03:59AM (#3380928)
Or they go so advanced they were able to intercept and snuff out all that alien porn before it got to us.

Maybe even an intergalactic SOPA is in place!

Re:Why We Haven’t Met Any Aliens on Thursday December 22, 2011 @03:50AM (#3380913)
This article is not about the fermi paradox, it is just a soap box to warn against the misapplication of technology.

But back to the subject, I'm not sure if we are even smart enough to recognize any intelligence that does not resemble our own.

So far our solution to the fermi paradox may be summarized as: "We must stick them with quills! It's the only way!!"

Re:An Indian Inventor Disrupts The Period Industry on Monday December 19, 2011 @04:15PM (#3371172)
Necessity is truly the mother of invention. Stubbornness being the daddy.
Re:The $100k green card on Sunday December 11, 2011 @02:36AM (#3339554)
> Why don’t we let more of them join us? There are two common objections: they will drive down wages, or they will be a drain on tax-funded programs.

Both these objections are dead wrong. The truth is that the US economy needs immigration to work. If you doubt it, just look at Japan.

In fact, immigration is the largest wealth transfer program from developing countries to the developed.

It is already bad enough that poor countries are paying for the upbringing, training and education of these skilled migrants for which they get no compensation. To compound this with this additional tax would be criminal.

Re:The end of social on Sunday December 11, 2011 @01:41AM (#3339470)
I agree, it will definitely be the doom of Facebook or any other social network if it does not let users easily differentiate between sharing and faux-sharing. It will be like an email account that can't filter out spam.
Re:Forbes is wrong about “Developernomics” on Saturday December 10, 2011 @07:28PM (#3338911)
I think there are two different ideas being mixed up here. As a developer, there is the code and the vision. Given a particular vision, the differences in developer productivity will be small, perhaps even normally distributed.

However, developers are not simple compilers that translate a human problem into a programming solution. There is an artistic, creative side to the process that can radically impact how effective a solution will be.

To muddy things even more, there are developers who are great visionaries but poor coders and vice versa.

Re:HP to Contribute webOS to Open Source on Friday December 09, 2011 @05:27PM (#3335927)
It's all about hedging your bets. Until today, android was the only open source platform these companies could use. This gave Google an advantage to define the rules. For example, they could actually start closing parts of the source or giving Motorola preferential treatment.

Google had the sole power to define what an "open" platform was and the rules in using it. Developers, telcos and HW companies now have a second option.

HP may not make a dime from this move, but if the move is cheap and it can cost the competition more to respond, then it is a move is well played.

Lastly, HP is a hardware/software/services company so this move will give it some leverage when dealing with large players in those areas.

Re:HP to Contribute webOS to Open Source on Friday December 09, 2011 @02:25PM (#3335155)
This is a platform play. Think of it like a casino, HP is the house. It sits in the middle, makes the rules and pockets the mindshare, influence...and maybe some money.

Samsung, HTC have been desperate for an alternative to android since the Motorola purchase by Google. If HP does this right, I have little doubt we will see future webOS devices.

Re:HP to open-source WebOS on Friday December 09, 2011 @02:09PM (#3335069)
This is a sly move by HP but probably the only move they could make cheaply. Still, managing a platform as opposed to owning it can unlock tremendous value.

HW people have been looking desperate for an alternative to google as it tip-toes ever close to an official "Google phone". The Motorola purchase was such a move and it has the HW partners nervous.

I agree. In any case if you're skilled enough to roll your own, you'll be skilled enough to separate the wheat from the chaff.
Re:Standing Up For Android on Thursday December 08, 2011 @02:15AM (#3328116)
Come to think of it, that may be his best case scenario. At the very least it may be a publicity ploy
Re:Creativity requires isolation on Saturday November 26, 2011 @11:24AM (#3280067)
I have always seen creative as coming from two different sources, what I call "local creativity" and "way out left field" creativity.

To thoroughly explore a potential area of opportunity requires local creativity and this is best done with intense focus and concentration.

There are times though when you get stuck, you achieve a kind of local optima but the solution still doesn't feel right. This is where the second type of creativity fits in, and it is specialized for taking a much broader perspective than the conscious mind can handle.

This of course requires a completely different approach, as focus and concentration is definitely not welcome here. To get with this you need to disengage your conscious brain and let the subconscious take a crack at it. I find this is best done by using physical/mental distraction such as going for a walk, running, taking a shower or interacting with others.

A good nap does wonders too.

You shall not PAAS!

Older »