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 was so wrong with "From each according to his abilities, to each according to his needs"?
Started by Leviticus on
, 16 posts
by 16 people.
Answer Snippets (Read the full thread at yahoo):
Needs.
But not with humans.
"From each according to his abilities, to each according to his needs"? That works really well with ants and bees.
Pulled the plug and let another species have a go .
|
Ask your Facebook Friends
|
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.
|
|
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.
|
|
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...) .
|
|
On my Google App Engine application, i'm storing an auto-updated date/time in my model like that :
class MyModel(db.Model): date = db.DateTimeProperty(auto_now_add=True)
But, that date/time is the local time on server, according to it's time zone.
So,...
Started by paulgreg on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
")}' % date.ctime()
And then, on the client side, add/remove the number of seconds according to the user time zone.
|
|
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 .
|