| bio | website | |
|---|---|---|
| location | Chennai, India | |
| age | 23 | |
| visits | member for | 4 months |
| seen | May 14 at 6:26 | |
| stats | profile views | 4 |
|
Feb 6 |
answered | Any good (free) ebook recommendations on Android Development? |
|
Feb 4 |
comment |
Differences in If… Else… statement @Hellion I concentrated on the point rather than the indentation, your statement is valid. |
|
Feb 4 |
comment |
Differences in If… Else… statement I agree that point :) |
|
Feb 4 |
answered | Differences in If… Else… statement |
|
Jan 31 |
comment |
Branches/decision count in an example @user970696 Yes, when all those IFs fails. You can either give a default implementation in ELSE part or completely ignore it. What I am saying is, when you ignore then ELSE part you just go out of the IF part, but if you use ELSE then the processor has to provide a path for its execution (i.e., it needs a branch to perform the operation defined in the ELSE path) |
|
Jan 31 |
comment |
Branches/decision count in an example @user970696 "That is path which would be combination of outcomes." Decision/Branch analysis is possible only by the combination of outcomes right ? Thats how even the Branch Predictor link and link works |
|
Jan 31 |
comment |
Branches/decision count in an example As far as I can understand, the branch count is not about true or false but its just about number of paths a code can take at certain decision. Considering that, the 1st decision leads to 2 paths, 2nd decision leads to another 2 paths, if these 2 are not true then the code will flow through another path as the programmer has mentioned a ELSE (which is also a decision). What I simple mean is when ELSE is used in program it internally opens up a path for the code flow. When that ELSE part is not there then you can say there are only 2 decisions and 4 branches (paths) |
|
Jan 31 |
awarded | Commentator |
|
Jan 31 |
comment |
Why should we use externalized property files for an application? When I wrote the answer I clearly said that was my opinion having JAVA in my mind because I don't really know how the same behavior can be implemented in other languages. And yes, I am talking about proprietary software and not opensource. |
|
Jan 31 |
comment |
Branches/decision count in an example @user970696 See, when a true or false condition of an IF is met you do some operation in it, in the same way you do an operation even when an ELSE part is reached. As that ELSE part has some functionality, it is taken as a branch. |
|
Jan 31 |
comment |
Why should we use externalized property files for an application? @MichaelBorgwardt I have a product which allows user-defined parameters (for example connection properties in the database connection url). In this case I can simple ask the customer using the product to add/append their properties in a plain text file instead of changing the code and asking the customer to upgrade the product or apply a patch, etc. |
|
Jan 31 |
answered | Branches/decision count in an example |
|
Jan 31 |
comment |
Why should we use externalized property files for an application? @MichaelBorgwardt I am talking about the number of steps one needs to do to achieve a simple task. Its definitely not scary, adding a line of text in a normal text file is far more easier than changing the code (no matter how good one writes the code) |
|
Jan 31 |
comment |
Why should we use externalized property files for an application? The 2 points contradicts each other "you can easily look up the configuration and you do not have to start the actual program" and "This can be quite handy if you manage more than one instance of you program and have to look up quickly". |
|
Jan 31 |
comment |
Why should we use externalized property files for an application? @MichaelBorgwardt: Take for example, a new country is added a year after the code is written. Do you think its easy to 1) Add an entry in the properties file or 2) change the code, compile, deploy, etc. Which one do you prefer ? I would say "code becomes more flexible by using an externalized property file" |
|
Jan 31 |
revised |
Why should we use externalized property files for an application? added 180 characters in body |
|
Jan 31 |
answered | Why should we use externalized property files for an application? |
|
Jan 30 |
comment |
Explain this function (mt_rand, base_convert) @Ramhound By space I meant the space occupied by the digits/characters on the display :) ... I've written "where base 36 system will simplify the number which takes lot of space to show in BASE 10 system" |
|
Jan 30 |
comment |
Explain this function (mt_rand, base_convert) @Chud37 It will be useful when u are calculating something like largest prime number, etc., where base 36 system will simplify the number which takes lot of space to show in BASE 10 system, etc |
|
Jan 30 |
comment |
Explain this function (mt_rand, base_convert) en.wikipedia.org/wiki/Base_36 |