Skip to main content

Home/ Coders/ Contents contributed and discussions participated by Fabien Cadet

Contents contributed and discussions participated by Fabien Cadet

Fabien Cadet

Doctrine - PHP Object Relational Mapper - 2 views

  •  
    Doctrine is an object relational mapper (ORM) for PHP 5.2.3+ that sits on top of a powerful database abstraction layer (DBAL). One of its key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (DQL), inspired by Hibernates HQL. This provides developers with a powerful alternative to SQL that maintains flexibility without requiring unnecessary code duplication.
Fabien Cadet

Parsing Html The Cthulhu Way @ Coding Horror (Jeff Atwood) - 1 views

  •  
    « Among programmers of any experience, it is generally regarded as A Bad Ideatm to attempt to parse HTML with regular expressions. How bad of an idea? It apparently drove one Stack Overflow user to the brink of madness [...] »
Fabien Cadet

WTF Code .net - 12 views

  • “ The trouble with programmers is that you can never tell what a programmer is doing until it’s too late. Seymour Cray
  • “ Good code is its own best documentation. Steve McConnell
  • “ Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves. Alan Kay
  • ...1 more annotation...
  • “ Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding
  •  
    " The trouble with programmers is that you can never tell what a programmer is doing until it's too late. " __ Seymour Cray __
Fabien Cadet

vimperator : Firefox addon for vim-like browsing - 3 views

  •  
    « Writing efficient user interfaces is the main maxim, here at Vimperator labs. We often follow the Vim way of doing things, but extend its principles when necessary. Towards this end, we've created the liberator library for Mozilla based applications, to encapsulate as many of these generic principles as possible, and liberate developers from the tedium of reinventing the wheel. »
Fabien Cadet

What Beautiful HTML Code Looks Like, by Chris Coyier | CSS-Tricks [2009-11-09] - 3 views

  •  
    « It gets me to thinking, what makes beautiful code? In HTML, it comes down to craftsmanship. Let's take a look at some markup written they way markup should be written and see how beautiful it can be. » [ + PNG image ]
Fabien Cadet

utf 8 nbsp - RE: nbsp is not that hard, folks ; reply by: Américo Albuquerque... - 0 views

  • " " " " and "\u00A0" have nothing, NOTHING to do with UTF-8.
  • There is a character -- an abstract unit in a "script" (a writing system; we are using Latin right now) -- called NO-BREAK SPACE by the Unicode Standard and ISO/IEC 10646. Unicode and ISO/IEC 10646 assign this character an integer number, 160, which is A0 in hex.
  • UTF-8 is an encoding scheme that provides a way of representing any of the approximately 1.1 million possible abstract characters in Unicode as a sequence of 1 to 4 bytes.
  • ...8 more annotations...
  • The UTF-8 representation of the Unicode character 160 (no-break space), is the pair of bytes C2 A0, in that order.
  • This thing: \u00A0
  • the no-break space character
  • This thing:   or this thing:  
  • is to SGML applications like HTML and XML what \u00A0 is to Java & Python;
  • is called a character reference (or "numeric character reference").
  • This thing:  
  • is to SGML applications like HTML and XML an "entity reference";
  •  
    « [...] " " " " and "\u00A0" have nothing, NOTHING to do with UTF-8 [...] Unicode and ISO/IEC 10646 assign this character an integer number, 160, which is A0 in hex [...] UTF-8 is an encoding scheme [...] The UTF-8 representation of the Unicode character 160 (no-break space), is the pair of bytes C2 A0. »
Fabien Cadet

FireQuery : Firebug extension for jQuery development - 1 views

  •  
    Features : * jQuery expressions are intelligently presented in Firebug Console and DOM inspector * attached jQuery datas are first class citizens * elements in jQuery collections are highlighted on hover * jQuerify: enables you to inject jQuery into any web page
Fabien Cadet

Programming as if Performance Mattered, by James Hague [2004-04-04] - 3 views

  • I frequently see bare queries from programmers in discussion forums, especially from new programmers, who are worried about performance. These worries often stem from popular notions about what operations are "slow." Division. Square roots. Mispredicted branches. Cache unfriendly data structures.
  • Inevitably someone chimes in that making out-of-context assumptions, especially without profiling, is a bad idea. And they're right.
  • The golden rule of programming has always been that clarity and correctness matter much more than the utmost speed. Very few people will argue with that. And yet do we really believe it? If we did, then 99% of all programs would be written in something like Python. Or Erlang.
  • ...5 more annotations...
  • At the same time, such concerns and advice seem to remain constant despite rapid advances in hardware.
  • That tempting, enticing, puzzle-solving activity called "optimization," it hasn't gone away either.
  • Only now the process is on a different level. It isn't machine level twiddling and cycle counting, but it isn't simply mathematical analysis of algorithms either.
  • The big difference is that the code changes I made are substantially safer than running a program and having it silently hang the system. All array accesses are bounds-checked. There's no way to accidentally overwrite a data structure. There's no way to create a memory leak.
  • Really, this is what those cycle-counting programmers from 1985 dreamed of.
  •  
    « I frequently see bare queries from programmers in discussion forums, especially from new programmers, who are worried about performance. These worries often stem from popular notions about what operations are "slow." Division. Square roots. Mispredicted branches. Cache unfriendly data structures. »
Fabien Cadet

prog21: Tales of a Former Disassembly Addict - 1 views

  • In fact, generated code can be so ridiculous and verbose that I finally came up with an across-the-board solution which works for all compilers on all systems: I don't look at the disassembled output.
  • I still see people obsessed with picking a programming language that's at the top of the benchmarks, and they obsess over the timing results the way I used to obsess over disassembled listings. It's a dodge, a distraction...and it's irrelevant.
Fabien Cadet

Design Patterns: 15 Years After the Revolution, by Danny Kalev @ InformIT [2009-10-30] - 1 views

  • by defining a description template that included among the rest: Known uses. Sample code (as opposed to a typical algorithm which were often described in plain English and perhaps a few sketchy lines of pseudo-code). Collaboration (A description of how classes and objects used in the pattern interact with each other). Consequences (results and side-effects). Related patterns.
  • Would a 2009 catalog of the 23 classic design patterns look much different? According to the authors of Design Patterns: Elements of Reusable Code, the answer is no.
  • The authors would reclassify certain patterns and omit a few of the original patterns but the design and implementation would remain pretty much the same: "We have found that the object-oriented design principles and most of the patterns haven't changed since then" says Erich Gamma. You can't escape the feeling that patterns are frozen in time
  • ...2 more annotations...
  • In the meantime, in the C++ world the tide has turned towards a completely different paradigm known as generic programming (and to some extent, functional programming). Instead of plain classes and a complex inheritance chain, C++ these days uses templates, meta-programming and static type checking. The C++ Standard Library is the most prominent showpiece of the generic and functional programming idioms.
  • Over-engineering is another source of criticism. Programmers who become acquainted with patterns are often tempted to solve every problem using a pattern, even when a much simpler solution would probably be a better choice.
Fabien Cadet

PHPExcel - www.phpexcel.net - 3 views

shared by Fabien Cadet on 27 Oct 09 - Cached
  •  
    Project providing a set of classes for the PHP programming language, which allow you to write to and read from different file formats, like Excel 2007, PDF, HTML, ... This project is built around Microsoft's OpenXML standard and PHP.
Fabien Cadet

Git Magic [ebook] @ www-cs-students.stanford.edu - 4 views

  •  
    « Git is a version control Swiss army knife. A reliable versatile multipurpose revision control tool whose extraordinary flexibility makes it tricky to learn, let alone master. As Arthur C. Clarke observed, any sufficiently advanced technology is indistinguishable from magic. This is a great way to approach Git: newbies can ignore its inner workings and view Git as a gizmo that can amaze friends and infuriate enemies with its wondrous abilities. »
Fabien Cadet

Front Page - css-discuss - 2 views

  •  
    « This Wiki is dedicated to real-world (and ideally, browser-neutral) application of CSS. (Cascading Style Sheets) Topics include: techniques for page-layout and special display-effects, testing and validation, workarounds for limitations and bugs, CSS code-editors, beginner and advanced tutorials, and to a lesser extent pure CSS theory, and pure CSS power-demonstrations. Discourse on (X)HTML, DOM, and other webpage-technology areas is not forbidden, but keeping it associated with CSS is encouraged. »
Fabien Cadet

10 Useful Usability Findings and Guidelines « Smashing Magazine - 2 views

  •  
    1. Form Labels Work Best Above The Field 2. Users Focus On Faces 3. Quality Of Design Is An Indicator Of Credibility 4. Most Users Do Not Scroll 5. Blue Is The Best Color For Links 6. The Ideal Search Box Is 27-Characters Wide 7. White Space Improves Comprehension 8. Effective User Testing Doesn't Have To Be Extensive 9. Informative Product Pages Help You Stand Out 10. Most Users Are Blind To Advertising
Fabien Cadet

The Duct Tape Programmer - Joel on Software - 0 views

  •  
    « A 50%-good solution that people actually have solves more problems and survives longer than a 99% solution that nobody has because it's in your lab where you're endlessly polishing the damn thing. Shipping is a feature. A really important feature. Your product must have it. »
Fabien Cadet

Quirks or Standards Mode Bookmarklet - dorward.me.uk - 0 views

  •  
    « These days, many browsers can function in Standards Mode and Quirks Mode. In a nutshell, they perform an intelligence test based on the document author's choice (or lack thereof) of Doctype. If they see a "good" Doctype, they enter Standards mode and more closely follow standards, otherwise they enter Quirks and … don't. »
  •  
    These days, many browsers can function in Standards Mode and Quirks Mode. In a nutshell, they perform an intelligence test based on the document author's choice (or lack thereof) of Doctype. If they see a "good" Doctype, they enter Standards mode and more closely follow standards, otherwise they enter Quirks and … don't.
Fabien Cadet

Stop data inserting into a database twice - Stack Overflow - 0 views

  •  
    * HTTP `Location: ...´ header to redirect ; known as the Post/Redirect/Get design pattern. * Nonces (Number used only once) included in the page as a hidden form field (client-side) ; and server-side: Either stored in the user-session or in the database as the primary key (or at least a unique field) of the table you insert into. * Disable the submit button (drawbacks for the user). * md5 hash on the content of the submitted data.
Fabien Cadet

Dégage, sale programmeur ! « Codingly - 0 views

  •  
    This article is in french, sorry for that but I could find no relevant group to share this. Briefly it talks about how programmers (those who actually code) are perceived here in France: As guys dwelling the bottom of the hierarchy, whom only ambition *should be* to become lead progr. or better (architect, project lead, ...). i.e. programmer is not really seen as a career.
  •  
    A brief translation of the intro.: « Yes, being a programmer when you're 30+ yo in France is worst than being a 40+ yo cashier. Most of the people who spend 90% of their time programming will try to be perceived as R&D engineers, project lead, solution architect, consultant, etc.. The best, when you're a poor contractor of an "software engineering company", in mission for a banque, et that you spend you days coding, is telling people that you are Engineer in finance. »
Fabien Cadet

MIT's Introduction to Algorithms, Lectures 22 and 23: Cache Oblivious Algorithms - good... - 0 views

  • Cache-oblivious algorithms should not be confused with cache-aware algorithms. Cache-aware algorithms and data structures explicitly depend on various hardware configuration parameters, such as the cache size. Cache-oblivious algorithms do not depend on any hardware parameters.
  • An example of cache-aware (not cache-oblivious) data structure is a B-Tree that has the explicit parameter B, the size of a node. The main disadvantage of cache-aware algorithms is that they are based on the knowledge of the memory structure and size, which makes it difficult to move implementations from one architecture to another.
  •  
    « Cache-oblivious algorithms take into account something that has been ignored in all the lectures so far, particularly, the multilevel memory hierarchy of modern computers. Retrieving items from various levels of memory and cache make up a dominant factor of running time, so for speed it is crucial to minimize these costs. The main idea of cache-oblivious algorithms is to achieve optimal use of caches on all levels of a memory hierarchy without knowledge of their size. »
« First ‹ Previous 301 - 320 of 338 Next ›
Showing 20 items per page