[Thunar-workers] [DokuWiki] page changed: implementation:overview

thunar-workers at xfce.org thunar-workers at xfce.org
Sat Feb 19 22:20:14 CET 2005


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2005/02/19 21:20
Browser     : Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050110 Firefox/1.0 (Debian package 1.0+dfsg.1-2)
IP-Address  : 217.85.191.78
Hostname    : pD955BF4E.dip.t-dialin.net
Old Revision: http://thunar.xfce.org/wiki/implementation:overview?rev=1108842388
New Revision: http://thunar.xfce.org/wiki/implementation:overview
Edit Summary: 
User        : benny

@@ -24,8 +24,21 @@
  accesses). For the MIME detection, the file manager should probably even
  skip the //magic//-detection and use only the glob-detection (problem here, is
  that we need to grab the first 256 bytes anyways to detect if the file in
  question is a text file, as the fallback).
+ 
+ 
+ ==== Avoid bugs ====
+ When writing code, try to avoid bugs as much as possible. This includes, always
+ compiling with warnings enabled (''-Wall'') and let the compiler treat warnings
+ as errors (''-Werror''). Make heavy use of the
+ [[http://developer.gnome.org/doc/API/2.0/glib/glib-Warnings-and-Assertions.html|Message
+ Output and Debugging Functions]] provided by GLib. There are some other points
+ that can help to avoid bugs from day one (already proven to work in other projects
+ like ''xfce4-session'' - no critical implementation bugs during the 4.2 release phase! -
+ and ''Terminal'', and I'll write down some notes about this at a later time. Others
+ may also have some interesting tips, if so, feel free to send them to the
+ [[infrastructure:overview#mailinglists|thunar-dev mailinglist]].
  
  
  ==== Optimize MIME-type detection ====
  Fortunately, the Shared MIME Database Specification is well-thought, so there's
@@ -40,8 +53,9 @@
  
  ==== Optimize ExoIconView ====
  ''ExoIconView'' can be optimized to avoid the time-consuming relayout calls.
  This requires changing most of the internals (sample code exists).
+ 
  
  
  
  ===== Sample Code =====



-- 
This mail was generated by DokuWiki at
http://thunar.xfce.org/wiki/



More information about the Thunar-workers mailing list