top of page

Found a Tutorial of a hangman game this evening.

I wasn't happy with their final code.


The repeat of guesses was only found for letters already in the word, not failed guess.

Time delays in the code that were annoying.

Code duplication.

The wording delivered to the user was not as nice as it should have been.


I made it better.


https://github.com/vchealy/python_hangman

 
 
  • Writer: VC Healy
    VC Healy
  • Aug 29, 2020
  • 1 min read

After a lot of down-time whilst I made a few repairs to my van and got a replacement car for my Dad. I managed to squeeze in some Coding,


I had a chat with Bob @ PyBites and have been interested in an intensive course that would involve a lot of coding in Python, Django and whatever else.


As I hadn't really done anything too heavy before, I thought that now I have the basic setup of a Django project in my head I would follow through a tutorial by Corey Schafer and change it to my liking as I went through it. Changing the colour theme was a must to start with, the CSS was easy enough, using Bootstrap 4 I will have a look deeper into that.


A couple of the forms, at the point in the tutorial, didn't have functionality that I thought that it should have.

Editing a Post didn't have a Cancel option to return to the Home page. In the Update option, there was only an option to Post. If I made a hash of the edit I would want a Cancel to get me out of there and back to the edit options.



So learning about Django, seeing functionality that I think was missed and enjoying coding.

 
 
  • Writer: VC Healy
    VC Healy
  • Aug 23, 2020
  • 1 min read

I have been playing around with a basic set up of a web app written with Django.

A lot of deletes, rewrites etc until I sort of got to understand how I broke some things.


The one big take away from this was settings.py.Debug appeared to have some random effects to the template in both the app and the admin gui.


 
 

© 2020 by Vincent Healy. Proudly created with Wix.com

bottom of page