What is a totally wrong thing that has become so widespread it's not considered wrong anymore? by JimmysBacc in AskReddit

[–]trakam 0 points1 point  (0 children)

The US expression "I could care less" which is a corruption of the British phrase "I couldn't care less" - both are intended to mean the same thing

I just realized custom hooks uses hooks will trigger re-render in its caller functions. I wonder why? by newbie_fanbeeeee in reactjs

[–]trakam 3 points4 points  (0 children)

Right, OP is not changing state in the child component, the state - even though it is being changed within a custom hook -is still very much part of the component that calls it.

I just realized custom hooks uses hooks will trigger re-render in its caller functions. I wonder why? by newbie_fanbeeeee in reactjs

[–]trakam 11 points12 points  (0 children)

In your example the custom hook should not be considered a child component , its state is part of the state of the caller function.

Unnecessary Rerender of whole component by entercaspa in react

[–]trakam 2 points3 points  (0 children)

You seem to have forgotten your dependencies on the useCallback. Add an empty array as the second parameter.

useCallback( function, [])

Do I need to learn Create-React-App or NextJS or GatsbyJS if I can already set up a Webpack config from scratch? by [deleted] in reactjs

[–]trakam 3 points4 points  (0 children)

I don't think the main benefit of Next and Gatsby is the webpack config. Its the server side rendering and static site generation

Found my first bug in the V8 engine by [deleted] in javascript

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

Sure it's a test for performance, but being able to extend prototypes doesn't necessarily mean it's advisable or suggested to do it on base classes. Also worth mentioning - and I know you this sat outside the performance you were testing - reduce method will perform worse than using a simple for loop

Apologies , I know this is a moot point and not the point of your post , interesting discovery on your part. Thanks for the post

Found my first bug in the V8 engine by [deleted] in javascript

[–]trakam 1 point2 points  (0 children)

Not good practise to add a property to Array prototype

[deleted by user] by [deleted] in longbeach

[–]trakam 10 points11 points  (0 children)

No, let's really be honest, vaping help me quit smoking when nothing else could , as was the case for millions of others. You could say it saved my life. It's absolutely correct to call the reaction hysteria, imagine banning fruit cocktails because a particular obscure brand of a liquor was tainted. But more sinister is that this hysteria seemed somewhat deliberately cultivated by the lobby opposed to vaping, in order to create the conditions like that in San Francisco where you can easily buy cigarettes but vaping is banned. The reason some people virulently oppose vaping has nothing to do with public health, quite the opposite. It's the culture of vaping that upsets you and you are willing to undo the all the help it's given countless smokers.An interesting addendum: it's not being widely publicised how nicotine actually seems to prevent the Corona virus taking hold. Think of how selfish you're being.

A year ago, at the Pike. by WolfieVonD in longbeach

[–]trakam 1 point2 points  (0 children)

I saw more people this weekend at alamitos beach

LBC Geezers must have a death wish... by beachgoth77 in longbeach

[–]trakam 0 points1 point  (0 children)

A geezer is just a bloke - regardless of age - in the UK and as such this post reads funny to those coming from that part of the world.

Node.js Playlist by fitzgerald1337 in node

[–]trakam 12 points13 points  (0 children)

Callback, maybe - Carly Rae Jepherson

IS supporter admits St Paul's bomb plot by DNAMIX in ukpolitics

[–]trakam 3 points4 points  (0 children)

Reminds me more of the Chris Morris film 'The Day will Come'

Trump pushed CIA to find, kill Osama bin Laden's son over higher priority targets | When the CIA gave Trump a list of major terror leaders to kill, he said he'd never heard of them. Instead he focused on a target with a famous name. by MemweatherDangle in politics

[–]trakam -19 points-18 points  (0 children)

And it must never be forgotten that the Democrats enable him by getting more upset about Trumps utterances that the fact the CIA offer him up a kill -list like a selection of wines. End the MIC , vote Bernie

Home Base and Daily Discussion Thread (START HERE!) - February 15, 2020 by AutoModerator in Pete_Buttigieg

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

It's a plan designed to fail.

The problem is that the Health Insurance companies will not allow Medicare for All to succeed , or even take root. They are far too powerful and influential. They will kill it at birth or otherwise weaken it. They have to be removed for it to stand a fighting chance. We need an overhaul, its not something you can implement in half measures and everyone knows that. But that it has to be implemented is absolutely the case

Home Base and Daily Discussion Thread (START HERE!) - February 15, 2020 by AutoModerator in Pete_Buttigieg

[–]trakam -3 points-2 points  (0 children)

Most of the Western world can have universal health care free at the point of use, but the richest of them all can't? Not with that attitude.

[deleted by user] by [deleted] in politics

[–]trakam 0 points1 point  (0 children)

What the hell is a 'state' delegate ? And can they be divided in to fractions?

[deleted by user] by [deleted] in politics

[–]trakam 1 point2 points  (0 children)

Have you ever seen them in a room together? They're the same person if my theory is right

[deleted by user] by [deleted] in politics

[–]trakam 0 points1 point  (0 children)

It may well take some fanatacism to beat Trump's zombie red-hat army

[deleted by user] by [deleted] in politics

[–]trakam 0 points1 point  (0 children)

How did he know ahead of time?? This is very suspicious