Results 41 to 42 of 42
Threaded View
-
28th Jun 2012, 02:36 PM #1OPRespected DeveloperWebsite's:
X4B.orgSnippet of the Day
Disclaimer: Ok, just an idea I thought up. Might take off, might not.
With that out of the way let me introduce snippet of the day. In this thread you may post one snippet of code a day (at most) that you are particularly proud of.
Rules:
- Snippets must be at most 15 lines long. Try to keep them as short as possible.
- You must have written them yourself and within the course of the day.
- Any language is allowed
- No insulting peoples coding. Although that said, if you just started developing in a language this probably isnt the best place to post.
- Constructuve Critisizm is allowed, just keep it constructive and polite.
- Links to source are allowed
- Editing of constants to increase readability is fine.
- No short replies, use the like feature.
- CSS/HTML and languages similar can be longer, however a link to a demo site must be provided.
- A short explanation would also be cool.
Also remember there is no such thing as perfect code, feel free to post improvements (especially to my code). Could also be called a code review thread, so don't post if you don't want to see your code cut up and reassembled. Its all fun, join in. Share your knowledge.
The first one, nothing amazing just something to start with. Im sure you have something cooler.
PHP Code:$sql = $this->table()
->select('MAX(order)')
->left_join(IP::TABLE)
->where(array('lease_id'=>$lease->getId(),'ip_version'=>4));
SplitIce Reviewed by SplitIce on . Snippet of the Day Disclaimer: Ok, just an idea I thought up. Might take off, might not. With that out of the way let me introduce snippet of the day. In this thread you may post one snippet of code a day (at most) that you are particularly proud of. Rules: Snippets must be at most 15 lines long. Try to keep them as short as possible. You must have written them yourself and within the course of the day. Any language is allowed No insulting peoples coding. Although that said, if you just started Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Plz Help To Add A Php Snippet Into My DLE Index !
By JoomlaZ in forum Web Development AreaReplies: 0Last Post: 7th Jul 2011, 01:18 PM -
[C#] Tiny Web Server (snippet)
By Hyperz in forum Web Development AreaReplies: 6Last Post: 24th Jun 2010, 01:19 PM -
Image Upload in php. Code snippet #2
By SplitIce in forum Tutorials and GuidesReplies: 5Last Post: 31st Oct 2009, 07:40 AM -
See real OOP (Snippet from Litewarez V2) Webmasters CP
By litewarez in forum Tutorials and GuidesReplies: 21Last Post: 19th Sep 2009, 03:59 PM -
A Snippet from my latest project
By litewarez in forum Tutorials and GuidesReplies: 19Last Post: 21st Jun 2009, 05:17 PM
themaCreator - create posts from...
Version 3.55 released. Open older version (or...