Skip to main content

Home/ PHP Programming/ Group items tagged best of

Rss Feed Group items tagged

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.
melvinahebert

Best Demat Account For Small Investors | TechQY - 0 views

  •  
    Full-service brokers with extensive technical proficiency and support, such as Kotak Securities, is highly recommended for beginners. This is because of their expertise and years of guidance in the field of trading that can provide you with immense knowledge and customer service in your trading journey. Let us look into the parameters and factors to help you decide the best Demat account for your investment.
Raúl - [^BgTA^]

30+ Firefox Add-ons for Web Developers & Designers - 0 views

  •  
    Las 30 mejores extensiones para Firefox:


    Aardvark - A cool extension for web developers and designers, allows them to view CSS attributes, id, class by highlighting page element individually. chromEdit - Alter the appearance of any page by editing CSS and Javascript files with this extension. CSSMate - Firefox extension to edit CSS files.
    CSS validator - Check the validity of your webpage using this CSS validator extension. CSSViewer - See the CSS properties of page elements with this extension.
    EditCSS - Play around with loaded CSS, Web Developer extension also provides this functionality.
    IE Tab - Designers and developers can view their CSS projects on Internet Explorer using this extension.
    Style Sheet Chooser II - Users can pick and choose alternate style sheets for a website. FireBug - A console for debugging JavaScript, HTML, and Ajax code snippets. HTML Validator - Cool extension to validate web pages with HTML standards of W3C. JavaScript Debugger - JavaScript debugging extension enables a strong debugging environment.

Sarah HL

Dr. Dobb's | Extreme Testing | juin 1, 2003 - 0 views

shared by Sarah HL on 29 Jun 09 - Cached
  • First, you quickly add a test
  • TDD employs five basic steps
  • The second step involves running your tests
  • ...15 more annotations...
  • Third, you make a little change to your functional code
  • Next, you run the tests
  • In the optional fifth step, you refactor your code to remove any duplication.
  • two simple rules. First, you should write new business code only when an automated test has failed. Second, you should eliminate any duplication that you find.
  • Your designs must consist of highly cohesive
  • You write your own tests because you can’t wait
  • the running code providing feedback between decisions
  • Test-Driven Development (Addison-Wesley 2003)
  • a Smalltalk system with a completely test-driven approach that took four years and 40 person-years of effort
  • there’s far more to testing than unit tests, so you’ll still need other testing techniques such as functional testing, user acceptance testing, system integration testing and so on.
  • you have a clear measure of success
  • most programmers don’t read the written documentation for a system; instead, they prefer to dig right into the code.
    • Sarah HL
       
      Follow the "natural" tendance of the developers, a pro TDD
  • Your acceptance tests define exactly what your stakeholders expect of your system; therefore, they truly do determine a good portion of your requirements.
  • Bob Martin says it best: “The act of writing a unit test is more an act of design than of verification. It’s also more an act of documentation than of verification.
  • Side by Side: Comparing TDD and AMDD TDD shortens the programming feedback loop; AMDD abridges the modeling feedback loop. TDD provides detailed specification (tests), while AMDD provides traditional specifications (agile documents). TDD promotes the development of high-quality code; AMDD encourages high-quality communication between your stakeholders and other developers. TDD provides concrete evidence that your software works, whereas AMDD supports your entire team, including stakeholders, in working toward a common understanding. TDD provides finely grained, concrete feedback in minutes. However, concrete feedback requires developers to follow the practice Prove It With Code, and they may become dependent on non-AM techniques; AMDD lets you get verbal feedback in minutes. TDD ensures that your design is clean by focusing on creation of callable and testable operations; AMDD lets you think through larger design and architectural issues before you code. TDD isn’t visually oriented; AMDD is. Both techniques are new and therefore may be threatening to traditional developers. Both techniques support evolutionary development. —S. W. Ambler
Rem PC

The Best Remote PC Support I Ever Had - 1 views

The Remote PC Support Now excellent remote PC support services are the best. They have skilled computer tech professionals who can fix your PC while you wait or just go back to work or just simply...

remote PC support

started by Rem PC on 29 Sep 11 no follow-up yet
Rem PC

The Best Remote PC Support I Ever Had - 1 views

The Remote PC Support Now excellent remote PC support services are the best. They have skilled computer tech professionals who can fix your PC while you wait or just go back to work or just simply...

remote PC support

started by Rem PC on 12 Sep 11 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
Syntacticsinc SEO

IT Solutions That Really Work - 1 views

I am planning to build up and improve my website for my business and I was thinking of choosing the best IT company that can meet my requirements for my website and optimize it to make it easier fo...

web designing

started by Syntacticsinc SEO on 24 Sep 11 no follow-up yet
experttalk

Discover the best of ZendCon 2012 Conference - 0 views

  •  
    ZendCon 2012 marked its 8th successful presence at Santa Clara Convention Center in Santa Clara, US. Attendance was more than expected at the conference for 4 straight days to cover 5 exciting Keynotes; 10 in-depth tutorials; 65 technical sessions focused on PHP, Zend Framework 2 and Cloud plus gobs of exhibitors and volunteers.
Mr Ranjan Raja

php2ranjan is best Web/Software training institutes - 0 views

  •  
    php2ranjan is best Web/Software training institutes who provides real time and professional training with real time projects in PHP and MySQL, joomla training, drupal training with drupal theming, wordpress training with live project. We have experienced trainer on PHP-MySQL training, web design training and SEO training. Our trainers have more than 5 years of experience in their fields. They give real time examples and notes on corresponding topics. You can attend the DEMO CLASS before starting the real classes. We give web designing training hyderabad, html and css with real time web design training with live project.We successfully completed 5000+ hours of training with a track record of 100% placement assistance; php2ranjan is reknowned training institute for PHP training, webdesigning training plus seo training institute in Hyderabad, Andhra pradesh , india. We have Evening batch and morning batch plus fast track batch for Designer and other professional who is working in software company. B.E / B.TECH/ MCA final students can join our PHP-MySQL real time training and attend the live project training on web development. Live project training in PHP and mysql will be helpful in understanding the concepts and will be helpful in clearing the job interviews. Web designer can also improve their knowledge by attending our PHP training. This will be helpful in further growth of your career.
shalani mujer

PC Technical Support - 1 views

I often look for PC technical support because my computer sometimes experiences minor or major breakdowns, and I could hardly find someone, or any technician for that matter, to fix it for me. I ha...

PC technical support

started by shalani mujer on 17 Aug 11 no follow-up yet
shai edrote

They Are the Best Computer Tech Specialists - 1 views

I called Fix Slow Computer Today because I wanted them to fix slow computer fast. I need their expert computer tech specialist to help me with my slow PC problem. I heard they are the best and trus...

Fix Slow Computer

started by shai edrote on 13 Jul 11 no follow-up yet
Restaurant System

Advance Service and Support - 2 views

I am a restaurant owner. I personally love food and I love people and I want to make them happy by providing them the best service ever. I always make sure to give them only the best. I want to tha...

restaurant POS

started by Restaurant System on 28 Mar 12 no follow-up yet
fastidioustec

Cross Platform Mobile Application Development - Fastidious Technologies - 0 views

  •  
    Fastidious Technologies is one of the best leading mobile app development company in India. We offering the mobile application development in IOS, Android, native and html5 cross-platform mobile development.
fastidioustec

Cross Platform Mobile Application Development - Fastidious Technologies - 0 views

  •  
    Fastidious Technologies is one of the best leading mobile app development company in India. We offering the mobile application development in IOS, Android, native and html5 cross-platform mobile development.
fastidioustec

Custom Web Application Development Company - Fastidious Technologies - 0 views

  •  
    Fastidious Technologies We develop custom applications in all major programming languages, Our development and support teams are maintained all kinds of maintenance. We offering the best custom web application design and development services
seth kutcher

Two Thumbs Up For Computer Assistance Services - 2 views

I am so happy for the computer assistance that Computer Assistance Online gave me. They provided me with precise and fast solutions to my computer problem. Their computer specialists really know wh...

computer assistance

started by seth kutcher on 06 Jun 11 no follow-up yet
Aliyah Rush

Fix Slow Computer Today Did A Good Job - 1 views

I would usually loudly rant, rave and complain about my computer's sluggish perfromance. It usually delays my work. Then my best friend advised me to call Fix Slow Computer Today. He said that they...

fix slow computer

started by Aliyah Rush on 12 Aug 11 no follow-up yet
seth kutcher

The Best Computer Repair Services in Town - 1 views

My laptop got some troubles and needed to be fixed. I needed a credible company who has the best computer repair services. I then came across with Computer Hardware Repair Services and I found out ...

computer repair services

started by seth kutcher on 17 Aug 11 no follow-up yet
1 - 20 of 34 Next ›
Showing 20 items per page