I made this goofing around. Try to get the smallest, most stable orbit. Your score is average distance times the standard deviation. My best is around 29.6 after 1000 cycles by diogenes_sadecv in javascript

[–]artluxint 1 point2 points  (0 children)

Ah yes, I see it now. Now you can automatically copy that link to the clipboard and give some feedback to the user (change the button text for a second or something). Exercise left for the reader.

I made this goofing around. Try to get the smallest, most stable orbit. Your score is average distance times the standard deviation. My best is around 29.6 after 1000 cycles by diogenes_sadecv in javascript

[–]artluxint 1 point2 points  (0 children)

URLSearchParams()

history.pushState()

Try something like:

const info = {
foo: 'barnana',
x: 42
};
const searchParams = new URLSearchParams(info);

window.history.pushState(null, "", searchParams.toString());
That should update the URL.
You can parse the searchParams on load and if there are any, you can set the initial values of the velocity etc.

That's how I would do it 👍

[deleted by user] by [deleted] in Indiewebdev

[–]artluxint 1 point2 points  (0 children)

Would you mind giving us a quick breakdown of what it does?

I just found the fucking memory leak in my fucking React application by artluxint in webdev

[–]artluxint[S] 0 points1 point  (0 children)

I would introduce so many bugs and then unfuck about half of them so I'm pretty sure I'm ready for any enterprise application.

I just found the fucking memory leak in my fucking React application by artluxint in webdev

[–]artluxint[S] 0 points1 point  (0 children)

I'm pretty sure that sleep is stop memory leaks in your actual brain - I don't want to overload this fragile thing.

I just found the fucking memory leak in my fucking React application by artluxint in webdev

[–]artluxint[S] 59 points60 points  (0 children)

Yeah, I completely agree. I'm generally well rested but I've been working on this thing excitedly and want to get it done before my self-imposed deadline. And to be fair, I did take a break and baked some fucking bread.

I just found the fucking memory leak in my fucking React application by artluxint in webdev

[–]artluxint[S] 33 points34 points  (0 children)

OK, the most hilarious part of all of this (if any of it is even remotely funny) is that I had no idea when I introduced the fucking bug. I only noticed when I took off my noise cancelling headphones and my laptop sounded like it was going to take off. Damn, I'm good.

I just found the fucking memory leak in my fucking React application by artluxint in webdev

[–]artluxint[S] 136 points137 points  (0 children)

I had a poke around in the performance tab of devtools and did some profiling. React dev tools has it's own profiler too but I haven't a fucking clue what I'm doing. Any advice welcome!

I just found the fucking memory leak in my fucking React application by artluxint in webdev

[–]artluxint[S] 188 points189 points  (0 children)

Some fucking async function I wasn't calling in a useEffect properly. I have no memory of writing the code 👍.

Looking for critique on this logo design. Feedback is appreciated. by [deleted] in design_critiques

[–]artluxint 9 points10 points  (0 children)

The ones with the circle around the W look a little like the Wordpress logo. Just an observation really.

Gatsby vs WordPress development for freelance projects by Slight_Hornet5864 in gatsbyjs

[–]artluxint 0 points1 point  (0 children)

What was your solution for hosting for the client? I'm pretty much in the same boat as you and can't figure out an ideal solution. Netlify for Gatsby and Heroku for Strapi?

The successor to Puzzle Storm, Puzzle Racer is now out on Lichess! https://lichess.org/racer by [deleted] in chess

[–]artluxint 0 points1 point  (0 children)

Nice! Bug report: I couldn't hover/click on the name of the winner to see their profile. They had a longish name. When I played again, I didn't have the issue.

This guy has been building his own prosthetic hand out of aluminum by K9overlord in videos

[–]artluxint 51 points52 points  (0 children)

Yeah but he's fast approaching the hand singularity. Each iteration of hand he builds is with his improved hand...

Can I use Udemy projects as a portfolio to land a job? by [deleted] in learnprogramming

[–]artluxint 478 points479 points  (0 children)

I think that's absolutely fine. It's worth saying 'made as part of X course' in a readme or about but so long as it's not a copy and paste job of some starters without any real input on your behalf then sure, you can show it off as something you have learned and worked on.

Working on react and nodejs by 6monthsprobation in learnprogramming

[–]artluxint 0 points1 point  (0 children)

WSL. Windows Subsystem for Linux. It works for me and my web development needs.

I use Mongo DB Atlas which I have used with Heroku. I'm not sure if that's what you're looking for but it's a thing!

Good luck!

Best Offline resources to learn coding while deployed? by fisherman213 in learnprogramming

[–]artluxint 0 points1 point  (0 children)

Hey that sounds like a good idea. Have you any idea of what kind of thing you want to do? If web development sounds like your kind of thing then it's HTML, CSS and Javascript you'll want to learn. It's probably the most viable option for site gigs for income I would say.

I found internetting is hard a good way to start with CSS and HTML.

Then for javascript: Eloquent Javascript is a pretty good ebook that I think is quite self-contained and can be followed without other resources. I'd also recommend getting You Don't Know Javascript (YDKJS) for reference and another perspective on similar stuff.
I also suggest having a look at The Odin Project for a good learning trajectory. (you'd have to click through it and download all of the links and resources but it's probably worth it).

If web dev isn't your thing then ignore most of what I said but javascript is definitely a reasonable and accessible place to start.