petrapixel

petrapixel.yorniq.xyz

5,874,835 views
3,382 followers
674 updates
0 tips
guys, it's time. i'm making a beginner's javascript tutorial. it's going to be structured a bit differently than most javascript tutorials, so i need to know: what are some things you want to know how to do with javascript? :]
59 likes
petrapixel's avatar petrapixel 2 weeks ago

ideas i've had so far: how to make things happen on click, randomizing order of elements, random generator, dark mode

12 likes
8 likes
just-a-husk's avatar just-a-husk 2 weeks ago

writing code that isn't slow. Javascript bloat is a real issue, so some guidelines on efficiency/not overusing javascript would be helpful to many people if included

14 likes
tofutush's avatar tofutush 2 weeks ago

would using localStorage, eg 'how to remember information for next time' or something, be too advanced?

8 likes
petrapixel's avatar petrapixel 2 weeks ago

@tofutush i was actually planning to add that to the 'dark mode' section :)

4 likes
maxcrunch's avatar maxcrunch 2 weeks ago

I'm super stuck on JavaScript dates. it seems like no matter what I do it shows the date a day before the date I actually put in. I know this has something to do with time zones but I just can't figure it out lol.

3 likes
frutigeraeroarchive's avatar frutigeraeroarchive 2 weeks ago

calendar/analog clock

4 likes
just-a-husk's avatar just-a-husk 2 weeks ago

I second @maxcrunch their comment because i had to deal with that once for my job, javascript dates are super confusing for beginners

4 likes
zhongvie's avatar zhongvie 2 weeks ago

maybe dark mode could have a bundle with font toggles? since they both rely on localStorage, and font toggles also are a good way to learn to target elements (which still confuses me a little sometimes)

3 likes
myteaisgettingcold's avatar myteaisgettingcold 2 weeks ago

honestly? I usually just copy and paste java cause none of it makes sense to me lol!! so the basics and learning how to understand what the different commands mean would be an extremely helpful first step

2 likes
miss-david's avatar miss-david 2 weeks ago

ooouhh! I literally started wanting to code javascript since i've been using more and more snippets from w3schools. i'd like a tutorial on maybe the syntax to start, basic commands, and basic things you would need to know to begin building stuff like a to-do list or pomodoro timer?

1 like
edgelord567's avatar edgelord567 2 weeks ago

I've always seen people have really cool websites with draggable things and I think that would be very cool if you could make a tutorial on how to do that with javascript

5 likes
dew132's avatar dew132 2 weeks ago

cookies? (not cookies used by 3rd parties, i hope)

2 likes
jojo-website's avatar jojo-website 2 weeks ago

i think a tutorial on javascript event listeners and how to write functions would be good

2 likes
infinite-dreams's avatar infinite-dreams 1 week ago

If there's a way to load sidebar items on every page without having to use includeHTML and without breaking any of the Javascript functions of said sidebar items. I've read your tutorial on making the same layout for every page, but it's not compatible with Sadgrl's layout, which I use as a base. So I've been resorting to using includeHTML for all my layout items.

1 like
lunenuit's avatar lunenuit 1 week ago

I actually love the idea of the dark mode

1 like
crispypata's avatar crispypata 1 week ago

Garbage collection. Although, browsers nowadays has some built-in GC, I fear that my messy code could unexpectedly leak some unintended stuff. Maybe best practices on some declarations and destructors or something.

1 like
electric-dot-gay's avatar electric-dot-gay 1 week ago

echoing the local storage thing, just remembering accessibility preferences of users. i know you've said you'll add it : )

2 likes
badjoke's avatar badjoke 1 week ago

i think the hardest part of javascript (and programming in general) is translating real-world problem solving into a complete sequence of programming steps. a tutorial focused on that gap would be really helpful, since that’s always been my main struggle. especially with javascript relying so much on its environment like the dom.

2 likes
petrapixel's avatar petrapixel 6 days ago

@badjoke love this idea! have you got an example?

Website Stats

Last updated 2 days ago
CreatedNov 9, 2021
Site Traffic Stats

Tags

personal resources programming coding tutorials