Code Monkey home page Code Monkey logo

Comments (4)

bartmichu avatar bartmichu commented on July 20, 2024

And also since the modules can be minified to save the memory, I wonder what is your take on this.

Does it still make sense to manually obfuscate code (no spaces, new lines) etc to make it as small as possible? Or is it better to write readable code for these who want to learn/analyze and then serve a minified version to others?

from espruinodocs.

gfwilliams avatar gfwilliams commented on July 20, 2024

There was actually a bug for this here: espruino/Espruino#209

I suppose I could link to the www.espruino.com/Performance page? most of the performance-related stuff would be common.

The current 'template' module on that page is designed such that it'll minify down really well (at least the way we do it at the moment). However I guess if people write code in an inefficient (for Espruino!) way, minification won't help with that at all!

from espruinodocs.

bartmichu avatar bartmichu commented on July 20, 2024

Yes, I think the performance page should be linked in the Writing Modules tutorial, it has some really helpful and JS specific information.

But I was also thinking about something formal like Espruino/CONTRIBUTING.md i.e. do this, do not do that. Module base is growing (yes!) but everyone uses whatever style he likes which doesn't help if you are using linters or more advanced IDE.

I guess if one analyse the module example then he can figure out: oh two spaces, semicolons etc but it's not really obvious.

from espruinodocs.

bartmichu avatar bartmichu commented on July 20, 2024

Looks like it moved to #475.

from espruinodocs.

Related Issues (20)

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.