Correlation between real code and supporting code

I find that only about 30% of my code actually solves the problems, while the rest are busy with the log, checks, parameter checking, exceptions, error handling, etc. Do you find this in your code and is there an IDE / Editor that allows you to hide code that is not interesting?

Are there OTOH languages ​​that make support code more manageable and smaller?

Edit - I think we all know the difference between business logic and other code. I am not saying registration, etc. Not important. The fact is that when I code, I either implement business logic, or I'm sure that everything will not break. For me, that there are two different ways of thinking, others develop in this way, and is there an environment that supports this way of development?

+4
source share
11 answers

Helper code is just as important as "real code". The quality of your product is determined in the same way, supporting the code like anything else.

Consider a car. In terms of just getting from point A to point B, it requires no more than a trolley: frame, seat, engine, several tires. But modern cars have much more than just the basics. High performance engines using an electronic engine. Automatic gearboxes. Bucket seats. Heating and air conditioning. Steering. Power brakes. Anti-lock braking system. Quiet comfortable cabins are protected from the weather. Airbags Collapse zones and other advanced security features. Etc.

. , " " , . , .

: , :

" " :

  • ,
  • , , ?
  • , , 4- ?
  • ?

, , , " ".

: Dave Turvey:

, " " - " ". . , , , . , "" - ? . " " (, ). , , , , .

( ) :

, - , . , . , " ", , , . "", , - , .

, , , , - . , , , .

+8

, , . , .

  • , , .. , . . - QuickCheck. (, , .)

  • , , Don Knuth , , , , , . Noweb , ASCII, .

+3

IDE " ", . , , :)

, , , , , Java, JavaScript , JavaScript ... , , .

, , , D

+1

, , "-".

(, , ), .

- , . , . , ( Visual Basic, Ruby on Rails,...), , , . (VB Ruby , )

/ - , ( -), .

, , , .

- "-", "", .

, - . , "" , , , "elses".

: Rails! - , (Ruby - , Ruby-! )

+1

, -. Winnebago, .

, .. , ; . , , .

+1

- . /-. , ​​, , -.

+1

, . . (.. ) (, , , ).

. , ( !) , , ..

, , , / . , , , , .

, 2 - ( , , ) , ( ), .

90% , , , , 10% .

+1

#region Visual Studio, , , . . log4net . , , # 4 - , .

0

, , , , 5 , .

, , " ", , , 5 , .

0

, . , Spring Framework ( ) Assert, , , . , .

0

All Articles