GithubHelp home page GithubHelp logo

.py to PDF about programming-for-kids HOT 6 CLOSED

jackdoe avatar jackdoe commented on May 19, 2024
.py to PDF

from programming-for-kids.

Comments (6)

jackdoe avatar jackdoe commented on May 19, 2024

idk, in general i dont use syntax highlighting at all (global-font-lock-mode 0), and i teach her without syntax highlighting as well, i dont like how colors make you read in a different way, but maybe other kids will find it beneficial

from programming-for-kids.

colevandersWands avatar colevandersWands commented on May 19, 2024

I'd never heard that before, interesting. What don't you like about how it makes you read the code?

Maybe a script with a flag? --font-lock

from programming-for-kids.

jackdoe avatar jackdoe commented on May 19, 2024

just the syntax colors have opinions that are not my opinions neither the writer's opinions :)

for example, just read this:

// the code will run twice
bool panic  = true
while (true) {
    panic = !panic;
    if (panic) break;
}
// the code will run twice
bool panic  = true
while (true) {
    panic = !panic;
    if (panic) break;
}

without syntax highlighting it is much clear what is important (at least for me), with highlighting it seems like the keywords are more prominent than panic = !panic

i think its a personal thing, so i dont have super strong opinion about it, i just dont like it, it pulls my attention away somehow

also comments are just code if you dont use highlighting.

from programming-for-kids.

colevandersWands avatar colevandersWands commented on May 19, 2024

I see what you mean about the panic = !panic. Just so used to reading colored code I hadn't thought about it. thinking back on it I can remember plenty of times when coloring only changed a few key words and makes everything else look less important.

Now I want to try this in class too - plain text programs

also comments are just code if you dont use highlighting.

🧐 ... 👍

from programming-for-kids.

jackdoe avatar jackdoe commented on May 19, 2024

i added extract.py to extract all code snippets in .txt files into the examples/ directory

thanks for the suggestion!

from programming-for-kids.

colevandersWands avatar colevandersWands commented on May 19, 2024

This is really neat, simple and effective.

from programming-for-kids.

Related Issues (7)

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.