Comments (4)
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.
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.
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.
Looks like it moved to #475.
from espruinodocs.
Related Issues (20)
- Bangle.setLCDPower more detail
- Typo under StorageFile Class description HOT 1
- Buttons tutorial about the rising edge not correct anymore (?) HOT 1
- tutorials/Web Bluetooth Dashboard.md HOT 1
- byte alignment in imagemagick HOT 2
- tutorials/Typescript and Visual Studio Code IDE.md
- Dot and dash in Font7x11Numeric7Seg doesn't work in Bangle.js 2 HOT 1
- Bangle 2 - get to number HOT 1
- tutorials/Tiny Word Clock.md HOT 10
- 404 link on https://www.espruino.com/Bangle.js+Development HOT 1
- How to connect two puck buttons at the same time ? HOT 2
- Gadgetbridge docs doesn't document "Bluetooth" HOT 1
- tutorials/Bangle.js App Settings.md HOT 1
- Tutorial Enhancement: Add Data Streaming for Heart Rate Data, updating a graph HOT 1
- Bangle2.js Firmware Source Code and Hardware Schematic HOT 3
- [tutorials/BLE Advertising.md] Python section, not using sudo with pip HOT 1
- STM32F4DISCOVERY with different accelerometer HOT 2
- Data Streaming To GCP HOT 1
- [Hardware Reference - SetUI] HOT 3
- info/Compilation.md HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espruinodocs.