Happy Coding

Some Reflections

So I was just going through the site.
In contributing it is said “HappyCoding.io contains a feature that allows users to switch between light and dark themes, so try to generate two images: one for the light theme, and one for the dark theme.”

But I can’t seem to find a option to switch between dark and light theme.

`const backgroundUrl = "/images/backgrounds/" + backgroundObj.img + "-light.png";`

Here it is appended to be light by default.
Also
https://github.com/KevinWorkman/HappyCoding/blob/gh-pages/js/background-randomizer.js
has been moved to main.js for people who want to reference their contribution.

p5 doesn’t seem to have much documentation online. Is there any way to create images via python(tutorial and stuff). I see that p5 editor has python module available.

I did some changes and created this dirty image. :grimacing:
test-light

And yes, in mac we have to double click on the editor window to save it. Was struck for a long time with it.


I recently heard of this site https://www.codewars(dot)com . Is it good to use for improving our skill? @Kevin.

You’re right, I removed the dark theme a while ago, but forgot to update the wiki. That should be fixed now.

p5 doesn’t seem to have much documentation online.

No way! p5.js has great documentation here:

https://p5js.org/reference/

Or if you’re talking about Processing:

https://processing.org/reference/

Of course, there are Processing and p5.js tutorials available here as well!

I did some changes and created this dirty image.

Looks pretty cool! If you’re interested in contributing it as a background, I’d try to make it tile and be lighter. Or if you’re just playing around for fun, that’s cool too!

I recently heard of this site https://www.codewars(dot)com . Is it good to use for improving our skill?

I’ve heard of it, but I’ve never used it myself. I’m personally not really into these coding competition sites, but I know a lot of people really enjoy them. So it really depends on what motivates you more than anything.

https://github.com/KevinWorkman/HappyCoding/blob/gh-pages/js/background-randomizer.js =throws 404

You have to update this too in the wiki .

If you like codewars, it’s worth noting there are a bunch of similar sites out there. You might google “competitive programming sites” for a bunch of results. They’re not really my thing, but definitely a lot of resources out there.

1 Like

@Kevin I created a pull request just now. I will be away from the forum for some time now to work on some projects. But I will be reading the blogs. Bye. :grin:

1 Like