EcoConception Logicielle
9.0K views | +5 today
EcoConception Logicielle
Green IT, performance web, économies d'énergies, bref : éco-conception logicielle !
Curated by Mickael Ruau
Your new post is loading...
Your new post is loading...

Popular Tags

Scooped by Mickael Ruau
September 19, 2013 11:54 AM
Scoop.it!

Le code CSS et Javascript inline saimal

Le code CSS et Javascript inline saimal | EcoConception Logicielle | Scoop.it

Cet article est une « craduction »(1) de l’excellent article Why Inline CSS And JavaScript Code Is Such A Bad Thing dans lequel Robert Nyman explique pourquoi il est bon de séparer la structure HTML, la présentation CSS et l’interactivité Javascript dans le processus de conception d’un site web. Chaque partie devrait faire l’objet d’un fichier distinct où l’intrusion des deux autres devrait être limitée au strict minimum.

 

 

Mickael Ruau's insight:

Mise à part les notions de propreté du code et de facilité de lecture en général, il existe d’autres raisons moins subjectives :

Poids de la page HTML — En vous débarassant des éléments en ligne superflus, vous optimisez vos fichiers.

Caching impossible — Le code HTML n’est pas mis en cache contrairement aux fichiers CSS ou Javascript externes. Les éléments en ligne sont donc chargés systématiquement : la présentation et les intéractions présentes dans votre code HTML ne seront pas chargées aussi rapidement que si elles l’étaient à partir du cache du navigateur.

Faible accessibilité — Les interactions Javascript en ligne comme l’événement onclick vu plus haut, s’appliquent souvent à des éléments qui ne possède pas de comportement associé par défaut (un lien possède un attribut href permettant d’accéder à la ressources désirée, etc.) : votre lien ne mènera nulle part si Javascript n’est pas activé.

Difficulté à maintenir le code — Tous les développeurs web seront d’accord pour reconnaitre qu’il est plus facile de s’y retrouver lorsque le code est centralisé plutôt qu’éparpillé au quatre coins du site web.

No comment yet.
Rescooped by Mickael Ruau from HTML5 and CSS3
September 19, 2013 11:48 AM
Scoop.it!

HTML5 vs. Apps: Where The Debate Stands Now, And Why It Matters

HTML5 vs. Apps: Where The Debate Stands Now, And Why It Matters | EcoConception Logicielle | Scoop.it
HTML5 has become the third "mobile platform," but faces performance obstacles.

Via Miriam Stenson
No comment yet.
Scooped by Mickael Ruau
September 19, 2013 11:41 AM
Scoop.it!

High Performance Networking in Google Chrome - igvita.com

High Performance Networking in Google Chrome - igvita.com | EcoConception Logicielle | Scoop.it
Chrome gets faster as you use it. Chrome learns the topology of the web, browsing patterns, and critical resources on every page to optimize your browsing! A look under the hood of how it all comes together...
Mickael Ruau's insight:
The following is a draft chapter for the upcoming "The Performance of Open Source Applications" (POSA), a sequel to The Architecture of Open Source Applications. POSA is a collection of essays about performance optimization, designing for performance, managing performance as part of a development process, and more. The book will be published in Spring 2013 under a Creative Commons license with royalties going to Amnesty International.
No comment yet.
Scooped by Mickael Ruau
September 19, 2013 11:31 AM
Scoop.it!

Numbers Every Programmer Should Know By Year

Latency Numbers Every Programmer Should Know
No comment yet.
Scooped by Mickael Ruau
September 19, 2013 2:50 AM
Scoop.it!

Turning Drupal 7 into a Static Site Generator

Ex Ratione runs on Movable Type, which for those unfamiliar with the platform is essentially a web-based tool for producing and managing a static (or largely static) web site. To put it another way, Movable Type is a web application written in Perl for the purpose of producing a web application written in PHP - because there can never be too many layers of abstraction. While it is true that a database is involved in this process, the primary end product of creating a web page through the Movable Type administration interface is a nothing more than a minimal PHP script file: largely HTML, and with a little scripting around the edges.

Mickael Ruau's insight:

Many Movable Type sites dispense with the scripting entirely and just turn out flat HTML files. Either way, the result is what amounts to a static site: all the content is sitting in HTML or HTML-plus-a-little-bit-of-scripting files, and the content management system is just there to organize those files - with the help of a database that contains another copy of that information, sufficient to reconstruct and reorder the site if necessary.

No comment yet.
Scooped by Mickael Ruau
September 19, 2013 2:45 AM
Scoop.it!

Octopress

Octopress is a framework designed by Brandon Mathis for Jekyll, the blog aware static site generator powering Github Pages.
To start blogging with …
Mickael Ruau's insight:

To start blogging with Jekyll, you have to write your own HTML templates, CSS, Javascripts and set up your configuration. But with Octopress All of that is already taken care of. Simply clone or fork Octopress, install dependencies and the theme, and you’re set.

What’s new in 2.0?

Short answer: Everything. Octopress is now based on mojombo/jekyll has been completely rewritten from the ground up with a mountain of goodies.

Octopress comes with:

A semantic HTML5 templateA Mobile first responsive layout (rotate, or resize your browser and see)Built in 3rd party support for Twitter, Google Plus One, Disqus Comments, Pinboard, Delicious, and Google AnalyticsAn easy deployment strategy using Github pages or RsyncBuilt in support for POW and Rack serversEasy theming with Compass and SassA Beautiful Solarized syntax highlighting

Be sure to check out the documentation to get the full scoop.

No comment yet.
Scooped by Mickael Ruau
September 19, 2013 2:40 AM
Scoop.it!

Reverse a Multibyte String in PHP - Kevin van Zonneveld

Reverse a Multibyte String in PHP - Kevin van Zonneveld | EcoConception Logicielle | Scoop.it
Reverse a Multibyte String in PHP Oct 9th, 2012 | Comments PHP’s strrev
is not safe to use on utf-8 strings because it reverses a string
one …
Mickael Ruau's insight:

In our tests, the above function was factor 5x more efficient in regards to memory consumption than the preg_match_all solution.

No comment yet.
Scooped by Mickael Ruau
September 18, 2013 4:32 PM
Scoop.it!

Safari Image Delivery Best Practices: Reducing HTTP Requests with Sprite Sheets

Safari Image Delivery Best Practices: Reducing HTTP Requests with Sprite Sheets | EcoConception Logicielle | Scoop.it
Describes how to properly serve images to displays of all resolutions.
No comment yet.
Scooped by Mickael Ruau
September 18, 2013 4:26 PM
Scoop.it!

TUTORIAL : Transformer son site pour iphone/ipad en appli - Afficher le sujet • Panophoto.org

TUTORIAL : Transformer son site pour iphone/ipad en appli - Afficher le sujet • Panophoto.org | EcoConception Logicielle | Scoop.it

Comme promis, voici un petit tutoriel pour vous permettre de transformer votre site internet en "web app" pour iphone ou ipad (la méthode est la même). Ce tuto est de niveau avancé, il demande un minimum de connaissantes en dev. web (en particulier Javascript). J'essayerai malgré de rester le plus simple possible.


Mickael Ruau's insight:

C'est quoi une web app ? 
Il y a 2 types d'applications sur iphone/ipad : les applications natives et les web apps.
L'application native est celle qui utilise les langages de programmation propres à la plateforme, que l'on achète/telecharge via l'App Store.
La web app est un site internet "déguisé" en app native, que l'on consulte une première fois avec Safari et qu'on peut garder en mémoire dans l'appareil et consulter à volonté. 
Les avantages sont multiples : 
- Pas besoin de connaissances supplémentaires en prog. par rapport au développement d'un site internet classique.
- Pas besoin de passer par Apple...
- Une fois gardée dans l'appareil, l'utilisateur ne voit pas la différence (icône sur le board, disponible offline, affichage en plein-ecran)

No comment yet.
Scooped by Mickael Ruau
September 18, 2013 3:09 PM
Scoop.it!

Caesium - Réduire le poids d'une image sans perte de qualité - La Ferme du web

Caesium - Réduire le poids d'une image sans perte de qualité - La Ferme du web | EcoConception Logicielle | Scoop.it
Caesium est un logiciel open-source qui va vous permettre de compresser les images jusqu'à 90%. Caesium supporte les principaux formats de fichiers utilisés sur le web : JPG, JPE
No comment yet.
Scooped by Mickael Ruau
September 18, 2013 2:37 PM
Scoop.it!

Phrozn - Un générateur de sites statiques pour PHP - La Ferme du web

Phrozn - Un générateur de sites statiques pour PHP - La Ferme du web | EcoConception Logicielle | Scoop.it
Phrozn est un générateur de sites statiques basé sur du PHP permettant de gagner en temps de développement, en performances et en maintenabilité.
Mickael Ruau's insight:

Il vous est sans doute déjà arrivé de vouloir créer rapidement un site web avec des fonctionnalités basiques: Blog, documentation, site d'annonce ...

Grâce à Phrozn, vous allez pouvoir générer en une ligne de commande toute la structure de votre site web statique.

Vous avez l'habitude de développer avec un moteur de templates de type Twig ou Smarty, tant mieux, phrozn permet justement de découper les couches de présentation en utilisant du PHP, puis d'assembler le tout (CSS, LESS, JS, templates) en une page HTML statique.

Autant vous dire que les performances seront au rendez-vous ! Pas besoin d'utiliser un Wordpress ou un framework de type Symfony qui ne fera qu'utiliser du CPU / RAM pour pas grand chose (Si votre site a pour vocation d'être simple).

Un avantage est de pouvoir gérer son contenu depuis son éditeur de texte / code préféré, et en une ligne de commande tout compiler pour mettre à jour le site. Pratique pour les alergiques au textarea ou editeurs riches.

 

No comment yet.
Scooped by Mickael Ruau
September 18, 2013 11:18 AM
Scoop.it!

Sequence.js and Sequence Themes

Sequence.js and Sequence Themes | EcoConception Logicielle | Scoop.it
Sequence.js is a refreshing and modern take on website sliders. Using just HTML and CSS, Sequence allows you to create your own responsive slider with unique transitional styles. No instance of Sequence need ever be the same.
No comment yet.
Scooped by Mickael Ruau
September 18, 2013 11:07 AM
Scoop.it!

jARIA jQuery Plugin — Ajoutez ARIA dans vos applications web

jARIA jQuery Plugin est basé sur enable.js développé par IBM pour Mozilla.
Mickael Ruau's insight:

L’accessibilité pour les contenus web nécessitent des informations sémantiques concernant les widgets, les structures et les comportements pour permettre aux technologies d’assistance de véhiculer l’information appropriée aux personnes à mobilité réduite (ndt : on ne parle pas de déficiences mentales, vous avez remarqué ?). Cette spécification fournie une ontologie des rôles, états et propriétés qui définissent les éléments de l’interface utilisateur susceptibles d’améliorer l’accessibilité et l’interopérabilité des contenus web et des applications en général. Ces élément d’accessibilité ont été conçus pour être utilisés au niveau du marquage HTML.

No comment yet.
Scooped by Mickael Ruau
September 19, 2013 11:52 AM
Scoop.it!

jQuery — Attendre le chargement d’une image avec la méthode load()

Une des forces de jQuery est de permettre le lancement d'une fonction dès le chargement du DOM en mémoire, sans attendre que toutes les images soient affichées, par exemple.
No comment yet.
Scooped by Mickael Ruau
September 19, 2013 11:43 AM
Scoop.it!

Offline First – A better HTML5 User Experience » Joe Lambert

This year at Full Frontal, offline enabled web site/apps were a recurring theme. Paul Kinlan gave an excellent talk entitled ‘Building Web Apps of the future. Tomorrow, today and yesterday’ (his slides are available here), in which he compared the ‘offline’ user experience provided by the top 50 or so iOS and Android apps with that of popular web sites/apps.

Mickael Ruau's insight:

Needless to say, the native apps fared better and more gracefully degraded when no internet connection was available. Offline is a feature and it’s crucial we start to consider it from the start of a project as apposed to adding support later in the development lifecycle. At Rareloop we’ve been focussing on adding offline support to our apps from the start. Most notably the FormAgent mobile clients where designed from the outset to support offline access, to allow for use when no connectivity was possible and to transparently sync up data when internet is available. The following are guidelines I’ve found helpful.

Note, I’m not going to discuss how to cache your app assets (e.g. JavaScript & CSS). Whether you’re using App Cache or a hybrid solution (like PhoneGap) it’s not really important, the guidelines below are more focussed on how to engineer your app to enable sensible offline access and assume your core assets are already readily available via some mechanism.

 
No comment yet.
Scooped by Mickael Ruau
September 19, 2013 11:35 AM
Scoop.it!

5 minutes of I Can Smell Your CMS // Speaker Deck

5 minutes of I Can Smell Your CMS // Speaker Deck | EcoConception Logicielle | Scoop.it

A lightning talk version of a talk about the dangers of over-engineered CMS platforms.

 

Mickael Ruau's insight:

This 5 minutes talk was given at The London Content Strategy Meetup: http://www.meetup.com/content-strategy-london/events/116285272/

No comment yet.
Scooped by Mickael Ruau
September 19, 2013 2:52 AM
Scoop.it!

Mickgardner: An Introduction to Static Site Generators

A Static Site Generator is a program, that generates an HTML website as an output. ThisHTML website is then served through your web server, just like the old’n’days. This is usually achieved using template languages and code that separates out the layout of the website from its content and styles.

Mickael Ruau's insight:
Advantages of a Static Site Generator?Security – There’s no database layer, or rails/pylons layer of code so security excellent.Performance – Under load, less memory / cpu usage to serve your website, so your website stays up longerHave a copy of your content separate from your serverEasily move your website to another host – Copy and paste the HTML and re-route the domain name should you have one.Easily choose website hosting – You don’t have to worry about which technology they use, because you only need to serve HTML.-Website Hosting is cheaper.Disadvantages of a Static Site GeneratorYou can’t update your website unless you’re at your computer where the static site generator software is installedYou can’t have local comments, pingbacks, non-google site wide search, contact us forms (without some dynamic code etc)
No comment yet.
Scooped by Mickael Ruau
September 19, 2013 2:47 AM
Scoop.it!

Jekyll • Simple, blog-aware, static sites

Jekyll • Simple, blog-aware, static sites | EcoConception Logicielle | Scoop.it

Transform your plain text into static websites and blogs.

Simple

No more databases, comment moderation, or pesky updates to install—just your content.

How Jekyll works →Static

Markdown (or Textile), Liquid, HTML & CSS go in. Static sites come out ready for deployment.

Jekyll template guide →Blog-aware

Permalinks, categories, pages, posts, and custom layouts are all first-class citizens here.

Migrate your blog →Get up and running in seconds.
Mickael Ruau's insight:
Get up and running in seconds.

Quick-start Instructions

~ $ gem install jekyll

~ $ jekyll new my-awesome-site

~ $ cd my-awesome-site

~/my-awesome-site $ jekyll serve

# => Now browse to http://localhost:4000

 

No comment yet.
Scooped by Mickael Ruau
September 19, 2013 2:41 AM
Scoop.it!

File Uploading without a Server - Kevin van Zonneveld

File Uploading without a Server - Kevin van Zonneveld | EcoConception Logicielle | Scoop.it
File Uploading without a Server Sep 3rd, 2013 | Comments This article was featured on Hacker News. More comments there. More and more sites are …
Mickael Ruau's insight:

More and more sites are written in flat HTML. Hosted on GitHub pages, S3, etc. The advantages are clear: ridiculously low to no hosting costs, it can hardly ever break, and with things like Jekyll and Octopress it can still be fun to maintain. And with JavaScript frameworks such as Angular you could build entire apps clientside. The downsides are clear too: no central point of knowledge makes interaction between users hard.

However with services like Disqus, and (my own startup) Transloadit, it gets more and more feasible to just run a flat site and have external services cover for not running serverside code and a database yourself.

In this post I’m going to show you how easy it is to make file uploading possible even if your site is just a single page of HTML.

No comment yet.
Scooped by Mickael Ruau
September 18, 2013 4:51 PM
Scoop.it!

Site Optimization Tutorial - Lesson 1 | Webmonkey | Wired.com

Site Optimization Tutorial - Lesson 1 | Webmonkey | Wired.com | EcoConception Logicielle | Scoop.it
A picture's worth a thousand words. An old saying, but true enough on the web where you can transfer chapters of text in the time it takes to download just
No comment yet.
Scooped by Mickael Ruau
September 18, 2013 4:28 PM
Scoop.it!

Tutorial: Building a website for the iPhone

Tutorial: Building a website for the iPhone | EcoConception Logicielle | Scoop.it

Well, we did promise we'd get around to a tutorial eventually, so here you have it! The Engage Interactive school for all things internet proudly presents: How to build a website with orientation specific content especially for the iPhone!

 
Mickael Ruau's insight:

Just like any other web browser, Safari needs all the usual html code at the top and bottom of the page and there's still no harm in throwing a few keywords in for good measure as Google will still be able to spider your content. In addition there are also some iPhone specific meta tags you can use to control the way content is rendered. I have an example of what the code in the head tag should look like below.

  
No comment yet.
Scooped by Mickael Ruau
September 18, 2013 3:35 PM
Scoop.it!

App Framework 2.0

App Framework 2.0 | EcoConception Logicielle | Scoop.it
The definitive javascript library for mobile HTML5 app development
Mickael Ruau's insight:

App Framework is a blazingly fast query selector library built from the ground up for mobile devices. Recognizing the previous groundwork that existing frameworks like jQuery* and ZeptoJS* laid out, we identified ways to speed up performance, while only implementing the necessary API's. We currently support over 60+ API's for App Framework with jQuery* compatible syntax. For a full list, go here

No comment yet.
Scooped by Mickael Ruau
September 18, 2013 2:38 PM
Scoop.it!

Phrozn - Static Site Generator for PHP

Phrozn - Static Site Generator for PHP | EcoConception Logicielle | Scoop.it

Phrozn is static site generator written in PHP.


The idea is very simple:

You write text files in your favorite format (Textile, Markdown, Twig, Haml etc), in your favorite environment (Vim, Vim, or Vim etc), spice them with styles (again, in format of your choice - CSS, LESS, or SASS), feed all this to Phrozn, and it will create static HTML site ready to be published.

To get you up to speed Getting Started guide has been written.

 


Mickael Ruau's insight:
Features:§Complete: Supports input files in Twig, Textile, Markdown, and LESS format.Extensible: Supported text processors are not enough for you? Create your own - it is really simple!Easy to use: Only couple of commands to learn and you'll be able to use Phrozn efficiently in no time.Modern: No love for pre PHP 5.3 hosts, Phrozn requires PHP 5.3+ and relies on it heavily.Robust: Phrozn is strictly tested. Check code coverage and see for yourself!Solid Foundation: Whenever possible wheel reinvention was avoided. Phrozn uses code from well-written and well-known projects including PEAR, Zend Framework 2, Symfony 2, Twig, Pirum.Why Phrozn?§

For those who are new to static site generators, here is why you may want to use them:

Fast: Static HTML pages load blazingly fast.Safe: Static pages are inherently safe. No code executed server-side.Trivial Deployment: No need to worry about server-side configuration - any web-server will do.Version Control: Since input pages are simple text files, you can version them, and re-generate whole site from any point in the past.Format Agnostic: Enter text in your favorite format, in your favorite text editor.

Ok, then again why Phrozn?

Written in PHP, extensible in PHP.Exemplar of PHP 5.3 code.Designed with extensibility in mind.Alternatives§

Phrozn is not the only generator in the block, but definitely the best one written in PHP :) 

Seriously, Phrozn was created because I couldn't find any decent static site generator in PHP. There are plenty of them written in Python and Ruby though, and I reviewed their source code when implementing Phrozn.

So, on the shoulders of giants we stand:

Jekyll - Well known generator used by such services as GitHub.Hyde - Python port of Jekyll generator.Bonsai - Very simplistic but still extremely useful little script.Webgen - Quite sophisticated generator.Cyrax - Generator based on Jinja2 templates.
No comment yet.
Scooped by Mickael Ruau
September 18, 2013 11:24 AM
Scoop.it!

Content Switcher — Un diaporama qui fonctionne aussi sans Javascript

Content Switcher est un Slider avec un menu de navigation qui a la particularité de fonctionner parfaitement en l'absence de Javascript et de permettre l'utilisation du bouton retour du navigateur.
No comment yet.
Scooped by Mickael Ruau
September 18, 2013 11:16 AM
Scoop.it!

Lightbox CSS avec tabindex et pseudo-classe :focus

Lightbox sans Javascript -- Les Lightbox s'affichent généralement suite à un événement `click` capturé par Javascript.
No comment yet.