Details
-
AboutSenior Digital architect - High-tech blogger - DCX & IoT - Enthusiast Photographer - Gadget & innovation addict - Raspberry π & Arduino - SlashGen - Father
-
SkillsJS, node, python, perl, Java, C#, Web, android,
-
LocationVernon, France
-
Github
Joined devRant on 7/15/2016
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
Guys, which code editor is better for PHP/JS/HTML/CSS? I mean, with more addons, code completion, and so on..
Atom? Sublime? Brackets? VS Code?
Thanks!21 -
the best way to learn programming is not by just reading books and coding basic examples. it is to take up a project which seems impossible and start doing it piece by piece, with the help of Google and stack overflow14
-
Spaces Vs Tabs - A real world case.
So one of the menial tasks I was given here was to take a pretty mock and turn it into an HTML email template. Needless to say, I hate emails and HTML.
After many weeks of trial and error, rejection and tweaks, we're doing our final tests when someone noticed that Google's clients are chopping off the footer and saying "View Full Email".
A few searches yield that Google has a 102KB cut off for email size. We did some checks and found that we were at 104KB. I immediately thought it was my CSS inliner being a little too verbose, but as I went in to edit things, I noticed that the file was intended with spaces!
Now I'm a fan of Silicon Valley, and I recalled an episode from this past season where Richard mentioned something about saving file size by using tabs. I had never really considered that point.
So I went back into VSCode and told it to convert all of the individual templates that make up this giant email to indent with tabs...
The file size dropped from 104kb to 82kb.
I wasn't very polarized on the Tabs vs Spaces debate, but this here has given me a nice real world example as to why tabs rule.20