{"componentChunkName":"component---src-templates-blog-post-jsx","path":"/weeks-7-8","result":{"data":{"post":{"title":"Weeks 7/8","slug":{"current":"weeks-7-8"},"_rawBody":[{"_key":"d9e47548ed5b","_type":"block","children":[{"_key":"aaf75cf852ff","_type":"span","marks":[],"text":"Vacation"}],"markDefs":[],"style":"h2"},{"_key":"76953a5f6b5f","_type":"block","children":[{"_key":"52a7024677c80","_type":"span","marks":[],"text":"Took week 7 off for a little family time. Not a whole lot of relaxing went on. Instead I spent a few days building a playhouse for the kids."}],"markDefs":[],"style":"normal"},{"_key":"770e527cf2a2","_type":"mainImage","alt":"A new playhouse for the kids","asset":{"_ref":"image-050baf749d1c033cad19d1b60aaf613e7fce2b25-782x1024-jpg","_type":"reference"},"caption":"A new playhouse for the kids"},{"_key":"a615bf4a1750","_type":"block","children":[{"_key":"d02fe921d4560","_type":"span","marks":[],"text":"Back to coding…"}],"markDefs":[],"style":"h2"},{"_key":"8b7b11ec7f17","_type":"block","children":[{"_key":"907d2676e3b00","_type":"span","marks":[],"text":"This week’s project has been a simple hangman game."}],"markDefs":[],"style":"normal"},{"_key":"b777c8c934e2","_type":"block","children":[{"_key":"c500ba11aa520","_type":"span","marks":[],"text":"It’s been the most involved project so far with multiple error messages, detecting a win and a loss, checking the user’s guess and so on."}],"markDefs":[],"style":"normal"},{"_key":"6d80f8f3e19f","_type":"block","children":[{"_key":"8ddb187e769d0","_type":"span","marks":[],"text":"One thing I’ve started to encounter as my mini-projects get slightly less mini is the need to better organize my code. This has led to a few Googling sessions on code refactoring etc. Much of it is beyond the scope of what I’m currently building, but it’s been good to start thinking about that."}],"markDefs":[],"style":"normal"},{"_key":"9164b56612c4","_type":"block","children":[{"_key":"75dfab6c59db0","_type":"span","marks":[],"text":"I’ve been able to go over my code and extract some things into smaller and reusable functions (for my alert messages for example)."}],"markDefs":[],"style":"normal"},{"_key":"e5574239bfe6","_type":"block","children":[{"_key":"fdc5ba9ce6730","_type":"span","marks":[],"text":"I imagine there’s still lots of room to make what I’ve done much cleaner and more efficient. I’ve still got fairly deeply nested conditional statements which make me think there must be a better way.\n"}],"markDefs":[],"style":"normal"}],"publishedAt":"2020-07-11T14:00:00.000Z","categories":[{"title":"Journal Entries"}],"tags":[{"value":"Projects"}],"mainImage":{"asset":{"fluid":{"base64":"data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAeABQDASIAAhEBAxEB/8QAGQAAAwADAAAAAAAAAAAAAAAAAAUGAQcI/8QAIxAAAQQCAQQDAQAAAAAAAAAAAQACAwQFESEGEhNxIkGRof/EABcBAQEBAQAAAAAAAAAAAAAAAAMGAQL/xAAhEQACAQMDBQAAAAAAAAAAAAABAgADBBETIVEFFCMyQf/aAAwDAQACEQMRAD8AxUp95A0E1r4aN/LvxOIsSZ3jwxGMffKaswErG7L/AOqAe+PyWuii+xk8MVVA0WoT04d2+XOQj7w8zdJOY+xPYXDTRyrKnjo5YduAK53wXVl2Ej5F3tX1Drm6yvyAUFJVoP5xkQLywrVd6Rl1ZpxtmIAaha2tdd2fM7cI37QgIYnIE4Xp1wBuZ//Z","aspectRatio":0.6706114398422091,"src":"https://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg?w=900&h=1342&fit=crop","srcSet":"https://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg?w=225&h=336&fit=crop 225w,\nhttps://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg?w=450&h=671&fit=crop 450w,\nhttps://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg?w=900&h=1342&fit=crop 900w,\nhttps://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg?w=1350&h=2013&fit=crop 1350w,\nhttps://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg?w=1800&h=2684&fit=crop 1800w,\nhttps://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg?w=2700&h=4026&fit=crop 2700w,\nhttps://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg 2720w","srcWebp":"https://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg?w=900&h=1342&fit=crop&fm=webp","srcSetWebp":"https://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg?w=225&h=336&fit=crop&fm=webp 225w,\nhttps://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg?w=450&h=671&fit=crop&fm=webp 450w,\nhttps://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg?w=900&h=1342&fit=crop&fm=webp 900w,\nhttps://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg?w=1350&h=2013&fit=crop&fm=webp 1350w,\nhttps://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg?w=1800&h=2684&fit=crop&fm=webp 1800w,\nhttps://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg?w=2700&h=4026&fit=crop&fm=webp 2700w,\nhttps://cdn.sanity.io/images/pwg13agp/production/d574820680d479cb5277f65c27b0b860b809d00a-2720x4056.jpg?fm=webp 2720w","sizes":"(max-width: 900px) 100vw, 900px"}}}}},"pageContext":{"slug":"weeks-7-8"}},"staticQueryHashes":["63159454"]}