dpatrick86

- friends
4,306 link karma
2,113 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • Three-Year Club

    Verified Email

Symfony2 - experiences? by lulzipopsin PHP

[–]dpatrick86 2 points3 points ago*

Templates CAN be nested in folders.

AcmeDemoBundle:Products/SubProducts:blah.html.twig works just fine.

(this would be src/Acme/DemoBundle/Resources/views/Products/SubProducts/blah.html.twig).

This should probably be illustrated at least once in the docs... you could make a pull request if you'd like.

Edit: went ahead and made a PR... https://github.com/symfony/symfony-docs/pull/1324

date? by cascer1in PHP

[–]dpatrick86 0 points1 point ago

Just FYI if you create a DateTime object the constructor will accept strtotime-styled input as well

The 100 highest rated products on Amazon. by topppin promos

[–]dpatrick86 2 points3 points ago

Why'd you guys rebrand?

question about creating a .php WITH a php script by GhettoCowboyin PHP

[–]dpatrick86 0 points1 point ago

Agreed

question about creating a .php WITH a php script by GhettoCowboyin PHP

[–]dpatrick86 1 point2 points ago

Said frameworks still generally use mod_rewrite, even if they do a nice job of abstracting it away

I built a website for myself to help me find a better job, any takers? by dsclousein jobs

[–]dpatrick86 1 point2 points ago

The high starting "good use of time" is subtle. :)

Well played Steve by Jakelsharkin memphis

[–]dpatrick86 0 points1 point ago

Reddit meme meetup day could merge with this for extra whackiness...

http://www.meetup.com/memphisflashmob/events/23448261/

Next time you take a trip, leave the GPS unit behind. How they keep us from developing mental maps. by dfektin cogsci

[–]dpatrick86 6 points7 points ago

10% is a myth, but the idea that the brain has a limited capacity for specialization is not. Skip down to the third paragraph from the bottom here: http://www.wired.co.uk/news/archive/2011-12/09/the-knowledge-changes-the-brain

Just finished Breaking Bad. What do I watch now? by VetintheGamein NetflixBestOf

[–]dpatrick86 0 points1 point ago

Kinda with ya... 30 rock got a few dumb laughs from me, but not much more. Tracy Jordan can only do so much

Just finished Breaking Bad. What do I watch now? by VetintheGamein NetflixBestOf

[–]dpatrick86 18 points19 points ago

Better off Ted I think is closer to arrested than 30 rock :)

Solo freelancer looking to improve my workflow... Git/SVN? by wafflemonsterin web_design

[–]dpatrick86 0 points1 point ago

hehe... git reset --hard ORIG_HEAD

ftw.

Solo freelancer looking to improve my workflow... Git/SVN? by wafflemonsterin web_design

[–]dpatrick86 4 points5 points ago

It allows you to be fearless, make sweeping code changes knowing you can always fall back or keep things in a branch until they're mature

Yes, this is the crux of it!

Solo freelancer looking to improve my workflow... Git/SVN? by wafflemonsterin web_design

[–]dpatrick86 2 points3 points ago*

I use git on solo projects all of the time. I also setup git repos locally when I'm editing important system configuration files, that way if I screw something up I can revert to the initial version, or if something worked wonders I can easily see the diff to recall exactly what I did. (I do this for apache config, php, and mysql config stuff in particular.)

When you're working with languages where missing a single semi-colon, or period, or parentheses can shutdown your entire project it is very nice to be able to record each change one step at a time. If you run into a bug that went unnoticed git also has a really cool feature called "git bisect" that is very useful for narrowing down to the changeset that caused the issue very quickly.

Quoting kewarken below...

It allows you to be fearless, make sweeping code changes knowing you can always fall back or keep things in a branch until they're mature

Also, I recommend looking into Capistrano for deployment -- even if you're not working with rails or some such ruby framework, it is an excellent tool.

good restaurants with late hours? by slamballin memphis

[–]dpatrick86 0 points1 point ago

Used to be 10, I thought.

good restaurants with late hours? by slamballin memphis

[–]dpatrick86 -3 points-2 points ago

Republic Coffee

TIL that array_keys has an extra parameter, basically turning it into array_search by Dunhamzzzin PHP

[–]dpatrick86 2 points3 points ago

There's an important fundamental difference. array_keys will return multiple keys if the value is contained more than once, whereas array_search will simply return the first key matching said value.

About to convert my portfolio/personal site to MVC, need some advice? by piglet24in PHP

[–]dpatrick86 1 point2 points ago

Seemingly OP has not used a MVC framework previously, so I think it's a cart before the horse kind of scenario. I may be wrong though.

About to convert my portfolio/personal site to MVC, need some advice? by piglet24in PHP

[–]dpatrick86 1 point2 points ago

If you want to implement MVC why don't you use a well regarded framework first instead of trying to roll your own right off the bat?

David Cameron says the UK is a Christian country by BlackBeltSocialSuboin worldnews

[–]dpatrick86 1 point2 points ago

"Vaguely" practicing?

I need a PHP IDE for OS X by incompetentboobin PHP

[–]dpatrick86 2 points3 points ago

PHPStorm seconded.

r/PHPCodeReview: Want someone to look over your code? Want some advice on how to make it cleaner, more efficient, more elegant, more secure? Click. Post. Join us. by famousmadphilosopherin PHP

[–]dpatrick86 1 point2 points ago

sorry, this has been archived and can no longer be voted on

Walk before you run. Contribute to the projects of others before open sourcing your own work. If you make a pull request to a major project do you honestly think they'll accept it without giving you some feedback and corrections first?

view more: next