HNHacker News
TopNewBestAskShowJobs

wilsonrocks

276 karma · joined August 20, 2018

Math teacher and union offical turned web developer.

Blog at https://jameswilson.codes

submissionscomments
wilsonrocks··on Google faces $5B lawsuit for tracking people in incognito mode
I used a google analytics plugin for Gatsby, and it had a respectDoNotTrack configuration option when you set it up, which does respect it - but I presume that just doesn't send the data to google in the first place.
wilsonrocks··on Native HTML elements with CSS superpowers
I think where you have several Boolean states an element could be in, it can be nicer that programatically constructing a string with the required classmates in.
wilsonrocks··on Native HTML elements with CSS superpowers
I could see the point in attribute selectors - when using react I find it messy to programmatically specify class names based on state/props, particularly when using BEM.

Setting some Booleans as attributes is much nicer. However, it is built into CSS already, so not sure a library would help...

wilsonrocks··on Show HN: Blunt – A CSS Layout Framework for Minimalists
http://flexboxgrid.com/

Is pretty good - similar to at least one version of bootstrap's grid, but just does the layout

wilsonrocks··on It's 2020 and I'm using image maps
I'm now curious as to whether you could animate the image map along with what it displayed to make some sort of game.

With a JS animation library if the actual css properties aren't animatable

wilsonrocks··on Unofficial Winamp Web Site
Reaper is amazing software.
wilsonrocks··on Things I wish I knew about state management when I started writing React apps
There is definitely a happy middle ground. Feedback too soon can be jarring, but waiting till the end of a form can be very frustrating, especially if there are many fields and you have to reparse to find the error. I think you need both to have a good experience.
wilsonrocks··on Mini projects built with VanillaJS. No frameworks or libraries
A lot of people think a README file is important.
wilsonrocks··on Parcel – Fast, zero-configuration web application bundler
I had to switch on a project because I couldn't get IE support working :( A shame (that I have to support IE) because parcel is excellent.

I believe the new version will make it fairly easy to do differential builds - so users with modern browsers don't have to download all the Polyfilla but it still works on IE

wilsonrocks··on Automate the Boring Stuff with Python (2015)
To an extent... If you're using something that supports promises and not callbacks, which not all of the things you want to use to write an actual script do.
wilsonrocks··on Automate the Boring Stuff with Python (2015)
I mostly write javascript now for my day job... But python is nicer for scripts... The asynchronous nature of node makes it a pain for me
wilsonrocks··on Tips I use to avoid burnout
I think the problem is when being part of a team is abused - so you get the expectations but not the benefits.
wilsonrocks··on Pro-Indian ‘fake’ websites aimed at influencing decision-making in Europe
The Sun is a terrible newspaper imo
wilsonrocks··on GitHub Actions is my new favorite free programming tool [video]
Gitlab let's you do an awful lot and can be self hosted.
wilsonrocks··on Thinking in React Hooks
Totally agree about useState and useDispatch... So much easier! It is true that it beds knowledge in the component, but how likely am I to replace redux in a working app?
wilsonrocks··on A Socialist Plan to Fix the Internet
It's good to see this perspective.
wilsonrocks··on WebKit Goals for 2020
While I Personaly wouldn't drop JPEG support yet...

Do non-web software developers support every CPU architecture? Because I'm sure I've heard of apps that not run on macs, or just windows and not Raspberry Pis.

wilsonrocks··on TypeScript 3.7
I'm excited to take out a lot of lodash gets
wilsonrocks··on Shared Cache Is Going Away
Unless the libraries are bundled in, which is the case for most of the stuff I use?

Exception - the analytics stuff I'm obliged to add.

wilsonrocks··on 1.5M Packages a Day Bring Chaos to NYC Streets
Literally thought this was about npm before I'd parsed the headline.
wilsonrocks··on A brief history of government efforts to stop people from wearing masks
Isn't CCTV bad at identifying faces though?
wilsonrocks··on New PDFex attack can exfiltrate data from encrypted PDF files
Someone once explained to me that .pdf and Microsoft office encryption have the use case of 'someone benevolent gets the file by accident (browsing a network drive maybe) opens it, sees the password screen and knows they're not supposed to read it, and gives up.

It's more the equivalent of putting it in an envelope marked Private and Confidential than locking it in a box.

In many of these cases the password is in the email the file is sent with.

wilsonrocks··on Games Economists Play
Freeciv, in my experience.
wilsonrocks··on Frustrations with React Hooks
This seems like a fair point about other people's custom hooks. An important situation where naming helps so people can at least see what they do, without worrying about documentation
wilsonrocks··on Frustrations with React Hooks
I've found that the hoop jumping type stuff, while potently annoying, can at least be abstracted into a custom hook (and then mocked in tests) easily so that the code is clean.
wilsonrocks··on Frustrations with React Hooks
I certainly found on one occasion where I felt I had to break the laws of hooks, that it worked much better split into two components.
wilsonrocks··on Questions to ask a company during a job interview
In the UK, your contract is formed by: the thing you signed, any statutory law stuff, and any custom and practice stuff in your workplace. Generally speaking however, it's the same as what other people in this subthread have pointed out: you probably can't do a lot if the employer changes your contract, either officially or unofficially. Continuing to go to work implies acceptance and well. You could attempt to take the employer to an employment tribunal,but they're expensive (even more expensive thanks to the recent Conservative governments)

Source: used to be a trade union official. If there was a union for tech jobs, they might be able to pay for tribunal costs, but when I did it we only took them on if there looked to be a greater than fifty percent chance of winning.

wilsonrocks··on Ha-ha wall
Interestingly, I'm a web developer at a company housed in a stately home in Yorkshire that has a ha-ha. Can confirm that a herd of cows were not able to get on the lawn.
wilsonrocks··on JavaScript: The Modern Parts
React Hooks doesn't preclude ES6 though?

Really, they're just functions that have some weirdness/magic about when you call them.

I love them, but that's not really what this thread is about, of course:)

wilsonrocks··on I Miss Microsoft Encarta
I remember moving schools at age 12 and the computers in the library had encarta. My friends had PCs with CDROMs and could print out Encarta for homework where I was stuck copying stuff out from a paper encyclopedia. Memories!
← PreviousPage 4 of 5Next →