nice game! may i know what amount of js/css knowledge should i possess to be able to write sth like this? Eloquent JavaScript + any generic CSS book enough? thanks for making my evening.
thank you and glad you love it, those books are more than enough.
As for the css part, I would suggest you start by building the layout for the desktop first. Once the desktop version looks good, use media queries to adjust the design for mobile and tablet sizes.
As for js and html part, think in Components: Instead of one giant file, break your code into "modules" or "components". In my matchstick game, I built the "Puzzle Display" as a standalone component. This allowed me to reuse the exact same code for the main game, the puzzle creator, and the shareable play pages.
For specific effects or tricky logic, Google and LLMs (like ChatGPT) are great resources. Avoid "copy-pasting" code you don't understand. Always try to deconstruct how a solution works before adding it to your project. Use these tools as teachers, not just shortcuts.
Most importantly, enjoy what you are doing. Let me know if you need more info, I'm more than happy to help. Good luck to your coding journey.
Thank you so much for the wonderful advice! It's so refreshing to see humans act and be human-- helping each other despite not knowing each other.
For context, I've been stuck in tutorial hell for years! Part of it can be blamed on my ADHD, which is a serious disability if you want to finish any task. Still, I've been trying to make inroads at it... I've been reading several books at the same time, but stuck on chapter 3 or 4 in each. Then I begin looking for other books until I hit a block in it--then process restarts again.
You're right that LLMs do help a lot. I think I made more progress in the last six months than the past pre-LLM two years.
Thank you for sharing your story. Actually I didn't read any physical books to learn js and css, I learned both of them online and practicing them in my hobby projects, practicing is the only way that helps me finally grasp concepts of a programming/language and improve my coding skills using that specific language. I started learned css and js 17 years ago on https://www.w3schools.com, I decided to learn css just because I found it was so cool you can change the style of your website completely by replacing your css file with a different one. But later I used Java more frequently than other languages for 5 years due to my job need, and naturally I almost forgot all what I learned about js and css skill. It was around 2013/14 that js picked up my interest again due to the hit of nodejs at that time, so I turned to online to learn js again, this time learned it on https://javascript.info, yeah there are many resources to learning things, maybe nowadays people prefer LLMs, it's totally fine, just find the one that suits you. But remember you don't need to finish all those topics or concepts before you start your own project. Practices make your skill better if not perfect. Use those resources as references, you don't have to learn it chapter by chapter, everyone has different learning style. Programming is a long journey (and what any things else are not?), let your passion guides you, let you interest/hobby be your best teacher :) Best wishes ~
Thank you. It's something I am really passionate about. Given my 'day job' and 'family time' and battling an uphill swim against my ADHD, I am still happy with the progress I've made so far. I feel like I'm almost there.
There were effectively no free compilers in the 80s. If you had an expensive UNIX workstation it might come with one, but everyone in the micro world had to pay. Or they wrote in Assembly or a BASIC interpreter.
Granted, some were pretty cheap, at least by the early 90s.
Evolution is questionable science. i am not trying to be contrarian. it's not dogma nor it is established, scientifically proved theory. Proponents, usually when cornered, shrug and say: 'well, this is the best explanation we have so far'. That's not science. Best possible scenario is speculation by a group of people with mediocre thinking skills.
Mentioning this here because just like your comment, this 'theory' is usually slid inside arguments to make it appear as established science or fact. Kinda like this AI debacle.
if that's true and evolutionists are so confident then why did my comment get downvoted so much? Knowledge from DNA disproved EVolution-- maybe you should read more. Here's one: 'Philosophical Scientists'-- David Foster, OUP
If someone wrote a book claiming to have a "mathematical proof" that "1 + 1 = 3", and put a picture of god on the cover, would you buy it and promote it?
You know, you should definitely keep writing comments like the one you just did, because it will show the thinking, intelligent readers what kind of people support Evolution theory... Thanks, I guess?
The book you disparaged is written by a real scientist and published by Oxford Uni Press. They are smarter than you, and if it were 1 + 1 = 3, OUP wouldn't have published it. Even if we disregard all this, the fact that you judged a book without reading it says a lot about your critical thinking skills.
Actually, this 'very large group of people'--by definition [that they believe Evolution 'theory'] have pigeon-holed themselves as a certain type, hence their existence as a 'group'. I think the irony is that you didn't realize this.
- In the 1940s, ~80% of kids were trained by their 1st birthday
-By 2004, the average completion age was 37 months (over 3 years old)
-That extra year of diapers = ~$3.1 billion annually for the industry
-A pediatrician named Brazelton popularized "wait until they're ready" advice in the 60s — and later became a paid Pampers spokesperson, which is... a conflict of interest
-Diaper companies responded by making bigger and bigger sizes (up to 65 lbs!)
Look at the books on programming in the last 15 years--none teaches how to program and problem-solve.
reply