Skip to main content

Home/ PHP Programming/ Group items matching "1" in title, tags, annotations or url

Group items matching
in title, tags, annotations or url

Sort By: Relevance | Date Filter: All | Bookmarks | Topics Simple Middle
Sarah HL

ongoing · Test-Driven Heresy - 0 views

  • As a profession, we do a lot more software maintenance than we do greenfield development.
  • the deep-TDD rules: ¶ Never write code until you have a failing test. Never write any more code than is necessary to un-fail the test.
  • we do way more maintenance than initial development. And in my experience, the first-cut release of any nontrivial software is pretty well crap.
  • ...38 more annotations...
  • But to do that well, you absolutely must have enough test coverage that you just aren’t afraid to rip your code’s guts out
  • I always end up sketching in a few classes and then tearing them up and re-sketching, and after a few iterations I’m starting to have a feeling for X and Y.
  • once you’re into maintenance mode, there are really no excuses. Because you really know what all your X’s and Y’s are
  • I freely admit that this is not really truly TDD
  • Writing the tests points out all the mistakes you might make in signatures, prerequisites, etc. If the tests are too hard to make then you know that your API will be too hard to use, you're doing it completely wrong, and may as well pause for a rethink.
  • While the approach you advocate makes sense, it does require professionalism, not just from the developer but from management too.
  • the person left to maintain the code isn't the person who wrote it, leaving the maintainer with an unholy mess to untangle. Getting unit tests into such code is a monumental task.
  • he failure to address how unit tests can be introduced to an existing non unit-test codebase. (i.e. go from non-TDD to TDD)
  • I feel the TDD community only wants to focus on greenfield projects and has ignored maintenance/legacy issues. Which is strange when as you say code spends most of it's time in maintenance
  • The thing is that as long as the project is small you really don't see the benefits of TDD. I've done a couple of small projects and never had to go back to them ever again
  • Never use mocks unless you are mocking an interface that will almost never change
  • You are writing the client code (in the form of a test) so you are thinking how the worker code will be used. What is its public interface and what do you want it to do when it's called
  • From: Tathagata Chakraborty (Jun 24 2009, at 07:31)TDD is useful in another situation - in a commercial setting and when detailed specification documents have already been created by say a technical expert/architect. In this case you don't have to do a lot of designing while coding, so you can start off with the test cases.
  • writing the tests *first* is that it helps keep your code focused on exactly what it's meant to do, and no more
  • When work on production code begins, most of the code should fall into the categories of things that are not to be tested.
  • In theory, TDD is a great idea. The problem with TDD can be expressed in one word: money.
  • One approach to the unknown X and Y problem that I've been using recently has been to pretend that class X has been written already, and then write code that uses this pretend X object/API. I usually write this directly in the file that will become my unit test. Since X doesn't exist, I'm allowed to call whatever methods I want and pretend it all works. Once I'm satisfied with how it all looks, I cut and paste everything into a bunch of failing tests.
  • I get really bored adding tests to code that already runs
  • the seductive TDD trap
  • religious zealots
  • There is nothing wrong with building tests after you have built your product.
  • that goes a long way towards taking software development from a form of artisanal craftsmanship to a real engineering profession.
  • using tests to drive development cripples innovation, dramatically slows development
  • It always seem to me to be a codified form of reverse engineering, or at least a way to force the programmers into looking at their code from two separate angles at the same time.
  • If you're just adding tests at the end, then it's normal unit-testing, isn't it?
  • I do realize that this type of exercise might help younger coders in getting better structure, they do often rush in too quickly and focus more on the instructions than the abstractions.
  • TDD is test-driven *design*
  • He said he didn't write tests in cases where it would have taken him several hours to get a working test for a small piece of code.
  • In some applications, objects are self-contained, activities are sequential, and algorithms are tricky
  • I've seen cases where people have wrecked the architecture of systems in the name of making them testable... But have never written the tests.
  • Yes, it's possible to make peace with testability, and in the best situation, testability can improve the architecture of a program, but it can also lead people away from highly reliable and maintainable KISS approaches.
  • Like any infrastructure, it is always beneficial to provide unit testing. The most benefit is derived from installing it as early on in the project as possible.
  • The value of an untested feature, to a client, is ... zero. So, it doesn't matter how many of these you have rattled off in the past week, your net throughput is effectively... zero."
  • You can see in this thread the word "professionalism" (substitute "morality" with little gain/loss of substance) and even "sin" (used in jest, but not really!)
  • if I delay writing unit tests until after all the units are working together then because the system "already works" my subconscious enthusiasm for writing unit tests falls markedly, and so their quality and coverage fall
  • Experience teaches that if I generate that output by hand (1) it takes *much* longer (2) I almost always get it wrong. So I often write the code, get its output, carefully check it (really...) and then use it as the correct result.
  • My main objections to TDD are: 1) it promotes micro-design over macro-design and 2) it's hard to apply in practice (i.e. for any code that is not a bowling card calculator or a stack).
  • the tests are just a persistent artifact of the exploratory coding I've already done.
itstucorner

Dot Net Training Institute In Delhi - 0 views

  •  
    Stucorner is the name of trust and it's rated as no. 1 reputed training institute in Delhi, NCR INDIA. We provide the .net training and assured job in the desired post in free of cost. To become a certified ASP.NET professional, Join Stucorner DOT NET training in Delhi, NCR. Basically, DOT NET Core is a free and open-source, cross platform implementation of the DOT NET Framework
  •  
    Stucorner is the name of trust and it's rated as no. 1 reputed training institute in Delhi, NCR INDIA. We provide the .net training and assured job in the desired post in free of cost. To become a certified ASP.NET professional, Join Stucorner DOT NET training in Delhi, NCR. Basically, DOT NET Core is a free and open-source, cross platform implementation of the DOT NET Framework
Sarah HL

Changelog | symfony | Web PHP Framework - 0 views

  • Updating Doctrine to 1.0.12
  • fixed form field render method so widget schema id format is applied
  • fixed missing div in admin generator used in css styles
  • ...4 more annotations...
  • upgraded lime for symfony 1.2.x
  • fixed PHPDoc
  • fixed doctrine form filter when the table method returns a query with a different root alias
  • Fixed case-insensitive check of sf_method routing requirement
Jungle Jar

JungleJar | Wordpress How-To: Displaying Post Counts - 0 views

  •  
    Ever wanted to display the number of posts your blog has achieved for your blog readers or perhaps just for yourself? Or, what about the number of posts in a specific category? If so, I'll show you a quick and easy way to do just that, and we'll style up the output with a bit of CSS Level 2.1 the standard way.
Varun Batra

KohanaPHP VS CodeIgniter - 0 views

  •  
    I like this post because unlike most of post 1/2 techi 1/2 questions indirectly answer, it just a bunch of FAQ and very clear. Hope you will like it.
qualitypoint Tech

Job opening for freshers (Engineering/MCA) |QualityPoint Technologies - 0 views

  •  
    Currently we are looking for Software Engineers. Desired Candidate profile: * Having Good Technical Knowledge and willing to work hard for learning new technologies. * Team work. * Sincere * Good communication skills. * Knowledge in PHP/mySql, C# is preferred. * Willing to work in any technology. * Job location :Chennai and Ottapidaram (Tuticorin District) * Experience 0-1 year
Felipp Crawly

Thank You OPS - 1 views

started by Felipp Crawly on 03 Jan 13 no follow-up yet
Wordpress Designer

Excellent WordPress Developers - 1 views

WordPress Designer offers their team of professional and creative artists who excel-lently designed my wordpress site. They did not only give emphasis on the design that can help me maximize my eng...

programming web development webdesign php design wordpress developer

started by Wordpress Designer on 28 Mar 12 no follow-up yet
cecilia marie

Best Shield Against Computer Viruses - 1 views

I have always wondered why my files are often corrupted and to think that I have installed an antiVirus software. I always scan my external disks each time I insert them in my unit. It was only lat...

virus protection

started by cecilia marie on 04 Nov 11 no follow-up yet
spymek soft

Mobile Application Development - 0 views

  •  
    Spymek has developed iPhone applications for iOS & android OS through its excellent skills. We are expertise in iPhone application development, android application development, mobile application development, mobile games development.
spymek soft

Find Around Me - 0 views

  •  
    Find the places around you that you need the most and usually search for(when you are not aware of the area) at the tip of your finger. May it be ATM or gas stations or beauty sallons, you will get the list of these in few seconds. Also you will get the route map from your current location to destination. Simple and Useful app.
spymek soft

Tap Tap Words - 0 views

  •  
    A simple, addictive and informative game where you can learn words with the meaning and improve your vocabulary.
  •  
    A simple, addictive and informative game where you can learn words with the meaning and improve your vocabulary.
Raúl - [^BgTA^]

TemplateWorld - Browse All Website Templates - Page 1 - 0 views

  •  
    Free Web Templates in xhtml/css
sloansteddi

MDB2 | Prepare & Execute - 0 views

  •  array('integer'), array('text', 'text')
    • sloansteddi
       
      Make sure to pass TWO types arrays when selecting data with a where clause: prepare($sql, $typesIN, $typesOUT) inserting just takes one...
  • $sth = $mdb2->prepare('INSERT INTO numbers (number) VALUES (?)', array('integer'), MDB2_PREPARE_MANIP); $sth->execute(1); $sth->execute(8);
  •  
    walk through of preparing and executing statements
Sarah HL

10 Principles of the PHP Masters | Internet Resources | Cpworld2000.com - 0 views

  • 1. Use PHP Only When You Need it – Rasmus Lerdorf
  • PHP was created out of a need to solve web development problems
  • Lerdorf is the first to admit that PHP is really just a tool in your toolbox, and that even PHP has limitations.
  • ...9 more annotations...
  • 2. Use Many Tables With PHP and MYSQL for Scalability – Matt Mullenweg
  • 3. Never, ever trust your users – Dave Child
  • 4. Invest in PHP Caching – Ben Balbo
  • 5. Speed up PHP Development with an IDE, Templates and Snippets – Chad Kieffer
  • 6. Make Better Use of PHP’s Filter Functions – Joey Sochacki
  • 7. Use a PHP Framework – Josh Sharp
  • 8. Don’t use a PHP Framework – Rasmus Lerdorf
  • 9. Use Batch Processing – Jack D. Herrington
  • 10. Turn on Error Reporting Immediately – David Cummings
1 - 20 of 71 Next › Last »
Showing 20 items per page