Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: You know you've been using TXP too long when...
ruud wrote:
3. make the plugin contain a chunk of compressed code that is extracted and eval-ed each time the plugin is loaded ;)
Oooh, hadn’t thought of that! Keeps the amateurs out :-D
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: You know you've been using TXP too long when...
Since this is a frivolous topic anyway, it reminds me of a story. When I was coding back at my old job we used to use one of several variants of method 2 to make the job more fun.
I used to do a lot of script work in ksh and awk (brilliant language) and we’d decide on a Theme-of-the-day to write an entire script using themed variables; e.g. all variable names must be aquatic in nature. Made for some interesting constructs like:
if (cod == sturgeon) {
squid = herring++;
}
A variant on that was to use these random themed variable names to turn the code into something as close to prose as possible. So a scan of the code might reveal:
for (lady in waiting) {
cook(dinner[lady]);
}
Also had the bonus of keeping the amateurs out and making for some interesting support calls… ;-)
Last edited by Bloke (2008-07-01 13:52:54)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: You know you've been using TXP too long when...
when you’ve set up firefox quick bookmarks so that when you type “txp tagname” in the url bar it automstically searches textbook for ‘tagname’
Offline
Re: You know you've been using TXP too long when...
iblastoff wrote:
when you’ve set up firefox quick bookmarks so that when you type “txp tagname” in the url bar it automstically searches textbook for ‘tagname’
Or you make a bookmarklet for textbook to search the tag reference…
Offline