You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(9) |
May
(28) |
Jun
(54) |
Jul
(68) |
Aug
(34) |
Sep
(20) |
Oct
(62) |
Nov
(58) |
Dec
(77) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(91) |
Feb
(101) |
Mar
(73) |
Apr
(107) |
May
(56) |
Jun
(43) |
Jul
(68) |
Aug
(31) |
Sep
(35) |
Oct
(50) |
Nov
(20) |
Dec
(37) |
2004 |
Jan
(17) |
Feb
(3) |
Mar
(2) |
Apr
(7) |
May
(3) |
Jun
(11) |
Jul
(8) |
Aug
(22) |
Sep
(10) |
Oct
(9) |
Nov
(17) |
Dec
(6) |
2005 |
Jan
(14) |
Feb
(11) |
Mar
(6) |
Apr
(30) |
May
(17) |
Jun
(57) |
Jul
(18) |
Aug
(18) |
Sep
(32) |
Oct
(49) |
Nov
(19) |
Dec
(40) |
2006 |
Jan
(48) |
Feb
(68) |
Mar
(74) |
Apr
(92) |
May
(90) |
Jun
(60) |
Jul
(25) |
Aug
(47) |
Sep
(36) |
Oct
(64) |
Nov
(57) |
Dec
(21) |
2007 |
Jan
(74) |
Feb
(24) |
Mar
(49) |
Apr
(37) |
May
(56) |
Jun
(27) |
Jul
(23) |
Aug
(24) |
Sep
(24) |
Oct
(58) |
Nov
(13) |
Dec
(9) |
2008 |
Jan
(41) |
Feb
(16) |
Mar
(53) |
Apr
(19) |
May
(53) |
Jun
(20) |
Jul
(44) |
Aug
(12) |
Sep
(19) |
Oct
(22) |
Nov
(64) |
Dec
(14) |
2009 |
Jan
(16) |
Feb
(37) |
Mar
(30) |
Apr
(24) |
May
(3) |
Jun
(14) |
Jul
(39) |
Aug
(30) |
Sep
(38) |
Oct
(10) |
Nov
(9) |
Dec
(30) |
2010 |
Jan
(27) |
Feb
(9) |
Mar
(8) |
Apr
(38) |
May
(17) |
Jun
(2) |
Jul
(15) |
Aug
(3) |
Sep
(9) |
Oct
(3) |
Nov
(14) |
Dec
(6) |
2011 |
Jan
(1) |
Feb
(14) |
Mar
(18) |
Apr
(7) |
May
(3) |
Jun
(5) |
Jul
(3) |
Aug
|
Sep
(3) |
Oct
(3) |
Nov
(3) |
Dec
(2) |
2012 |
Jan
(2) |
Feb
(2) |
Mar
(1) |
Apr
|
May
(2) |
Jun
(1) |
Jul
(2) |
Aug
(2) |
Sep
(1) |
Oct
(4) |
Nov
(5) |
Dec
|
2013 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Andy C. <bng...@gm...> - 2009-07-22 16:38:50
|
That doesn't appear to work (for me anyway). would you just echo the returned value of the function? Andy Carlson Carlson Technology (815) 875-2824 41° 22' 35" N 89° 28' 10" W --------------------------------------------------- "Man's conquest of Nature turns out, in the moment of its consummation, to be Nature's conquest of Man." -- C.S. Lewis --------------------------------------------------- "The ubiquity of the Internet is more important than the technology of the Internet" -- Jeff Bezos On Wed, Jul 22, 2009 at 11:04 AM, Trevor Oldak <tr...@gm...> wrote: > Only method I came up to do it on my blog was sort of a hack. I run a > regular expression on the text to pick up the contents of all php tags > (assuming php tags start with <?php and end with ?>. No other php tags), > then I run this function on it: > > function evaluate_php($php){ > ob_start(); > eval($php); > $output = ob_get_contents(); > ob_end_clean(); > return $output; > } > > One thing to note with this is that it is potentially VERY insecure. If > anyone else can add or change content, they can basically take over your > server, so be careful with forms, and don't run comments through the same > function. > > > > 2009/7/22 Andy Carlson <bng...@gm...> > > > Here's the situation. I'm designing a database based page generation > > system > > for my website. That is, HTML and possibly PHP code is stored in a MySQL > > table as raw text. A query will pull the text out of the table and > render > > it as HTML and PHP. It renders the HTML, but it won't render the PHP > Code > > (it appears in my source code when I "view source" in my browser). > > > > I have tried the "eval()" command, but that doesn't seem to work. Any > > thoughts? Thanks much, > > > > Andy Carlson > > Carlson Technology > > --------------------------------------------------- > > "Man's conquest of Nature turns out, in the moment of its consummation, > to > > be Nature's conquest of Man." -- C.S. Lewis > > --------------------------------------------------- > > "The ubiquity of the Internet is more important than the technology of > the > > Internet" -- Jeff Bezos > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > chiPHPug-discuss mailing list > > chi...@li... > > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > > > > -- > -Trevor Oldak > > ------------------------------------------------------------------------------ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > |
From: Andy C. <bng...@gm...> - 2009-07-22 16:32:35
|
That appears to only work with HTML ASCII characters. like converting < to < Thanks, Andy Carlson Carlson Technology --------------------------------------------------- "Man's conquest of Nature turns out, in the moment of its consummation, to be Nature's conquest of Man." -- C.S. Lewis --------------------------------------------------- "The ubiquity of the Internet is more important than the technology of the Internet" -- Jeff Bezos On Wed, Jul 22, 2009 at 10:59 AM, junkmail <jun...@2z...> wrote: > Have you tried wrapping the code with htmlentities($codeVar). > > If I had to guess I would say the <?php tags are being parsed by the > browser and hiding the contents > > > Andy Carlson wrote: > > Here's the situation. I'm designing a database based page generation > system > > for my website. That is, HTML and possibly PHP code is stored in a MySQL > > table as raw text. A query will pull the text out of the table and > render > > it as HTML and PHP. It renders the HTML, but it won't render the PHP > Code > > (it appears in my source code when I "view source" in my browser). > > > > I have tried the "eval()" command, but that doesn't seem to work. Any > > thoughts? Thanks much, > > > > Andy Carlson > > Carlson Technology > > --------------------------------------------------- > > "Man's conquest of Nature turns out, in the moment of its consummation, > to > > be Nature's conquest of Man." -- C.S. Lewis > > --------------------------------------------------- > > "The ubiquity of the Internet is more important than the technology of > the > > Internet" -- Jeff Bezos > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > chiPHPug-discuss mailing list > > chi...@li... > > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > |
From: Trevor O. <tr...@gm...> - 2009-07-22 16:15:43
|
I think he wants the php to be parsed server-side, not displayed client-side 2009/7/22 junkmail <jun...@2z...> > Have you tried wrapping the code with htmlentities($codeVar). > > If I had to guess I would say the <?php tags are being parsed by the > browser and hiding the contents > > > Andy Carlson wrote: > > Here's the situation. I'm designing a database based page generation > system > > for my website. That is, HTML and possibly PHP code is stored in a MySQL > > table as raw text. A query will pull the text out of the table and > render > > it as HTML and PHP. It renders the HTML, but it won't render the PHP > Code > > (it appears in my source code when I "view source" in my browser). > > > > I have tried the "eval()" command, but that doesn't seem to work. Any > > thoughts? Thanks much, > > > > Andy Carlson > > Carlson Technology > > --------------------------------------------------- > > "Man's conquest of Nature turns out, in the moment of its consummation, > to > > be Nature's conquest of Man." -- C.S. Lewis > > --------------------------------------------------- > > "The ubiquity of the Internet is more important than the technology of > the > > Internet" -- Jeff Bezos > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > chiPHPug-discuss mailing list > > chi...@li... > > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > -- -Trevor Oldak |
From: Trevor O. <tr...@gm...> - 2009-07-22 16:04:46
|
Only method I came up to do it on my blog was sort of a hack. I run a regular expression on the text to pick up the contents of all php tags (assuming php tags start with <?php and end with ?>. No other php tags), then I run this function on it: function evaluate_php($php){ ob_start(); eval($php); $output = ob_get_contents(); ob_end_clean(); return $output; } One thing to note with this is that it is potentially VERY insecure. If anyone else can add or change content, they can basically take over your server, so be careful with forms, and don't run comments through the same function. 2009/7/22 Andy Carlson <bng...@gm...> > Here's the situation. I'm designing a database based page generation > system > for my website. That is, HTML and possibly PHP code is stored in a MySQL > table as raw text. A query will pull the text out of the table and render > it as HTML and PHP. It renders the HTML, but it won't render the PHP Code > (it appears in my source code when I "view source" in my browser). > > I have tried the "eval()" command, but that doesn't seem to work. Any > thoughts? Thanks much, > > Andy Carlson > Carlson Technology > --------------------------------------------------- > "Man's conquest of Nature turns out, in the moment of its consummation, to > be Nature's conquest of Man." -- C.S. Lewis > --------------------------------------------------- > "The ubiquity of the Internet is more important than the technology of the > Internet" -- Jeff Bezos > > ------------------------------------------------------------------------------ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > -- -Trevor Oldak |
From: junkmail <jun...@2z...> - 2009-07-22 16:03:36
|
Have you tried wrapping the code with htmlentities($codeVar). If I had to guess I would say the <?php tags are being parsed by the browser and hiding the contents Andy Carlson wrote: > Here's the situation. I'm designing a database based page generation system > for my website. That is, HTML and possibly PHP code is stored in a MySQL > table as raw text. A query will pull the text out of the table and render > it as HTML and PHP. It renders the HTML, but it won't render the PHP Code > (it appears in my source code when I "view source" in my browser). > > I have tried the "eval()" command, but that doesn't seem to work. Any > thoughts? Thanks much, > > Andy Carlson > Carlson Technology > --------------------------------------------------- > "Man's conquest of Nature turns out, in the moment of its consummation, to > be Nature's conquest of Man." -- C.S. Lewis > --------------------------------------------------- > "The ubiquity of the Internet is more important than the technology of the > Internet" -- Jeff Bezos > ------------------------------------------------------------------------------ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > |
From: Andy C. <bng...@gm...> - 2009-07-22 15:52:30
|
Here's the situation. I'm designing a database based page generation system for my website. That is, HTML and possibly PHP code is stored in a MySQL table as raw text. A query will pull the text out of the table and render it as HTML and PHP. It renders the HTML, but it won't render the PHP Code (it appears in my source code when I "view source" in my browser). I have tried the "eval()" command, but that doesn't seem to work. Any thoughts? Thanks much, Andy Carlson Carlson Technology --------------------------------------------------- "Man's conquest of Nature turns out, in the moment of its consummation, to be Nature's conquest of Man." -- C.S. Lewis --------------------------------------------------- "The ubiquity of the Internet is more important than the technology of the Internet" -- Jeff Bezos |
From: Bryan F. <bry...@gm...> - 2009-07-17 16:01:47
|
I'm embarrassed to say that I showed up Wednesday only to find Sitter City dark and mostly empty. I'd try again if other people are interested. As for topics, the suggestion of "data persistence abstraction" sounds interesting. Also, I know that everybody is doing it these days, but we could also kick around a few PHP 5.3 topics. "New and Noteworthy" has been done, but how about "Noteworthy and Not Worthy"? or maybe "Features and Foibles" or "Pathway to Respectability" or "Madness Begone!" or "Hacks By Any Other Name..." or "My Favorite Monkey" or "You'll Shoot Your Eye Out!" or "Real Code Roundtable". Comments, questions, concerns, outright rejections? ---------- Forwarded message ---------- From: <chi...@li...> Date: Fri, Jul 17, 2009 at 7:04 AM Subject: chiPHPug-discuss Digest, Vol 39, Issue 8 To: chi...@li... Today's Topics: 1. Re: Meeting today? (carl) ---------------------------------------------------------------------- Message: 1 Date: Thu, 16 Jul 2009 09:17:14 -0500 From: carl <jun...@2z...> Subject: Re: [chiPHPug-discuss] Meeting today? To: chi...@li... Message-ID: <4A5...@2z...> Content-Type: text/plain; charset=ISO-8859-1; format=flowed I would definitely like to attend the next meeting. I guess not too many people come to these meetings, eh? If it's just a few of us, can we reschedule for sooner than the 2nd wed of next month? ------------------------------ _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss End of chiPHPug-discuss Digest, Vol 39, Issue 8 *********************************************** |
From: carl <jun...@2z...> - 2009-07-16 14:45:01
|
I would definitely like to attend the next meeting. I guess not too many people come to these meetings, eh? If it's just a few of us, can we reschedule for sooner than the 2nd wed of next month? |
From: Jason R. <ja...@ho...> - 2009-07-15 23:05:14
|
Well, I'm not sure how many people are up for meeting? We hadn't talked about a specific agenda but I could blabber about some interesting things I've been working on in data persistence abstraction.. Else we resched for next month? Bryan Fagan wrote: > I've never been to a meeting before, but would like to start taking part. > Will there be one today as scheduled? > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Bryan F. <bry...@gm...> - 2009-07-15 21:19:29
|
I've never been to a meeting before, but would like to start taking part. Will there be one today as scheduled? |
From: Trevor O. <tr...@gm...> - 2009-07-09 19:06:22
|
My boss posted this description to Craigslist: We are Cellit. We build mobile web sites. We build iPhone/Android/Blackberry apps. We build really cool kiosks that can scan the text off text messages. Most of all, we build text campaign managers. We're looking for the best. Are you the best? We have an immediate need for a highly capable PHP developers, Mysql and Linux System Admins. We are growing quickly and need fun, hard-working people to improve and expand on the services of the small company. You must be self-motivated, detail-oriented, enthusiastic to serve a highly critical role in our organization. There's a lot of possible roles for you at Cellit. If you're smart, know how to communicate, and detail oriented, we can find a place for you. Some of the jobs we need filled: 1) PHP Developers. We need the best and brightest. We need people who can bang out scripts, but we also need people that can design structured apps, that understand PHP 5, classes, webservices, SOAP, and more. 2) Linux Admins. We run 10 servers that need backing up, load balancing, plans for scale up and scale out. SNMP trapping, BASH Scripting, NAGIOS (or similar) skills requested. 3) MySQL admins. We have multiple replicas of data. The databases need management, backup, and security analysis. 4) Java Developers. We're writing apps for Blackberries, Palm Pres, and of course the iPhone (in Obj C). We need strong java programmers to join our app team. Java developers should also have strong PHP skills as they will also need to support our core PHP developers. No matter what your role, we will lean on you and count on your knowledge to be up-to-date and help with the growth of our company. We will pay you based on experience, and will include benefits (IRA, Healthcare, Gym Reimbursement). We are not looking to relocate hires, so please only apply if you are in Chicago or are planning on moving to Chicago soon. Useful technologies to know: PHP, linux, mysql, asterisk, bash, java, javascript, php, linux, objective C Contact info: First off, if you're a recruiter, agent, headhunter, job-finder, employment placement specialist, or Guy Who Finds Jobs For Other People, don't waste your time or mine. We're not interested If you're a developer, looking for a job for yourself, contact me at this email address, or my phone number, 978-790-1313 -- -Trevor Oldak |
From: Richard L. <ce...@l-...> - 2009-07-06 15:49:21
|
Contact Jamie if you are interested in this job: This family owned and operated company started from practically nothing and now boasts over 8 decades of stability. If you have the experience, this is the perfect place to work. With no set hours, a relaxed atmosphere, and a dress code typically consisting of jeans, your workplace will become your second home. As long as you put in the hours, you can come and go as you please. As a PHP Web Developer with this organization, youll be responsible for building and supporting web and intranet PHP applications. Essentially, youll be rewriting the system to make it more user-friendly. If you are a creative problem solver and able to troubleshoot, this fast-paced yet casual work environment is for you. To be successful in this position, you must have the following: Experience in PHP, MySQL, CSS, JavaScript As an employee with this organization, youll receive the following benefits: Medical, Dental, 401K, Flex Time, Tuition Reimbursement, and 1 Week Vacation 1st Year. If you are interested in this position please contact: Jamie Campbell 630-262-0082 or jca...@as... |
From: Richard L. <ce...@l-...> - 2009-07-05 07:46:48
|
I have just doubled the "max" size of email to 80K for the list... I was hoping to filter out a lot of html enhanced (cough, cough) spam by keeping it low, but this is the second real email that got caught in the net... On Fri, July 3, 2009 6:18 pm, chi...@li... wrote: > As list administrator, your authorization is requested for the > following mailing list posting: > > List: chi...@li... > From: bry...@gm... > Subject: Re: chiPHPug-discuss Digest, Vol 39, Issue 1 > Reason: Message body is too big: 67641 bytes with a limit of 40 > KB > > At your convenience, visit: > > https://lists.sourceforge.net/lists/admindb/chiphpug-discuss > > to approve or deny the request. > -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch |
From: Bryan F. <bry...@gm...> - 2009-07-03 23:47:10
|
Thanks for your input, guys. On Fri, Jul 3, 2009 at 6:17 PM, Bryan Fagan <bry...@gm...> wrote: > Thanks for your input, guys. > > > On Fri, Jul 3, 2009 at 5:42 PM, < > chi...@li...> wrote: > >> Send chiPHPug-discuss mailing list submissions to >> chi...@li... >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss >> or, via email, send a message with subject or body 'help' to >> chi...@li... >> >> You can reach the person managing the list at >> chi...@li... >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of chiPHPug-discuss digest..." >> >> >> Today's Topics: >> >> 1. Anyone up for code sample maturity mentoring? (Bryan Fagan) >> 2. Re: Anyone up for code sample maturity mentoring? (matt donohue) >> 3. Re: Anyone up for code sample maturity mentoring? (Anacreo) >> 4. Re: Anyone up for code sample maturity mentoring? (matt donohue) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Fri, 3 Jul 2009 12:44:58 -0500 >> From: Bryan Fagan <bry...@gm...> >> Subject: [chiPHPug-discuss] Anyone up for code sample maturity >> mentoring? >> To: chi...@li... >> Message-ID: >> <9ec...@ma...> >> Content-Type: text/plain; charset=UTF-8 >> >> Hello, All. >> >> A recruiter recently told me that one of her clients--who was specifically >> looking for a PHP developer--said that my code sample didn't show the >> level >> of "maturity" that the client was looking for. Hmmm, ok. Can anyone help >> me >> on my path to maturity with some constructive criticism of my code sample? >> >> I thought my code through and imagined it to be pretty good stuff, but >> evidently I've got some growing to do. I certainly cannot claim to be a >> PHP >> expert, but experience and reading have brought me through enough levels >> of >> bad and immature code hell to imagine that I am well into the intermediate >> range. I originally considered providing classes from my portfolio >> website, >> which is a Zend Framework-based MVC setup with an XML database, but >> decided >> instead to write a small command-line application from scratch so that a >> potential employer could run it with as few setup hassles and snags as >> possible. I set out to make sure that I included the following elements, >> which generally constitute what I believe to be indicative of mature PHP >> code: >> >> * standard OOP principles, including high decoupling and good >> encapsulation, >> inheritance, polymorphism, composition, and aggregation >> * most PHP 5 OOP features, including interfaces, abstract classes, and >> exception handling >> * use of design patterns >> * use of SPL and an external code library (Zend Framework, in this case) >> * file, stream, and XML handling >> * Zend coding standard >> * E_STRICT cleanliness >> >> That's a pretty good checklist, right? And almost all of it made it in. So >> is the problem in the execution? Is it that I didn't do it "test first" >> and >> include the unit tests (that's a skill I'm still working on)? Questions, >> comments, concerns? >> >> I'd appreciate as much insight as anyone has to offer. I'm not asking so >> much for help with a re-write as for help understanding what is immature >> about the code or the project as a whole--and what I need to understand >> and >> learn to do to have any recruiter think, "Damn, this guy's good! Bring him >> in." >> >> If you're interested in this mentoring task--or just want to point and >> laugh--you can download the zipped-up code from my professional website at >> the address http://bryanfagan.info/documents/Bryan_Fagan_Code_Sample.zipand >> open it with the password "super good password". >> >> Bryan Fagan >> >> P.S. I am woefully unemployed, so if you see my stuff and know of someone >> looking for a LAMP developer who might think anything even close to "this >> guy's good," I would be eternally grateful if you'd pass on my contact >> information or send me a link as appropriate. >> >> >> ------------------------------ >> >> Message: 2 >> Date: Fri, 3 Jul 2009 13:01:11 -0700 (PDT) >> From: matt donohue <mm_...@ya...> >> Subject: Re: [chiPHPug-discuss] Anyone up for code sample maturity >> mentoring? >> To: Chicago PHP User Group <chi...@li...> >> Message-ID: <753...@we...> >> Content-Type: text/plain; charset=iso-8859-1 >> >> Hey Bryan, >> >> Excellent question. >> >> I would bet the vacations days (I don't get to take) that they never got >> too far into your code. >> Just my opinion- but, when people ask for code samples they want original >> examples exclusively. >> I think less is always more when it comes to code samples (offer more >> later!) and (again) I would ONLY show original code and specifically >> examples of solving real world problems (not conceptual applications). >> Small code?chunks (3 or 4 max) of larger classes, modules?or utility >> classes that demonstrate your coding methods or philosophy dealing with >> actual problems. >> (I mix my samples with utility functions, class methods and even >> Javascript, AJAX and JSON.) >> Generally you would tailor the samples you choose?based on?the job >> description and you would describe why you chose the examples >> and how they fit into the the position you are applying for. >> Think of the hiring questions they would be asking? Can he work with a >> large existing code base. Is he good?working with a?database? >> Is he more of a back-end developer or does he know CSS, AJAX and >> Javascript? Can he work on his own or does he need supervision? >> Do you: borrow code, use frameworks extensively, have your developed your >> own framework/class base? >> The real question you should answer for them is?how will YOU solve their >> problems. >> If you don't have a long work history this is difficult and could be the >> reason they would mention maturity. >> I would say offhand, your example is asking a lot from the prospective >> employee. Not that it doesn't demonstrate a thorough understanding of PHP >> concepts. >> It's more thorough than I code. >> I (personally) would never dig through a code sample like that to hire >> someone. >> You don't mention your work experience but, if it is minimal I would say >> the odds of getting a job requiring code samples is limited. >> That's not a mentoring position which, is what I believe you would want? >> No one is going to hire someone who can 'conceptually' do the job for >> something more front-line. So, in that vein I'm thinking your in-between a >> bubble of not being an intern/trainee but, without enough 'real' experience >> to cement a Jr Dev position. >> Generally- code samples are a sanity check, and not why you are actually >> hired. >> Even with years of experience you'll find you are under qualified for some >> positions and over qualified for others so, I wouldn't dwell on it much and >> keep trying. >> >> I can send you an old example of a cover letter and code samples for >> reference- email me. I'm sure they are embarassing. >> >> Matt >> >> >> >> >> ________________________________ >> >> >> ------------------------------ >> >> Message: 3 >> Date: Fri, 3 Jul 2009 15:58:51 -0500 >> From: Anacreo <an...@gm...> >> Subject: Re: [chiPHPug-discuss] Anyone up for code sample maturity >> mentoring? >> To: Chicago PHP User Group <chi...@li...> >> Message-ID: >> <69c...@ma...> >> Content-Type: text/plain; charset=ISO-8859-1 >> >> I couldn't agree with Matt's response more... if they just said the code >> was >> not mature enough, they probably didn't think the example was appropriate. >> Did they give you a few example problems and ask for you to resolve them >> or >> did you just provide some code samples out of a portfolio? >> Do you want to provide one or two of your examples and maybe we could give >> you some examples of how to solve the problem? >> Some things that drive me nuts when hiring: >> * "Young" programmers who think they're so cool because they've >> mastered the ternary operator, : ?, and use it to illegibility -- honestly >> don't bother using it at all... >> * Mixed variable and formatting styles within your code, shows a lot >> of >> cut and paste action... >> * No variable style at all -- Pick a standard and use it... >> * Skipping language constructs, don't skip ;'s {}'s ()'s or []'s... >> * Code repetition -- if you're repeating the same code chances are you >> shouldn't be... >> And finally code commenting... >> Every procedure, variable, and >> definition should be clearly commented with EXACTLY what it does. >> >> At the end of the day OOP vs non-OOP doesn't matter so much to ME as much >> as some other people stress it, if you write clear fundamentally good >> code, >> you'll get the job over someone who doesn't have OOP examples or not... >> >> >> Also is there ingenuity in the code... The one thing that drives me batty >> is hard coded code... if you can make it extensible do it... Drawing a >> table?, make it as dynamic, robust and extensible as possible so it can be >> the foundation of future work... If you have something that goes beyond >> just >> standard work that defines your abilities you may try something like that >> (even in a somewhat raw state). >> >> Alec >> >> >> >> ------------------------------ >> >> Message: 4 >> Date: Fri, 3 Jul 2009 15:42:50 -0700 (PDT) >> From: matt donohue <mm_...@ya...> >> Subject: Re: [chiPHPug-discuss] Anyone up for code sample maturity >> mentoring? >> To: Chicago PHP User Group <chi...@li...> >> Message-ID: <779...@we...> >> Content-Type: text/plain; charset=iso-8859-1 >> >> Coding styles! >> >> Rich topic... >> I don't comment code much- I expect it to be explicit enough with the var >> names and such and?commenting DOES take a lot of time (although you can >> argue not commenting takes others more time). >> I sorta think- (unless there's math involved) your code should be >> understandable on it's own. >> That said- here are my legacy code/new developer?peeves: >> Referencing a variable or function that's included somewhere not apparent >> and not commenting where it's defined. >> Having variables not clearly delineated in the code like "some >> html<?=$junk?>that rambles" >> Similarly-?clear spacing between any variables or statements. >> for(i=1;1<$garbage;$1+=) is not acceptable! >> Variables that are not descriptive or conform to the code base's standard: >> $company - is an object. >> $companyRow or $arr_company - is an array from db. >> (I'm guilty of mixing camel case and underscores so I can't complain here) >> And Alec's lament double trued- code repition. Has this been done before? >> Could it be?moved into a class? >> This happens a billion times over with javascript which, is the buggiest >> anyway so it's triple bad. >> That one will make me pop off. >> Confess- I love ternary! >> -Rant Off- >> >> I do one thing though I don't see a lot elsewhere- >> When I have specific code blocks for one 'domain' (if you will) in a work >> file, I use centered comments because it's easier to scan mulitple blocks >> that way. >> //-------------------------------------------------------------------------- >> this be special code block for?ar >> holds?-------------------------------------------------------------------->> >> >> Matt >> >> >> |
From: Bryan F. <bry...@gm...> - 2009-07-03 23:18:11
|
Thanks for your input, guys. On Fri, Jul 3, 2009 at 5:42 PM, < chi...@li...> wrote: > Send chiPHPug-discuss mailing list submissions to > chi...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > or, via email, send a message with subject or body 'help' to > chi...@li... > > You can reach the person managing the list at > chi...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of chiPHPug-discuss digest..." > > > Today's Topics: > > 1. Anyone up for code sample maturity mentoring? (Bryan Fagan) > 2. Re: Anyone up for code sample maturity mentoring? (matt donohue) > 3. Re: Anyone up for code sample maturity mentoring? (Anacreo) > 4. Re: Anyone up for code sample maturity mentoring? (matt donohue) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 3 Jul 2009 12:44:58 -0500 > From: Bryan Fagan <bry...@gm...> > Subject: [chiPHPug-discuss] Anyone up for code sample maturity > mentoring? > To: chi...@li... > Message-ID: > <9ec...@ma...> > Content-Type: text/plain; charset=UTF-8 > > Hello, All. > > A recruiter recently told me that one of her clients--who was specifically > looking for a PHP developer--said that my code sample didn't show the level > of "maturity" that the client was looking for. Hmmm, ok. Can anyone help me > on my path to maturity with some constructive criticism of my code sample? > > I thought my code through and imagined it to be pretty good stuff, but > evidently I've got some growing to do. I certainly cannot claim to be a PHP > expert, but experience and reading have brought me through enough levels of > bad and immature code hell to imagine that I am well into the intermediate > range. I originally considered providing classes from my portfolio website, > which is a Zend Framework-based MVC setup with an XML database, but decided > instead to write a small command-line application from scratch so that a > potential employer could run it with as few setup hassles and snags as > possible. I set out to make sure that I included the following elements, > which generally constitute what I believe to be indicative of mature PHP > code: > > * standard OOP principles, including high decoupling and good > encapsulation, > inheritance, polymorphism, composition, and aggregation > * most PHP 5 OOP features, including interfaces, abstract classes, and > exception handling > * use of design patterns > * use of SPL and an external code library (Zend Framework, in this case) > * file, stream, and XML handling > * Zend coding standard > * E_STRICT cleanliness > > That's a pretty good checklist, right? And almost all of it made it in. So > is the problem in the execution? Is it that I didn't do it "test first" and > include the unit tests (that's a skill I'm still working on)? Questions, > comments, concerns? > > I'd appreciate as much insight as anyone has to offer. I'm not asking so > much for help with a re-write as for help understanding what is immature > about the code or the project as a whole--and what I need to understand and > learn to do to have any recruiter think, "Damn, this guy's good! Bring him > in." > > If you're interested in this mentoring task--or just want to point and > laugh--you can download the zipped-up code from my professional website at > the address http://bryanfagan.info/documents/Bryan_Fagan_Code_Sample.zipand > open it with the password "super good password". > > Bryan Fagan > > P.S. I am woefully unemployed, so if you see my stuff and know of someone > looking for a LAMP developer who might think anything even close to "this > guy's good," I would be eternally grateful if you'd pass on my contact > information or send me a link as appropriate. > > > ------------------------------ > > Message: 2 > Date: Fri, 3 Jul 2009 13:01:11 -0700 (PDT) > From: matt donohue <mm_...@ya...> > Subject: Re: [chiPHPug-discuss] Anyone up for code sample maturity > mentoring? > To: Chicago PHP User Group <chi...@li...> > Message-ID: <753...@we...> > Content-Type: text/plain; charset=iso-8859-1 > > Hey Bryan, > > Excellent question. > > I would bet the vacations days (I don't get to take) that they never got > too far into your code. > Just my opinion- but, when people ask for code samples they want original > examples exclusively. > I think less is always more when it comes to code samples (offer more > later!) and (again) I would ONLY show original code and specifically > examples of solving real world problems (not conceptual applications). > Small code?chunks (3 or 4 max) of larger classes, modules?or utility > classes that demonstrate your coding methods or philosophy dealing with > actual problems. > (I mix my samples with utility functions, class methods and even > Javascript, AJAX and JSON.) > Generally you would tailor the samples you choose?based on?the job > description and you would describe why you chose the examples > and how they fit into the the position you are applying for. > Think of the hiring questions they would be asking? Can he work with a > large existing code base. Is he good?working with a?database? > Is he more of a back-end developer or does he know CSS, AJAX and > Javascript? Can he work on his own or does he need supervision? > Do you: borrow code, use frameworks extensively, have your developed your > own framework/class base? > The real question you should answer for them is?how will YOU solve their > problems. > If you don't have a long work history this is difficult and could be the > reason they would mention maturity. > I would say offhand, your example is asking a lot from the prospective > employee. Not that it doesn't demonstrate a thorough understanding of PHP > concepts. > It's more thorough than I code. > I (personally) would never dig through a code sample like that to hire > someone. > You don't mention your work experience but, if it is minimal I would say > the odds of getting a job requiring code samples is limited. > That's not a mentoring position which, is what I believe you would want? No > one is going to hire someone who can 'conceptually' do the job for something > more front-line. So, in that vein I'm thinking your in-between a bubble of > not being an intern/trainee but, without enough 'real' experience to cement > a Jr Dev position. > Generally- code samples are a sanity check, and not why you are actually > hired. > Even with years of experience you'll find you are under qualified for some > positions and over qualified for others so, I wouldn't dwell on it much and > keep trying. > > I can send you an old example of a cover letter and code samples for > reference- email me. I'm sure they are embarassing. > > Matt > > > > > ________________________________ > From: Bryan Fagan <bry...@gm...> > To: chi...@li... > Sent: Friday, July 3, 2009 12:44:58 PM > Subject: [chiPHPug-discuss] Anyone up for code sample maturity mentoring? > > Hello, All. > > A recruiter recently told me that one of her clients--who was specifically > looking for a PHP developer--said that my code sample didn't show the level > of "maturity" that the client was looking for. Hmmm, ok. Can anyone help me > on my path to maturity with some constructive criticism of my code sample? > > I thought my code through and imagined it to be pretty good stuff, but > evidently I've got some growing to do. I certainly cannot claim to be a PHP > expert, but experience and reading have brought me through enough levels of > bad and immature code hell to imagine that I am well into the intermediate > range. I originally considered providing classes from my portfolio website, > which is a Zend Framework-based MVC setup with an XML database, but decided > instead to write a small command-line application from scratch so that a > potential employer could run it with as few setup hassles and snags as > possible. I set out to make sure that I included the following elements, > which generally constitute what I believe to be indicative of mature PHP > code: > > * standard OOP principles, including high decoupling and good > encapsulation, > inheritance, polymorphism, composition, and aggregation > * most PHP 5 OOP features, including interfaces, abstract classes, and > exception handling > * use of design patterns > * use of SPL and an external code library (Zend Framework, in this case) > * file, stream, and XML handling > * Zend coding standard > * E_STRICT cleanliness > > That's a pretty good checklist, right? And almost all of it made it in. So > is the problem in the execution? Is it that I didn't do it "test first" and > include the unit tests (that's a skill I'm still working on)? Questions, > comments, concerns? > > I'd appreciate as much insight as anyone has to offer. I'm not asking so > much for help with a re-write as for help understanding what is immature > about the code or the project as a whole--and what I need to understand and > learn to do to have any recruiter think, "Damn, this guy's good! Bring him > in." > > If you're interested in this mentoring task--or just want to point and > laugh--you can download the zipped-up code from my professional website at > the address http://bryanfagan.info/documents/Bryan_Fagan_Code_Sample.zipand > open it with the password "super good password". > > Bryan Fagan > > P.S. I am woefully unemployed, so if you see my stuff and know of someone > looking for a LAMP developer who might think anything even close to "this > guy's good," I would be eternally grateful if you'd pass on my contact > information or send me a link as appropriate. > > ------------------------------------------------------------------------------ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > ------------------------------ > > Message: 3 > Date: Fri, 3 Jul 2009 15:58:51 -0500 > From: Anacreo <an...@gm...> > Subject: Re: [chiPHPug-discuss] Anyone up for code sample maturity > mentoring? > To: Chicago PHP User Group <chi...@li...> > Message-ID: > <69c...@ma...> > Content-Type: text/plain; charset=ISO-8859-1 > > I couldn't agree with Matt's response more... if they just said the code > was > not mature enough, they probably didn't think the example was appropriate. > Did they give you a few example problems and ask for you to resolve them > or > did you just provide some code samples out of a portfolio? > Do you want to provide one or two of your examples and maybe we could give > you some examples of how to solve the problem? > Some things that drive me nuts when hiring: > * "Young" programmers who think they're so cool because they've > mastered the ternary operator, : ?, and use it to illegibility -- honestly > don't bother using it at all... > * Mixed variable and formatting styles within your code, shows a lot of > cut and paste action... > * No variable style at all -- Pick a standard and use it... > * Skipping language constructs, don't skip ;'s {}'s ()'s or []'s... > * Code repetition -- if you're repeating the same code chances are you > shouldn't be... > And finally code commenting... > Every procedure, variable, and > definition should be clearly commented with EXACTLY what it does. > > At the end of the day OOP vs non-OOP doesn't matter so much to ME as much > as some other people stress it, if you write clear fundamentally good code, > you'll get the job over someone who doesn't have OOP examples or not... > > > Also is there ingenuity in the code... The one thing that drives me batty > is hard coded code... if you can make it extensible do it... Drawing a > table?, make it as dynamic, robust and extensible as possible so it can be > the foundation of future work... If you have something that goes beyond > just > standard work that defines your abilities you may try something like that > (even in a somewhat raw state). > > Alec > > On Fri, Jul 3, 2009 at 3:01 PM, matt donohue <mm_...@ya...> wrote: > > > Hey Bryan, > > > > Excellent question. > > > > I would bet the vacations days (I don't get to take) that they never got > > too far into your code. > > Just my opinion- but, when people ask for code samples they want original > > examples exclusively. > > I think less is always more when it comes to code samples (offer more > > later!) and (again) I would ONLY show original code and specifically > > examples of solving real world problems (not conceptual applications). > > Small code chunks (3 or 4 max) of larger classes, modules or utility > > classes that demonstrate your coding methods or philosophy dealing with > > actual problems. > > (I mix my samples with utility functions, class methods and even > > Javascript, AJAX and JSON.) > > Generally you would tailor the samples you choose based on the job > > description and you would describe why you chose the examples > > and how they fit into the the position you are applying for. > > Think of the hiring questions they would be asking? Can he work with a > > large existing code base. Is he good working with a database? > > Is he more of a back-end developer or does he know CSS, AJAX and > > Javascript? Can he work on his own or does he need supervision? > > Do you: borrow code, use frameworks extensively, have your developed your > > own framework/class base? > > The real question you should answer for them is how will YOU solve their > > problems. > > If you don't have a long work history this is difficult and could be the > > reason they would mention maturity. > > I would say offhand, your example is asking a lot from the prospective > > employee. Not that it doesn't demonstrate a thorough understanding of PHP > > concepts. > > It's more thorough than I code. > > I (personally) would never dig through a code sample like that to hire > > someone. > > You don't mention your work experience but, if it is minimal I would say > > the odds of getting a job requiring code samples is limited. > > That's not a mentoring position which, is what I believe you would want? > No > > one is going to hire someone who can 'conceptually' do the job for > something > > more front-line. So, in that vein I'm thinking your in-between a bubble > of > > not being an intern/trainee but, without enough 'real' experience to > cement > > a Jr Dev position. > > Generally- code samples are a sanity check, and not why you are actually > > hired. > > Even with years of experience you'll find you are under qualified for > some > > positions and over qualified for others so, I wouldn't dwell on it much > and > > keep trying. > > > > I can send you an old example of a cover letter and code samples for > > reference- email me. I'm sure they are embarassing. > > > > Matt > > > > > > > > > > ________________________________ > > From: Bryan Fagan <bry...@gm...> > > To: chi...@li... > > Sent: Friday, July 3, 2009 12:44:58 PM > > Subject: [chiPHPug-discuss] Anyone up for code sample maturity mentoring? > > > > Hello, All. > > > > A recruiter recently told me that one of her clients--who was > specifically > > looking for a PHP developer--said that my code sample didn't show the > level > > of "maturity" that the client was looking for. Hmmm, ok. Can anyone help > me > > on my path to maturity with some constructive criticism of my code > sample? > > > > I thought my code through and imagined it to be pretty good stuff, but > > evidently I've got some growing to do. I certainly cannot claim to be a > PHP > > expert, but experience and reading have brought me through enough levels > of > > bad and immature code hell to imagine that I am well into the > intermediate > > range. I originally considered providing classes from my portfolio > website, > > which is a Zend Framework-based MVC setup with an XML database, but > decided > > instead to write a small command-line application from scratch so that a > > potential employer could run it with as few setup hassles and snags as > > possible. I set out to make sure that I included the following elements, > > which generally constitute what I believe to be indicative of mature PHP > > code: > > > > * standard OOP principles, including high decoupling and good > > encapsulation, > > inheritance, polymorphism, composition, and aggregation > > * most PHP 5 OOP features, including interfaces, abstract classes, and > > exception handling > > * use of design patterns > > * use of SPL and an external code library (Zend Framework, in this case) > > * file, stream, and XML handling > > * Zend coding standard > > * E_STRICT cleanliness > > > > That's a pretty good checklist, right? And almost all of it made it in. > So > > is the problem in the execution? Is it that I didn't do it "test first" > and > > include the unit tests (that's a skill I'm still working on)? Questions, > > comments, concerns? > > > > I'd appreciate as much insight as anyone has to offer. I'm not asking so > > much for help with a re-write as for help understanding what is immature > > about the code or the project as a whole--and what I need to understand > and > > learn to do to have any recruiter think, "Damn, this guy's good! Bring > him > > in." > > > > If you're interested in this mentoring task--or just want to point and > > laugh--you can download the zipped-up code from my professional website > at > > the address > http://bryanfagan.info/documents/Bryan_Fagan_Code_Sample.zipand > > open it with the password "super good password". > > > > Bryan Fagan > > > > P.S. I am woefully unemployed, so if you see my stuff and know of someone > > looking for a LAMP developer who might think anything even close to "this > > guy's good," I would be eternally grateful if you'd pass on my contact > > information or send me a link as appropriate. > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > chiPHPug-discuss mailing list > > chi...@li... > > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > chiPHPug-discuss mailing list > > chi...@li... > > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > > > ------------------------------ > > Message: 4 > Date: Fri, 3 Jul 2009 15:42:50 -0700 (PDT) > From: matt donohue <mm_...@ya...> > Subject: Re: [chiPHPug-discuss] Anyone up for code sample maturity > mentoring? > To: Chicago PHP User Group <chi...@li...> > Message-ID: <779...@we...> > Content-Type: text/plain; charset=iso-8859-1 > > Coding styles! > > Rich topic... > I don't comment code much- I expect it to be explicit enough with the var > names and such and?commenting DOES take a lot of time (although you can > argue not commenting takes others more time). > I sorta think- (unless there's math involved) your code should be > understandable on it's own. > That said- here are my legacy code/new developer?peeves: > Referencing a variable or function that's included somewhere not apparent > and not commenting where it's defined. > Having variables not clearly delineated in the code like "some > html<?=$junk?>that rambles" > Similarly-?clear spacing between any variables or statements. > for(i=1;1<$garbage;$1+=) is not acceptable! > Variables that are not descriptive or conform to the code base's standard: > $company - is an object. > $companyRow or $arr_company - is an array from db. > (I'm guilty of mixing camel case and underscores so I can't complain here) > And Alec's lament double trued- code repition. Has this been done before? > Could it be?moved into a class? > This happens a billion times over with javascript which, is the buggiest > anyway so it's triple bad. > That one will make me pop off. > Confess- I love ternary! > -Rant Off- > > I do one thing though I don't see a lot elsewhere- > When I have specific code blocks for one 'domain' (if you will) in a work > file, I use centered comments because it's easier to scan mulitple blocks > that way. > //-------------------------------------------------------------------------- > this be special code block for?ar > holds?-------------------------------------------------------------------->> > > Matt > > > ________________________________ > From: Anacreo <an...@gm...> > To: Chicago PHP User Group <chi...@li...> > Sent: Friday, July 3, 2009 3:58:51 PM > Subject: Re: [chiPHPug-discuss] Anyone up for code sample maturity > mentoring? > > I couldn't agree with Matt's response more... if they just said the code > was > not mature enough, they probably didn't think the example was appropriate. > Did they give you a few example problems and ask for you to resolve them or > did you just provide some code samples out of a portfolio? > Do you want to provide one or two of your examples and maybe we could give > you some examples of how to solve the problem? > ? Some things that drive me nuts when hiring: > ? ? *? "Young" programmers who think they're so cool because they've > mastered the ternary operator, : ?, and use it to illegibility -- honestly > don't bother using it at all... > ? ? *? Mixed variable and formatting styles within your code, shows a lot > of > cut and paste action... > ? ? *? No variable style at all -- Pick a standard and use it... > ? ? *? Skipping language constructs, don't skip ;'s {}'s ()'s or []'s... > ? ? *? Code repetition -- if you're repeating the same code chances are you > shouldn't be... > ? And finally code commenting... > ? ? Every procedure, variable, and > definition should be clearly commented with EXACTLY what it does. > > ? At the end of the day OOP vs non-OOP doesn't matter so much to ME as much > as some other people stress it, if you write clear fundamentally good code, > you'll get the job over someone who doesn't have OOP examples or not... > > > Also is there ingenuity in the code...? The one thing that drives me batty > is hard coded code... if you can make it extensible do it...? Drawing a > table?, make it as dynamic, robust and extensible as possible so it can be > the foundation of future work... If you have something that goes beyond > just > standard work that defines your abilities you may try something like that > (even in a somewhat raw state). > > Alec > > On Fri, Jul 3, 2009 at 3:01 PM, matt donohue <mm_...@ya...> wrote: > > > Hey Bryan, > > > > Excellent question. > > > > I would bet the vacations days (I don't get to take) that they never got > > too far into your code. > > Just my opinion- but, when people ask for code samples they want original > > examples exclusively. > > I think less is always more when it comes to code samples (offer more > > later!) and (again) I would ONLY show original code and specifically > > examples of solving real world problems (not conceptual applications). > > Small code chunks (3 or 4 max) of larger classes, modules or utility > > classes that demonstrate your coding methods or philosophy dealing with > > actual problems. > > (I mix my samples with utility functions, class methods and even > > Javascript, AJAX and JSON.) > > Generally you would tailor the samples you choose based on the job > > description and you would describe why you chose the examples > > and how they fit into the the position you are applying for. > > Think of the hiring questions they would be asking? Can he work with a > > large existing code base. Is he good working with a database? > > Is he more of a back-end developer or does he know CSS, AJAX and > > Javascript? Can he work on his own or does he need supervision? > > Do you: borrow code, use frameworks extensively, have your developed your > > own framework/class base? > > The real question you should answer for them is how will YOU solve their > > problems. > > If you don't have a long work history this is difficult and could be the > > reason they would mention maturity. > > I would say offhand, your example is asking a lot from the prospective > > employee. Not that it doesn't demonstrate a thorough understanding of PHP > > concepts. > > It's more thorough than I code. > > I (personally) would never dig through a code sample like that to hire > > someone. > > You don't mention your work experience but, if it is minimal I would say > > the odds of getting a job requiring code samples is limited. > > That's not a mentoring position which, is what I believe you would want? > No > > one is going to hire someone who can 'conceptually' do the job for > something > > more front-line. So, in that vein I'm thinking your in-between a bubble > of > > not being an intern/trainee but, without enough 'real' experience to > cement > > a Jr Dev position. > > Generally- code samples are a sanity check, and not why you are actually > > hired. > > Even with years of experience you'll find you are under qualified for > some > > positions and over qualified for others so, I wouldn't dwell on it much > and > > keep trying. > > > > I can send you an old example of a cover letter and code samples for > > reference- email me. I'm sure they are embarassing. > > > > Matt > > > > > > > > > > ________________________________ > > From: Bryan Fagan <bry...@gm...> > > To: chi...@li... > > Sent: Friday, July 3, 2009 12:44:58 PM > > Subject: [chiPHPug-discuss] Anyone up for code sample maturity mentoring? > > > > Hello, All. > > > > A recruiter recently told me that one of her clients--who was > specifically > > looking for a PHP developer--said that my code sample didn't show the > level > > of "maturity" that the client was looking for. Hmmm, ok. Can anyone help > me > > on my path to maturity with some constructive criticism of my code > sample? > > > > I thought my code through and imagined it to be pretty good stuff, but > > evidently I've got some growing to do. I certainly cannot claim to be a > PHP > > expert, but experience and reading have brought me through enough levels > of > > bad and immature code hell to imagine that I am well into the > intermediate > > range. I originally considered providing classes from my portfolio > website, > > which is a Zend Framework-based MVC setup with an XML database, but > decided > > instead to write a small command-line application from scratch so that a > > potential employer could run it with as few setup hassles and snags as > > possible. I set out to make sure that I included the following elements, > > which generally constitute what I believe to be indicative of mature PHP > > code: > > > > * standard OOP principles, including high decoupling and good > > encapsulation, > > inheritance, polymorphism, composition, and aggregation > > * most PHP 5 OOP features, including interfaces, abstract classes, and > > exception handling > > * use of design patterns > > * use of SPL and an external code library (Zend Framework, in this case) > > * file, stream, and XML handling > > * Zend coding standard > > * E_STRICT cleanliness > > > > That's a pretty good checklist, right? And almost all of it made it in. > So > > is the problem in the execution? Is it that I didn't do it "test first" > and > > include the unit tests (that's a skill I'm still working on)? Questions, > > comments, concerns? > > > > I'd appreciate as much insight as anyone has to offer. I'm not asking so > > much for help with a re-write as for help understanding what is immature > > about the code or the project as a whole--and what I need to understand > and > > learn to do to have any recruiter think, "Damn, this guy's good! Bring > him > > in." > > > > If you're interested in this mentoring task--or just want to point and > > laugh--you can download the zipped-up code from my professional website > at > > the address > http://bryanfagan.info/documents/Bryan_Fagan_Code_Sample.zipand > > open it with the password "super good password". > > > > Bryan Fagan > > > > P.S. I am woefully unemployed, so if you see my stuff and know of someone > > looking for a LAMP developer who might think anything even close to "this > > guy's good," I would be eternally grateful if you'd pass on my contact > > information or send me a link as appropriate. > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > chiPHPug-discuss mailing list > > chi...@li... > > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > chiPHPug-discuss mailing list > > chi...@li... > > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > > ------------------------------------------------------------------------------ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > ------------------------------ > > > ------------------------------------------------------------------------------ > > > ------------------------------ > > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > End of chiPHPug-discuss Digest, Vol 39, Issue 1 > *********************************************** > |
From: matt d. <mm_...@ya...> - 2009-07-03 22:42:55
|
Coding styles! Rich topic... I don't comment code much- I expect it to be explicit enough with the var names and such and commenting DOES take a lot of time (although you can argue not commenting takes others more time). I sorta think- (unless there's math involved) your code should be understandable on it's own. That said- here are my legacy code/new developer peeves: Referencing a variable or function that's included somewhere not apparent and not commenting where it's defined. Having variables not clearly delineated in the code like "some html<?=$junk?>that rambles" Similarly- clear spacing between any variables or statements. for(i=1;1<$garbage;$1+=) is not acceptable! Variables that are not descriptive or conform to the code base's standard: $company - is an object. $companyRow or $arr_company - is an array from db. (I'm guilty of mixing camel case and underscores so I can't complain here) And Alec's lament double trued- code repition. Has this been done before? Could it be moved into a class? This happens a billion times over with javascript which, is the buggiest anyway so it's triple bad. That one will make me pop off. Confess- I love ternary! -Rant Off- I do one thing though I don't see a lot elsewhere- When I have specific code blocks for one 'domain' (if you will) in a work file, I use centered comments because it's easier to scan mulitple blocks that way. //-------------------------------------------------------------------------- this be special code block for ar holds -------------------------------------------------------------------->> Matt ________________________________ From: Anacreo <an...@gm...> To: Chicago PHP User Group <chi...@li...> Sent: Friday, July 3, 2009 3:58:51 PM Subject: Re: [chiPHPug-discuss] Anyone up for code sample maturity mentoring? I couldn't agree with Matt's response more... if they just said the code was not mature enough, they probably didn't think the example was appropriate. Did they give you a few example problems and ask for you to resolve them or did you just provide some code samples out of a portfolio? Do you want to provide one or two of your examples and maybe we could give you some examples of how to solve the problem? Some things that drive me nuts when hiring: * "Young" programmers who think they're so cool because they've mastered the ternary operator, : ?, and use it to illegibility -- honestly don't bother using it at all... * Mixed variable and formatting styles within your code, shows a lot of cut and paste action... * No variable style at all -- Pick a standard and use it... * Skipping language constructs, don't skip ;'s {}'s ()'s or []'s... * Code repetition -- if you're repeating the same code chances are you shouldn't be... And finally code commenting... Every procedure, variable, and definition should be clearly commented with EXACTLY what it does. At the end of the day OOP vs non-OOP doesn't matter so much to ME as much as some other people stress it, if you write clear fundamentally good code, you'll get the job over someone who doesn't have OOP examples or not... Also is there ingenuity in the code... The one thing that drives me batty is hard coded code... if you can make it extensible do it... Drawing a table?, make it as dynamic, robust and extensible as possible so it can be the foundation of future work... If you have something that goes beyond just standard work that defines your abilities you may try something like that (even in a somewhat raw state). Alec On Fri, Jul 3, 2009 at 3:01 PM, matt donohue <mm_...@ya...> wrote: > Hey Bryan, > > Excellent question. > > I would bet the vacations days (I don't get to take) that they never got > too far into your code. > Just my opinion- but, when people ask for code samples they want original > examples exclusively. > I think less is always more when it comes to code samples (offer more > later!) and (again) I would ONLY show original code and specifically > examples of solving real world problems (not conceptual applications). > Small code chunks (3 or 4 max) of larger classes, modules or utility > classes that demonstrate your coding methods or philosophy dealing with > actual problems. > (I mix my samples with utility functions, class methods and even > Javascript, AJAX and JSON.) > Generally you would tailor the samples you choose based on the job > description and you would describe why you chose the examples > and how they fit into the the position you are applying for. > Think of the hiring questions they would be asking? Can he work with a > large existing code base. Is he good working with a database? > Is he more of a back-end developer or does he know CSS, AJAX and > Javascript? Can he work on his own or does he need supervision? > Do you: borrow code, use frameworks extensively, have your developed your > own framework/class base? > The real question you should answer for them is how will YOU solve their > problems. > If you don't have a long work history this is difficult and could be the > reason they would mention maturity. > I would say offhand, your example is asking a lot from the prospective > employee. Not that it doesn't demonstrate a thorough understanding of PHP > concepts. > It's more thorough than I code. > I (personally) would never dig through a code sample like that to hire > someone. > You don't mention your work experience but, if it is minimal I would say > the odds of getting a job requiring code samples is limited. > That's not a mentoring position which, is what I believe you would want? No > one is going to hire someone who can 'conceptually' do the job for something > more front-line. So, in that vein I'm thinking your in-between a bubble of > not being an intern/trainee but, without enough 'real' experience to cement > a Jr Dev position. > Generally- code samples are a sanity check, and not why you are actually > hired. > Even with years of experience you'll find you are under qualified for some > positions and over qualified for others so, I wouldn't dwell on it much and > keep trying. > > I can send you an old example of a cover letter and code samples for > reference- email me. I'm sure they are embarassing. > > Matt > > > > > ________________________________ > From: Bryan Fagan <bry...@gm...> > To: chi...@li... > Sent: Friday, July 3, 2009 12:44:58 PM > Subject: [chiPHPug-discuss] Anyone up for code sample maturity mentoring? > > Hello, All. > > A recruiter recently told me that one of her clients--who was specifically > looking for a PHP developer--said that my code sample didn't show the level > of "maturity" that the client was looking for. Hmmm, ok. Can anyone help me > on my path to maturity with some constructive criticism of my code sample? > > I thought my code through and imagined it to be pretty good stuff, but > evidently I've got some growing to do. I certainly cannot claim to be a PHP > expert, but experience and reading have brought me through enough levels of > bad and immature code hell to imagine that I am well into the intermediate > range. I originally considered providing classes from my portfolio website, > which is a Zend Framework-based MVC setup with an XML database, but decided > instead to write a small command-line application from scratch so that a > potential employer could run it with as few setup hassles and snags as > possible. I set out to make sure that I included the following elements, > which generally constitute what I believe to be indicative of mature PHP > code: > > * standard OOP principles, including high decoupling and good > encapsulation, > inheritance, polymorphism, composition, and aggregation > * most PHP 5 OOP features, including interfaces, abstract classes, and > exception handling > * use of design patterns > * use of SPL and an external code library (Zend Framework, in this case) > * file, stream, and XML handling > * Zend coding standard > * E_STRICT cleanliness > > That's a pretty good checklist, right? And almost all of it made it in. So > is the problem in the execution? Is it that I didn't do it "test first" and > include the unit tests (that's a skill I'm still working on)? Questions, > comments, concerns? > > I'd appreciate as much insight as anyone has to offer. I'm not asking so > much for help with a re-write as for help understanding what is immature > about the code or the project as a whole--and what I need to understand and > learn to do to have any recruiter think, "Damn, this guy's good! Bring him > in." > > If you're interested in this mentoring task--or just want to point and > laugh--you can download the zipped-up code from my professional website at > the address http://bryanfagan.info/documents/Bryan_Fagan_Code_Sample.zipand > open it with the password "super good password". > > Bryan Fagan > > P.S. I am woefully unemployed, so if you see my stuff and know of someone > looking for a LAMP developer who might think anything even close to "this > guy's good," I would be eternally grateful if you'd pass on my contact > information or send me a link as appropriate. > > ------------------------------------------------------------------------------ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > ------------------------------------------------------------------------------ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > ------------------------------------------------------------------------------ _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Anacreo <an...@gm...> - 2009-07-03 20:59:02
|
I couldn't agree with Matt's response more... if they just said the code was not mature enough, they probably didn't think the example was appropriate. Did they give you a few example problems and ask for you to resolve them or did you just provide some code samples out of a portfolio? Do you want to provide one or two of your examples and maybe we could give you some examples of how to solve the problem? Some things that drive me nuts when hiring: * "Young" programmers who think they're so cool because they've mastered the ternary operator, : ?, and use it to illegibility -- honestly don't bother using it at all... * Mixed variable and formatting styles within your code, shows a lot of cut and paste action... * No variable style at all -- Pick a standard and use it... * Skipping language constructs, don't skip ;'s {}'s ()'s or []'s... * Code repetition -- if you're repeating the same code chances are you shouldn't be... And finally code commenting... Every procedure, variable, and definition should be clearly commented with EXACTLY what it does. At the end of the day OOP vs non-OOP doesn't matter so much to ME as much as some other people stress it, if you write clear fundamentally good code, you'll get the job over someone who doesn't have OOP examples or not... Also is there ingenuity in the code... The one thing that drives me batty is hard coded code... if you can make it extensible do it... Drawing a table?, make it as dynamic, robust and extensible as possible so it can be the foundation of future work... If you have something that goes beyond just standard work that defines your abilities you may try something like that (even in a somewhat raw state). Alec On Fri, Jul 3, 2009 at 3:01 PM, matt donohue <mm_...@ya...> wrote: > Hey Bryan, > > Excellent question. > > I would bet the vacations days (I don't get to take) that they never got > too far into your code. > Just my opinion- but, when people ask for code samples they want original > examples exclusively. > I think less is always more when it comes to code samples (offer more > later!) and (again) I would ONLY show original code and specifically > examples of solving real world problems (not conceptual applications). > Small code chunks (3 or 4 max) of larger classes, modules or utility > classes that demonstrate your coding methods or philosophy dealing with > actual problems. > (I mix my samples with utility functions, class methods and even > Javascript, AJAX and JSON.) > Generally you would tailor the samples you choose based on the job > description and you would describe why you chose the examples > and how they fit into the the position you are applying for. > Think of the hiring questions they would be asking? Can he work with a > large existing code base. Is he good working with a database? > Is he more of a back-end developer or does he know CSS, AJAX and > Javascript? Can he work on his own or does he need supervision? > Do you: borrow code, use frameworks extensively, have your developed your > own framework/class base? > The real question you should answer for them is how will YOU solve their > problems. > If you don't have a long work history this is difficult and could be the > reason they would mention maturity. > I would say offhand, your example is asking a lot from the prospective > employee. Not that it doesn't demonstrate a thorough understanding of PHP > concepts. > It's more thorough than I code. > I (personally) would never dig through a code sample like that to hire > someone. > You don't mention your work experience but, if it is minimal I would say > the odds of getting a job requiring code samples is limited. > That's not a mentoring position which, is what I believe you would want? No > one is going to hire someone who can 'conceptually' do the job for something > more front-line. So, in that vein I'm thinking your in-between a bubble of > not being an intern/trainee but, without enough 'real' experience to cement > a Jr Dev position. > Generally- code samples are a sanity check, and not why you are actually > hired. > Even with years of experience you'll find you are under qualified for some > positions and over qualified for others so, I wouldn't dwell on it much and > keep trying. > > I can send you an old example of a cover letter and code samples for > reference- email me. I'm sure they are embarassing. > > Matt > > > > > ________________________________ > From: Bryan Fagan <bry...@gm...> > To: chi...@li... > Sent: Friday, July 3, 2009 12:44:58 PM > Subject: [chiPHPug-discuss] Anyone up for code sample maturity mentoring? > > Hello, All. > > A recruiter recently told me that one of her clients--who was specifically > looking for a PHP developer--said that my code sample didn't show the level > of "maturity" that the client was looking for. Hmmm, ok. Can anyone help me > on my path to maturity with some constructive criticism of my code sample? > > I thought my code through and imagined it to be pretty good stuff, but > evidently I've got some growing to do. I certainly cannot claim to be a PHP > expert, but experience and reading have brought me through enough levels of > bad and immature code hell to imagine that I am well into the intermediate > range. I originally considered providing classes from my portfolio website, > which is a Zend Framework-based MVC setup with an XML database, but decided > instead to write a small command-line application from scratch so that a > potential employer could run it with as few setup hassles and snags as > possible. I set out to make sure that I included the following elements, > which generally constitute what I believe to be indicative of mature PHP > code: > > * standard OOP principles, including high decoupling and good > encapsulation, > inheritance, polymorphism, composition, and aggregation > * most PHP 5 OOP features, including interfaces, abstract classes, and > exception handling > * use of design patterns > * use of SPL and an external code library (Zend Framework, in this case) > * file, stream, and XML handling > * Zend coding standard > * E_STRICT cleanliness > > That's a pretty good checklist, right? And almost all of it made it in. So > is the problem in the execution? Is it that I didn't do it "test first" and > include the unit tests (that's a skill I'm still working on)? Questions, > comments, concerns? > > I'd appreciate as much insight as anyone has to offer. I'm not asking so > much for help with a re-write as for help understanding what is immature > about the code or the project as a whole--and what I need to understand and > learn to do to have any recruiter think, "Damn, this guy's good! Bring him > in." > > If you're interested in this mentoring task--or just want to point and > laugh--you can download the zipped-up code from my professional website at > the address http://bryanfagan.info/documents/Bryan_Fagan_Code_Sample.zipand > open it with the password "super good password". > > Bryan Fagan > > P.S. I am woefully unemployed, so if you see my stuff and know of someone > looking for a LAMP developer who might think anything even close to "this > guy's good," I would be eternally grateful if you'd pass on my contact > information or send me a link as appropriate. > > ------------------------------------------------------------------------------ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > ------------------------------------------------------------------------------ > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > |
From: matt d. <mm_...@ya...> - 2009-07-03 20:01:38
|
Hey Bryan, Excellent question. I would bet the vacations days (I don't get to take) that they never got too far into your code. Just my opinion- but, when people ask for code samples they want original examples exclusively. I think less is always more when it comes to code samples (offer more later!) and (again) I would ONLY show original code and specifically examples of solving real world problems (not conceptual applications). Small code chunks (3 or 4 max) of larger classes, modules or utility classes that demonstrate your coding methods or philosophy dealing with actual problems. (I mix my samples with utility functions, class methods and even Javascript, AJAX and JSON.) Generally you would tailor the samples you choose based on the job description and you would describe why you chose the examples and how they fit into the the position you are applying for. Think of the hiring questions they would be asking? Can he work with a large existing code base. Is he good working with a database? Is he more of a back-end developer or does he know CSS, AJAX and Javascript? Can he work on his own or does he need supervision? Do you: borrow code, use frameworks extensively, have your developed your own framework/class base? The real question you should answer for them is how will YOU solve their problems. If you don't have a long work history this is difficult and could be the reason they would mention maturity. I would say offhand, your example is asking a lot from the prospective employee. Not that it doesn't demonstrate a thorough understanding of PHP concepts. It's more thorough than I code. I (personally) would never dig through a code sample like that to hire someone. You don't mention your work experience but, if it is minimal I would say the odds of getting a job requiring code samples is limited. That's not a mentoring position which, is what I believe you would want? No one is going to hire someone who can 'conceptually' do the job for something more front-line. So, in that vein I'm thinking your in-between a bubble of not being an intern/trainee but, without enough 'real' experience to cement a Jr Dev position. Generally- code samples are a sanity check, and not why you are actually hired. Even with years of experience you'll find you are under qualified for some positions and over qualified for others so, I wouldn't dwell on it much and keep trying. I can send you an old example of a cover letter and code samples for reference- email me. I'm sure they are embarassing. Matt ________________________________ From: Bryan Fagan <bry...@gm...> To: chi...@li... Sent: Friday, July 3, 2009 12:44:58 PM Subject: [chiPHPug-discuss] Anyone up for code sample maturity mentoring? Hello, All. A recruiter recently told me that one of her clients--who was specifically looking for a PHP developer--said that my code sample didn't show the level of "maturity" that the client was looking for. Hmmm, ok. Can anyone help me on my path to maturity with some constructive criticism of my code sample? I thought my code through and imagined it to be pretty good stuff, but evidently I've got some growing to do. I certainly cannot claim to be a PHP expert, but experience and reading have brought me through enough levels of bad and immature code hell to imagine that I am well into the intermediate range. I originally considered providing classes from my portfolio website, which is a Zend Framework-based MVC setup with an XML database, but decided instead to write a small command-line application from scratch so that a potential employer could run it with as few setup hassles and snags as possible. I set out to make sure that I included the following elements, which generally constitute what I believe to be indicative of mature PHP code: * standard OOP principles, including high decoupling and good encapsulation, inheritance, polymorphism, composition, and aggregation * most PHP 5 OOP features, including interfaces, abstract classes, and exception handling * use of design patterns * use of SPL and an external code library (Zend Framework, in this case) * file, stream, and XML handling * Zend coding standard * E_STRICT cleanliness That's a pretty good checklist, right? And almost all of it made it in. So is the problem in the execution? Is it that I didn't do it "test first" and include the unit tests (that's a skill I'm still working on)? Questions, comments, concerns? I'd appreciate as much insight as anyone has to offer. I'm not asking so much for help with a re-write as for help understanding what is immature about the code or the project as a whole--and what I need to understand and learn to do to have any recruiter think, "Damn, this guy's good! Bring him in." If you're interested in this mentoring task--or just want to point and laugh--you can download the zipped-up code from my professional website at the address http://bryanfagan.info/documents/Bryan_Fagan_Code_Sample.zip and open it with the password "super good password". Bryan Fagan P.S. I am woefully unemployed, so if you see my stuff and know of someone looking for a LAMP developer who might think anything even close to "this guy's good," I would be eternally grateful if you'd pass on my contact information or send me a link as appropriate. ------------------------------------------------------------------------------ _______________________________________________ chiPHPug-discuss mailing list chi...@li... https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss |
From: Bryan F. <bry...@gm...> - 2009-07-03 17:45:10
|
Hello, All. A recruiter recently told me that one of her clients--who was specifically looking for a PHP developer--said that my code sample didn't show the level of "maturity" that the client was looking for. Hmmm, ok. Can anyone help me on my path to maturity with some constructive criticism of my code sample? I thought my code through and imagined it to be pretty good stuff, but evidently I've got some growing to do. I certainly cannot claim to be a PHP expert, but experience and reading have brought me through enough levels of bad and immature code hell to imagine that I am well into the intermediate range. I originally considered providing classes from my portfolio website, which is a Zend Framework-based MVC setup with an XML database, but decided instead to write a small command-line application from scratch so that a potential employer could run it with as few setup hassles and snags as possible. I set out to make sure that I included the following elements, which generally constitute what I believe to be indicative of mature PHP code: * standard OOP principles, including high decoupling and good encapsulation, inheritance, polymorphism, composition, and aggregation * most PHP 5 OOP features, including interfaces, abstract classes, and exception handling * use of design patterns * use of SPL and an external code library (Zend Framework, in this case) * file, stream, and XML handling * Zend coding standard * E_STRICT cleanliness That's a pretty good checklist, right? And almost all of it made it in. So is the problem in the execution? Is it that I didn't do it "test first" and include the unit tests (that's a skill I'm still working on)? Questions, comments, concerns? I'd appreciate as much insight as anyone has to offer. I'm not asking so much for help with a re-write as for help understanding what is immature about the code or the project as a whole--and what I need to understand and learn to do to have any recruiter think, "Damn, this guy's good! Bring him in." If you're interested in this mentoring task--or just want to point and laugh--you can download the zipped-up code from my professional website at the address http://bryanfagan.info/documents/Bryan_Fagan_Code_Sample.zip and open it with the password "super good password". Bryan Fagan P.S. I am woefully unemployed, so if you see my stuff and know of someone looking for a LAMP developer who might think anything even close to "this guy's good," I would be eternally grateful if you'd pass on my contact information or send me a link as appropriate. |
From: Kent G. <ke...@ri...> - 2009-06-25 17:31:09
|
I have a 3-6 month opening at our Holland, MI facility for a senior PHP developer. If anyone may be interested, please feel free to email me at kent () ridersdiscount.com. Successful Holland, Michigan based ecommerce retailer seeks a talented senior developer to improve and build upon our existing customer facing systems. A minimum of 5 years prior experience with PHP is required. We strongly desire an individual that has a track record building highly-scalable web applications. This is a contract position with an expected duration of 3-6 months. All work must be performed at our facility 5 days per week. Responsibilities * Design new features, both on the back-end (data modeling and management) and front-end using PHP, MySQL, SOLR/Lucerne, AJAX and other open-source technologies. * Experience with large data sets, our environment manages over 700,000 SKU's. * Develop and evolve website infrastructure and back-end processes that manage business critical tasks. * Continuous improvement of development processes and architectural patterns. Requirements * Experience building high quality, scalable web applications. Emphasis on ecommerce. * Extensive experience programming in PHP 4/5 (5 preferred) * XML, SOAP, cURL * Experience with JavaScript, JSON, AJAX, CSS, and XHTML * Expert knowledge of SQL and relational database structures. * A good understanding of faceted / guided navigation and search technologies * Ability to develop and document clean, object oriented code. Prior history with the following is not required, but definitely helpful in our environment: * Java * Tomcat * Spring Framework * Pentaho * Authorize.net API integration * Shell scripting * Smarty or related template systems * JavaScript frameworks such as jQuery Principals only, no firms please. |
From: Russ C. <ru...@gr...> - 2009-06-16 01:04:10
|
Hi all, Long time lurker, first time poster :-) A friend of mine is looking for a PHP developer to do some contract work on a project of his. Here's the details: Seeking developer to add functionality to an existing PHP-based website, still under development and not yet deployed. Site is a custom-developed message board / discussion forum type of system. Candidates must have experience with and be comfortable developing with the following: Object Oriented PHP (v5+), PDO, Smarty, and MySQL. Prefer someone willing to do some fixed-rate contract work as well as some hourly work down the road and possibly some support as the site goes live. Please respond to bob...@gm... with hourly rate and availability. Feel free to pass this blurb on to anyone else not on this list. Thanks! Russ |
From: Arlo L. <ar...@ar...> - 2009-06-13 06:31:59
|
Hi folks, Thanks for your feedback on this question! In particular... Rich wrote: > I would write it such that the getFoo() could accept multiple IDs, > across the board. This is the direction I've taken and it seems to be going well. For example, if I have a Orders class then it will include a getOrders method that can take a list of IDs and return a result set. And I've made getOrders a static method so that I can call it any time without having to instantiate an orders object. There's just one thing that bothers me about this. I can see the value of instantiating an object if I want to do a lot of work with it -- like if I have a multi-page order form that incrementally collects data and uses methods like calculateShipping and calculateTaxes along the way. But if I just want to view a list of orders, and I just call the static getOrders method, then I might as well be calling an ordinary function. It's still helpful to have all the functions relating to orders in one place, but is it weird to use the same Orders class in two fundamentally different ways? I guess what I'm saying is that classes have been useful throughout the site, but objects have only been useful in a few places. Kenneth wrote: > It's far more efficient to issues smart and efficient queries that > return associative arrays, and then have classes that know what to do > with those arrays. Can you elaborate on that? I think I agree but I wonder where you would put those SQL queries. So far I've been able to put all of my queries inside my classes without any special effort, and I'm liking that level of abstraction from the database. The classes are performing the queries and giving back arrays to the main page code. Matt wrote: > It appears your objects are just representations of data tables? > In our system we use a base class row.inc that handles a lot of the data > access and base functionality all classes need. > All other objects extend this class. I'm doing a similar thing with a Base class that provides some common functionality to all the other classes. For example, it can save and retrieve data from a session for that multi-page order form I mentioned above. I'm really digging the inheritance capabilities ... adding a new feature to the Base class makes it instantly available throughout the site. Wilfried wrote: > I personally don't spend tons of time going out of my way to make my > code all OOP'ed up just for the sake of OOP. For some things, OOP just > isn't the right axe. Agreed, but I'm already seeing some benefits with this project. I'll be able to share a lot more code between the public site and the admin interface, for example. Larry wrote: > Not only is it a good history lesson, this article is also spot-on about the > challenges of OO software and relational databases: > > http://blogs.tedneward.com/2006/06/26/The+Vietnam+Of+Computer+Science.aspx My goodness! Well, I'm relieved to hear that I'm not the only one who's feeling a little mixed up about this. Cheers, -Arlo _______________________________ Arlo Leach 773.769.6106 http://arlomedia.com |
From: Larry G. <la...@ga...> - 2009-06-12 05:12:19
|
On Thursday 11 June 2009 7:43:48 am Kenneth Downs wrote: > OOP is an amazing and wonderful thing, when used in its context. > > Discovering the context is simple in black-and-white cases. The user > interface lends itself very nicely to OOP concepts, and I've found UI's > much easier to build with the OOP approach. > > Mapping to the database is more of a gray area because the database > operates on different principles. Where the code meets the database you > have a decision about how to proceed. Not only is it a good history lesson, this article is also spot-on about the challenges of OO software and relational databases: http://blogs.tedneward.com/2006/06/26/The+Vietnam+Of+Computer+Science.aspx One of the things I really like about PHP is that it lets you mix and match procedural, OO, and in 5.3 functional code to match your use case. Don't assume that one approach is always better. It's been shown mathematically that there is no problem that cannot be solved in all three approaches. It's just often much easier to solve a given problem in one of them, and a different problem in another. Right tool for the job and son on. -- Larry Garfield la...@ga... |
From: Richard L. <ce...@l-...> - 2009-06-11 15:22:05
|
Ya never know. Maybe they learned a lot of PHP on Windoze IIS environment, and never had to deal with Apache. :-) It's certainly easy enough to re-frame the question: Which URLs and domain names should point to which directories? I was going to register until I saw the required fields. Talk about your steep signup curve... Note that he's suggesting that the sysadmin should be ASKING the devs for their input, which would be a refreshing change :-) On Thu, June 11, 2009 7:29 am, matt donohue wrote: > This article was annoying- but, not annoying enough to get me to > register and comment because you can't tell a system admin anything > and who actually has one? > The premise that a developer would not know what the httpd.conf file > is I find ridiculous. > > http://www.linux-mag.com/cache/7361/1.html > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch |
From: Richard L. <ce...@l-...> - 2009-06-11 15:13:22
|
This came through just fine. You may have set up mailman to not show you your own posts... I think that's one of the options in the setup on the list preferences. On Wed, June 10, 2009 2:10 pm, Wilfried Schobeiri wrote: > This could be very expensive, but if you want to truly go all out OOP/ > ORM-like, have you thought about returning an object instead of > returning a list or array? This object could perhaps mirror/extend a > pre-defined one, with functions that then go off and fetch the > details? > > Ex: > $member = new Member($member_id); > $photos = $member->getPhotos(where $query=''); //gets all photos, > results in $photos > $details = $photos->getDetails(); //gets all details about $photos, > results in $details? or perhaps getDetails() just populates $photos > further, no need for the return? whatever is prettier to you. > > with $member containing the member data in a way thats useful to the > methodsin the object > with $photos containing the data of the getPhotos query thats userful > to methods within a photos structure > with $details somehow containing some stdclass structure/array/ > whatever that contains what youre looking for in an interable method. > > This way you avoid having to iterate and do individual queries. Then > again, you might actually want to do that. I don't know what your > workload looks like or if it even matters. With the getDetails() > function as above, it gives you the option to query as you'd like. I'd > personally throw the IDs in a IN() query limited to 20 ids per each > query, post multiget on my cache (The 20 limit is to avoid innodb mvcc > deadlocks on high concurrency systems, ymmv). > > I'd be interested to see how others disagree with me on this. I > personally don't spend tons of time going out of my way to make my > code all OOP'ed up just for the sake of OOP. For some things, OOP just > isn't the right axe. > > > On Jun 10, 2009, at 13:33 , Arlo Leach wrote: > >> Hi folks, >> >> I'm doing my first project with a fully object-oriented approach and >> I have >> a question about how you all would break the code apart. >> >> Let's say I have a social networking site where members can upload >> photos, >> and I want to display a particular member's photos. >> >> One approach is to have a Member object, with a method getPhotos, >> that >> returns the IDs of the photos that belong to that member; and to >> have a >> Photo object, with a method getDetails, that returns the details for >> a given >> photo. In order to display a member's photos, I would first call >> getPhotos >> for the member, then call getDetails for each of the returned >> photos. This >> makes sense from an encapsulation perspective, but it seems wasteful >> because >> I'd have one initial database query plus an additional query for >> each photo. >> >> I could build getDetails so that it can take a list of IDs and >> return the >> details for all the photos at once, and then I'd just have two >> queries. Or I >> could build a getPhotosByMember method that accepts a member ID as >> an >> argument and returns the details for all the photos belonging to >> that >> member. Then I'd be down to one query, but I would probably end up >> building >> several similar methods (e.g., getRecentPhotos) that would have >> redundant >> code. >> >> What would you say is the normal or accepted way to structure this? >> >> Thanks, >> -Arlo >> >> _______________________________ >> >> Arlo Leach >> 773.769.6106 >> http://arlomedia.com >> >> >> >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensing option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> chiPHPug-discuss mailing list >> chi...@li... >> https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss > -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch |