Go Down

Topic: Let's do a rally of meaningless complaints (Read 8005 times) previous topic - next topic

liudr

I'm back from IKEA today (my initial motive to start the rally;)). The lady at the return&exchange took real pride in defending IKEA products, being IKEA furniture owner herself. I don't see that very often these days. +1 for her. But I was surprised to find out she was also a person of reason. After she tightened a few cams and tested again, the bookshelf was still wobbly. She admitted defeat and gave me store credit. +2 for her. For the record, this bookshelf, the BILLY, is/has  become a piece of engineering crap. Even grade school kids should know parallelograms are unstable.

wizdum


ting is on Sprint network, their data coverage isn't that good in my area according to their coverage maps.


Thats impressive. I live just outside of Middle of Nowhere, Maine, and even we get 3g data coverage.
"Anyone who isn't confused really doesn't understand the situation."

Electronic props for Airsoft, paintball, and laser tag -> www.nightscapetech.com

DuaneB

Not too much of a complaint, but I hate having to refactor code before it even does anything, sometimes the first cut is just too wrong to go on.

Duane B
Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

CrossRoads

Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

DuaneB

#49
Oct 14, 2012, 08:13 pm Last Edit: Oct 14, 2012, 08:18 pm by DuaneB Reason: 1
http://en.wikipedia.org/wiki/Code_refactoring

Edit : my approach isn't anywhere near as structured as the wiki article suggests, and I only do it when my gut tells me to.

Duane B
Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

Coding Badly

What does "refactor code" mean?


It's fancy-talk for "clean up the illegible mess you made writing the first version".

Jantje


What does "refactor code" mean?


It's fancy-talk for "clean up the illegible mess you made writing the first version".


It is true that is is fancy-talk for "clean up the illegible mess you made writing the current version".
More importantly is that a good IDE provides support for doing refactoring (like eclipse and visual studio do) .
For instance you can go to a function/variable/class and refactor->rename which renames the function/variable/class everywhere it has been used. And it does this taking into account the namespace. A standard find and replace does not do so.
This is a great feature when you have a serious amount of code.

Best regards
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

CrossRoads

So collecting up the various pinModes and rewriting into an array and then looping thru it might be refactoring?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Jantje


So collecting up the various pinModes and rewriting into an array and then looping thru it might be refactoring?

To me it is.
Best regards
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Ran Talbott


What arseholes think this stuff up?

You mean "Who thinks of opening the car door at 60 knots to see whether it dings?"?  ]:D

Ran Talbott


We even melted one with thermite.


Did it say "I cannot self-terminate" when you tried to shut it off?

DuaneB

Perhaps refactoring is the wrong word then, basically my initial abstractions no longer stand up as the project is progressing and so i need to pull the classes apart and create new more appropriate one from the parts.

Duane B
Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

Go Up