DEV Community

Cover image for A Dice Game... as it was then and as it is now #reviewyourself
MMJ
MMJ

Posted on

1 1

A Dice Game... as it was then and as it is now #reviewyourself

A few days ago, I found an old folder on my pc that dates to the time when I was starting to study web development.
Inside this folder I found an exercise I made up to practice which consisted in developing a dice game for two players.
Obviously, it's a very simple code, but looking back at it I was surprised the way I developed it and I realized how different I am now both as a developer and as a person.
The interesting thing, as well as revealing the use of bad practices, was reviewing the logic with which I faced problems and found solutions, following paths that I hardly recognize as "mine".
So, I decided to put on codepen both that old version of the game and a new developed version as I would develop it now, leaving the frontend scaffolding intact, changing only the JS logic.
I did this just for fun as now, being a backend developer, that’s not what I’m focused on, but I think this can be a good exercise in general and can help to understand yourself, looking from the outside and observing your own path to improve.

#reviewyourself

If you get inspired from this and post something alike, please use the same hashtag and let me know in the comment section :)

Here are the two versions of the game:

Old Version

New Version

SurveyJS custom survey software

Build Your Own Forms without Manual Coding

SurveyJS UI libraries let you build a JSON-based form management system that integrates with any backend, giving you full control over your data with no user limits. Includes support for custom question types, skip logic, an integrated CSS editor, PDF export, real-time analytics, and more.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay