The species origin of lamps + Software Engineering

Source: Internet
Author: User
Some time ago, the ceiling lamp in the living room was broken, and a light bulb was not on (a total of two bulbs, 55 W incandescent ).
No way. As a man, this kind of work can only be done by yourself.
I thought it was only the light bulb A that broke down. I pressed the light bulb to the socket of A, but the result was still not bright.
Put the light bulb A on another tube plug-in, bright, there is no problem with the light bulb.
It can only be the problem of ballasts. What's more troublesome is that, due to their own rough hands, they split the original light bulb.
Because there is no backup ballast in the House, it has never been taken care.

Yesterday, I finally went to a lighting equipment store and bought a proper ballast.
After dinner at night, start to repair the lights.

First, the original bad ballast was removed, but it encountered a little trouble, but it was still removed.
The next step is to connect the four wires connected to the tube plug-in on the ballast within half a day according to the original Circuit Wiring.
The problem is that the two wires on the ballast are not long enough for power input, and I am not sure whether there is a positive or negative pole between the two wires.
The wire is not long enough. It is unclear how to connect the two wires. What should I do? It cannot be a cold mix!

Step by step, the line is not long enough to solve the problem. Find another wire and connect it.

The next question is how to connect the cables. Finally, with the adventurous spirit of losing at most one lamp,
I first used the wire I found to connect two extended cables from the place where the power supply was input (originally fixed with a screw and connected at the same time.
At the same time, I also disconnected the two ballasts that were originally connected to the power supply.

First try a good ballast, connect the ballast with the power input extension line, turn on the light, turn on.
Try the new ballast, connect the ballast with the power input extension line, turn on the light, and also turn on.
Connect the two ballasts and the extended cable at the same time, turn on the lights, and both are on.
Huh... All right, all done.

It took a total of hours before, after, and after. Of course, there is still time for me to find a screwdriver.

Once written here, the lamp was repaired, and finally we could stop and smoke for a cup of tea, so we used the new 'boss' brand electric kettle we bought yesterday to boil water first.
When I was boiling water, I suddenly thought of something interesting. If I had linked the lamp fixing to my work, what was the relationship.

1. When the light broke at the beginning, the ballast problem was found through the mutual test between different bulbs and plug-ins.
This is: Debug

2. Install new ballast
This is the bug fix.

3. If the ballast wire is not long enough, the original power input is transformed and an extended cable is connected.
This is: refactor

4. Connect the two ballasts to the power supply input extension line and turn on the lamp for testing.
This is: unit test

5. Connect the two ballasts to the power supply input extension line at the same time and turn on the lamp for testing.
This is: integration test

6. The final shade is covered
This is: Delivery

Does it look a bit like that?
Well, let's take it as a kind of research and experience on the origin of software engineering species.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.