|
Allegro's relevance makes me happy |
Samuel Henderson
Member #3,757
August 2003
|
furinkan said: Does this look fine to you? It took me several minutes to discern what he was doing; It never even occurred to me that somebody would solve a problem like that. <?php //$due_date is in the format YYYY-MM-DD, as is common in SQL DB's $date = date('m', strtotime($due_date)).'/'.date('d', strtotime($due_date)).'/'.date('Y', strtotime($due_date)); ?>
I read the comment first and then skimmed the next line. Knowing this line was likely a date formatting conversion the 'm/d/Y' jumped out at me. As quickly as I skimmed the line (0.000001 seconds... yes, even faster than our Fearless Leader!) I knew exactly what it was doing, even without having to research what strtotime did. That's not so say what he did was elegant or wasn't a WTF. ================================================= |
AMCerasoli
Member #11,955
May 2010
|
I use to save data as timestamps, so I would have done $date = date('d/m/Y', $timestamp);
|
furinkan
Member #10,271
October 2008
|
I'm pushing to use timestamps more, but I don't have time to rewrite our entire codebase. Everything needs done yesterday, so don't waste any time! But, oh... I still expect PHP gold out of you. |
Trezker
Member #1,739
December 2001
|
Everyone has enough already. |
furinkan
Member #10,271
October 2008
|
You're right. That fourth slice of pineapple & ham pizza, was just greedy of me. You can have it back, but you'll have to wait a while. |
Johan Halmén
Member #1,550
September 2001
|
Bill Gates got rich by not spending money on ridiculously over priced eyeglass frames. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Years of thorough research have revealed that what people find beautiful about the Mandelbrot set is not the set itself, but all the rest. |
Arthur Kalliokoski
Second in Command
February 2005
|
{"name":"billgates-saves-for-a-lamborghini.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/b\/fb68178f932e8410982c54420c71064f.png","w":550,"h":2185,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/b\/fb68178f932e8410982c54420c71064f"} They all watch too much MSNBC... they get ideas. |
furinkan
Member #10,271
October 2008
|
{"name":"93339552-bill-gates.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/2\/124016adc95afa8488ec38ab2101a9d2.jpg","w":609,"h":480,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/2\/124016adc95afa8488ec38ab2101a9d2"} I decided to switch one of my projects over to python and Allegro 5 before I get too deep into it. I thought: Oh, I don't wanna compile allegro 5.0.9! The most difficult part was downloading the source. I keep forgetting: I'm not on Windows anymore. I can have aptitude do all my work for me. |
weapon_S
Member #7,859
October 2006
|
So there's:
Are those up-to-date? |
SiegeLord
Member #7,827
October 2006
|
weapon_S said:
C(++) This list is for A5... answers for A4 are different:
Also, the newest Humble Bundle appears to have an Allegro 5 powered game: Beat Hazard Ultra. "For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18 |
|
|