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 Kanban board in one HTML using localstorage
I think for a personal project that you use for your own ends, you can use whatever you like:)

But in general, I agree!

wilsonrocks··on What Is React: A Visual Introduction for Beginners
We have a project we unejected to CRA. Or maybe injected...
wilsonrocks··on You don't really need a virtualenv
It is a mess... But you can often get a project running an awful lot quicker than in python
wilsonrocks··on Spanish crew shot an alternative Dracula after Bela Lugosi had gone to bed
Don't know about films but kids TV programs seem to do this.

Edit, father who has seen Paw Patrol in lots of different regional versions on different streaming service.

wilsonrocks··on "ERROR: could not open temporary file" after upgrade to Mac OS Big Sur
Oooh I wonder if I could get that here - things like npm install(presume any package manager, certainly homebrew) or git commands take obscenely long times.
wilsonrocks··on "ERROR: could not open temporary file" after upgrade to Mac OS Big Sur
We've been made to use Macs at work now and they have McAfee on that we can't disable, causes no end of performance issues
wilsonrocks··on Postgres scaling advice
This was an interesting read for a database novice. It seems like a lot of the quoted stats are about in memory datasets - is that realistic?
wilsonrocks··on Facebook shuts down the Socialist Workers Party in Britain
If I see any pictures of UK footage I can usually identify the signs the SWP have given out by the font.
wilsonrocks··on JingOS: Linux Distro Inspired by the iPad
I think it might be used more in places that have history with European (maybe just British?) Colonialism.
wilsonrocks··on Why can't I write code inside my browser?
Thanks! I use a Mac for work but Linux at home. Got it working in Linux with rvm in the end.

Very much enjoying doing some rails after years of JS

wilsonrocks··on Why can't I write code inside my browser?
I agree with the other comments about the attitude of the post.

But as they mention, it can be hard to install ruby/python. Node is normally much easier. I've given up on getting react native going on my personal laptop, and I do react for a loving.

wilsonrocks··on You might not need jQuery (2014)
I've tried redux toolkit in production and it is a lot better... But I still wouldn't choose redux on balance.
wilsonrocks··on Great Hacker != Great Hire (2004)
I have built a react app to be mounted inside an existing angular app (not my idea) it was... Interesting
wilsonrocks··on California nurses union plans holiday strike over PPE
Somebody will always tell you that you are unprofessional and unethical if you strike, in my experience.

Source: years as a workplace rep in UK school under austerity government cutting public sector pay and pensions, plus 3 years as a branch secretary.

wilsonrocks··on Cypress: Fast, easy, and reliable testing for anything that runs in a browser
Would threads or processes be a great way of simulating how a user interacts with a web app though?

I tend to think of them clicking things and waiting for a response then moving on to the next thing when that happens (or failing the test when it doesn't) which seems to fit well with an async model.

Cypress _does_ do a lot of magic behind the scenes to stop you explicitly using async/await or promises in the code... Which occasionally bites it.

Especially when you have to use a .then to use values you pull from the Dom.

wilsonrocks··on Cypress: Fast, easy, and reliable testing for anything that runs in a browser
The idea behind the code being async is that you don't know how long things will take, especially talking to a backend, or even sometimes DOM manipulations in dynamic pages like you mention.

Having said that, I find parts of it v confusing (although not the asyn stuff) especially around assertions - there seem to be multiple ways to do things and I'm never clear which is which.

As a sibling reply said, try to write cypress (or other similar product) tests not to rely too much on layout - I use html data attrivutes rather than text or Dom based selectors, so the tests can survive most redesigns, and if they don't, it's because the user journey has changed enough that we _should_ be changing the tests.

wilsonrocks··on Cypress: Fast, easy, and reliable testing for anything that runs in a browser
Did you try custom commands? I have some for more basic stuff like 'get data-value attribute for the element with data-name attribute of x' which I can use in any test.

That said, I find checking for specific values in the page against other page values to be really difficult so if you're doing that with the table... good luck!

wilsonrocks··on Cypress: Fast, easy, and reliable testing for anything that runs in a browser
cy.exec() lets you run general system commands iirc. Istr seeding a database with it before running tests, I think if that command fails with Nonzero, the test would fail.
wilsonrocks··on A QR code built from Emoji
I am similar, as are most people I know, yet it just seems to be the kind of thing that people think is great and that people love
wilsonrocks··on What it’s like inside your plane’s hidden ‘crew rest’
Iberia Airlines were scary when I had to have two extra flights with them including unplanned stops in Madrid and Cairo
wilsonrocks··on React Fundamentals: What I’m Learning
I use react all day and the thought of doing it without JSX chills me
wilsonrocks··on 7k MS-DOS Games playable in the browser
Stunts was so good. Ran it on my 1MB 386. You could record games and play them back from different angles.

You could design your own tracks and I remember finding a glitch if you raced the indycar at top speed towards the biggest ramp where it would fly into the air and be bound only by the top of the coordinate system. Great times (and I don't even like car games...)

wilsonrocks··on What to Say When You're Asked for Your Salary History
I think it's saying your current salary is five percent less than what you want for the new job?

They'd expect you to be wanting an increase in order to move?

wilsonrocks··on Signs Your Story Is Classist
Interesting example, and yes these cases are valid...

I think I should have explicitly rather than implicitly defined class as more broad than just 'has a lot of money' - these examples are kind of 'working class but became successful' rather than 'upper class'?

Edit - and then used that definition rather than just saying The Rich

wilsonrocks··on Sentimental Versioning
I work on a project where:

Patch - a build we do to be deployed to clients test environment that we don't control

Minor - a prod build for client

Major - reserved for when the client demands a complete redesign of the app

It works for us, for this project... And of course nobody else is depending on it

wilsonrocks··on Signs Your Story Is Classist
I don't think the rich are particularly held back by any classism they might experience.
wilsonrocks··on Full-Bleed Layout Using CSS Grid
Yeah, grid is pretty much not worth it imo, as you have to do so much differently. You can make flexbox work though.
wilsonrocks··on Full-Bleed Layout Using CSS Grid
Without wanting to diminish what you're saying, which makes a lot of sense - I feel like we should be trying to avoid complex layouts on mobile - at least in the browser.

And you're right that screen sizes can mess stuff up, Firefox/chrome mobile view on devtools doesn't always tell the full story... Got something working there and it was broken on my actual phone.

wilsonrocks··on Full-Bleed Layout Using CSS Grid
True - I'm lucky not to have to consider versions of IE prior to 11 on most projects I work on, and I can usually get things working there, although there's a flexbox thing that I always forget with IE11 that catches me out.

I stand by my comment if you don't have to do IE < 11 though.

wilsonrocks··on Full-Bleed Layout Using CSS Grid
I think a _lot_ of this is standardised now in the vast majority of browsers people use.
← PreviousPage 2 of 5Next →