Should I design my software according to a paradigm or according to the tools the language supplies?
I will explain the question by example: In zend framework, when you want to add a functionality to the view class, you can use what is called a Helper class.
A helper class is a class that has one method (Same as name of class) that becomes available ...
Started by Itay Moav on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
For example, if the throughput is your.
Should design according to your non-functional requirements.
|
|
Currently, I am facing a very strange condition. I am working on a particular project and for particular task and for overall project I feel that Java would be the best option but as company has major expertise with PHP they want to use PHP as compared...
Started by Rachel on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
However, dump it completely only if you are 100% sure that the new technology meets you needs fully, you have the resources to use it (funds for tutorials, time to learn the... .
Here is my two-cent-
It is best to stay with what you know and build upon it .
|
|
What is the limit of character to use in alt="text" according to WCAG 2.0?
Started by jitendra on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Technique G94 says.
According to the recent WCAG2, there is no numerical limit anymore.
Characters.
|
Ask your Facebook Friends
|
I want my hash to sort in descending order according to the values. How do I do that in Java?
Started by kunjaan on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
For an extensive list of alternative approaches, some of which don't use comparators, it's worth to check out the answers... .
It involves writing your own class that implements Comparator and using it to sort your map by value .
Here 's an easy way to do it.
|
|
Hello!
Is it possible to auto-rotate the default application image according to current landscape mode? I can rotate my views just fine according to information from the UIDevice class, but I would like the whole application to be in the correct landscape...
Started by zoul on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Original.
Then fade in your UI with another animation block.
Left or right according to your setup.
|
|
Can we place <img> inside <h1> according to web standards? like this
<h1> Demo text <img src="anyimage.jpg"/> </h1>
Started by jitendra on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Yes, you can - the DTD says:
<!ELEMENT h1 %Inline;>....
You can place an image inside an h1 element, but not quite like that … the alt attribute is mandatory .
But don’t forget to set the alt attribute on the img !
Yes and no .
Yes, this is allowed.
|
|
We all know that you can overload a function according to the parameters:
int mul(int i, int j) { return i*j; } std::string mul(char c, int n) { return std::string(n, c); }
Can you overload a function according to the return value? Define a function that...
Started by Motti on
, 17 posts
by 17 people.
Answer Snippets (Read the full thread at stackoverflow):
You can't overload by return....
QuantumPete
No.
You can only overload a function via it's input parameters .
You can't.
As a workaround, you can define an 'out' parameter instead, and overload that one .
As far as I know, you can't (big pity, though...) .
|
|
We want to sort image files in a directory and want them to renamed according to the order we gave.
Is there a tool that can do this?
(os: windows xp)
Started by spinodal on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
First file will be named NewFileName and the rest will... .
Type the new name, and then press ENTER.
I found it:
Open the folder containing the files Next select all the files you want to rename Then select File from the top of the browser and, click Rename .
|
|
Hello all i want to create tabs according to data from MySQL database using php for instance count the number of groups if they are 5 create 5 tabs.How could i do that.
Started by Sarah on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
<script type='text/javascript'> var foo = <?php echo $bar; ?>; // this will... .
If you are using inline JavaScript within your PHP file, you can just open up PHP and print out whatever you need .
You can generate JS from PHP just as easy as HTML .
|
|
I have a DateTime class and wish to display it according to some format... in this case, I specifically want to format it as YYYYMMDD format.
What's the best C#/.NET API function for doing this?
Started by Paul Hollingsworth on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Http://blog.stevex.net/index.php/string-formatting....
String s = DateTime.Today.ToString("yyyyMMdd");
(note the case)
I always use this site to get any dates formats etc .
ToString(format)? i.e.
DateTime.ToString()
Look at the docs for the format string details.
|