Git Product home page Git Product logo

handlebars-morning-challenge's People

Contributors

jbarget avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

handlebars-morning-challenge's Issues

Extend the challenge with further reading about .hbs files

Handlebars files have the extension .hbs, in this challenge, perhaps suggest changing the file format of message.html to message.hbs, that way you can use syntax highlighters specific to hbs files to easier readability, and change the source variable as follows;

var source = fs.readFileSync(__dirname + "/message.hbs")

Need some explanation of what's going on

Either some info in the readme or comments on these lines would be useful, otherwise people have no idea what the tests are testing, what the functions are doing etc.
https://github.com/Jbarget/handlebars-morning-challenge/blob/master/handlebars/handlebars.js#L4-L5

Maybe comments describing what the functions do would be useful as well, e.g:
'each function generates html from the template using the given context variables'

I know this may seem obvious but I think it is much better to explain stuff explicitly, when we saw this most people had no idea what was going on.

demonstration of "best practices"

You mention that this isn't the way you would expect students' code to look:

NB. I know the code isn't very dry but this is just for demonstration purposes!

But maybe the explanation could be a bit clearer, about why you have chosen not to make it dry? And/or maybe you could add a DRY branch, just to show what this would look like?

This is particularly timely, since there have been similar references in other workshops, and FAC10 have expressed frustration around being told "this is not the way you should do it", with no offering of how it should/could be done, or why mentors are doing it differently.

See number 5 under Go in their latest stop go continue, which was particularly in reference to these lines in a postgres workshop, but apparently there have been others.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.