Skip to content

Instantly share code, notes, and snippets.

View THEozmic's full-sized avatar
🏠
Working from home

Michael Ozoemena THEozmic

🏠
Working from home
View GitHub Profile
@Killavus
Killavus / ugly_code_refactoring.coffee
Last active March 14, 2022 17:52
Example of possible refactoring of badly written code - loading photos and making it grayed after click
Photos = {}
class Photos.App
constructor: ->
@gui = new Photos.Gui($("#photos-list"))
@backend = new Photos.Backend()
start: =>
@backend.fetchPhotos()
.done(