Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
30 views

Which is a better optmized CSS for a button design?

There are two ways I have been using to create links and style them as buttons: background: url("/images/sing_up_btn.png") no-repeat scroll 0 0 transparent; font-family: Arial,Helvetica,Sans-serif; ...
1
vote
0answers
46 views

Setting variable in constructor or within method [migrated]

I have a class which contains two methods. These methods add & remove an object to a datastore. The class which contains these methods has a no arg constructor but each of the two methods takes ...
1
vote
0answers
18 views

contract validation and responsibility without exceptions in the constructor

my question is based on this "principles" do not throw exceptions in a constructor single responsibility / seperation of conerns use logic exceptions for broken contracts and runtime exceptions for ...
3
votes
2answers
149 views

Best practices for decouple classes in C#

So this is a lot more confusing than it has to be (I could just stick all of this in the main class with the ui event handlers) but I wanted to decouple this class for learning purposes. Basic ...
0
votes
0answers
43 views

Could an IDE give feedback to the developer? [migrated]

I was thinking about IDEs and how they could be changed. I came across projects like the Light Table IDE on Kickstarter, which gives more of a visual touch to modern IDEs (as well as other neat stuff ...
8
votes
4answers
250 views

Good method to check whether a string is a valid number?

I'm developing a Java Helper Library which has useful methods developers don't want to type out over and over. I'm trying to think of the best way of checking whether a string is a valid number. I've ...
4
votes
0answers
70 views

Is it wrong to use a boolean parameter to determine behavior? [migrated]

I have seen a practice from time to time that "feels" wrong, but I can't quite articulate what is wrong about it. Or maybe it's just my prejudice. Here goes: A developer defines a method with a ...
1
vote
2answers
57 views

Is it ok to use multiple jQuery methods in one single statement?

I am creating a step-by-step form (it only shows in step-by-step and is not a multi state form) and the parts slide in and out (similar to GitHub but without the browser's back buttons). I have ...
1
vote
0answers
41 views

Is there any way to shorten up this Facebook API call?

Right now I am working on an AJAX call that grabs a random photo that a Facebook user is tagged in and then grabs the large source for it. Is there any way to speed this up or at least distill the ...
2
votes
1answer
39 views

Organizing a wordpress template with lots of variables

A question of organization and best practices with Wordpress templates: Where should I put my variables? Directly in the template? In a separate file via includes()? Should I place all variables at ...
3
votes
1answer
39 views

Which class is best to call .getResource on? - Java

I'm creating a Java Helper Library with helpful static methods. I find myself needing to call ...getResource(...) or ...getResourceAsStream(...) in several instances and I'm wondering what's the best ...
4
votes
2answers
145 views

String splitting in C

I am trying to improve my C skills, and I hope someone might be able to provide me with some feedback on the following code. It is just basic string splitting, it should behave the similar to Ruby's ...
1
vote
1answer
62 views

Safely using console.* in browser

I come from a Java background so my desire for proper unambiguous logging is strong. I prefer using the console to using some other gui widget however, in the browser I know that I can't always count ...
2
votes
1answer
280 views

Please review this implementation of Kosaraju's algorithm for strongly connected components

To learn and practice coding in C++, I wrote an implementation of Kosaraju's two-pass algorithm for computing the strongly connected components in a directed graph, using depth-first search. This was ...
0
votes
1answer
51 views

JS scope of member functions

I was writing a program that used a bit of recursion with objects, and it wasn't working at all. After debugging I realized that JS's evil scope was playing nasty tricks. To spare you guys a wall of ...

1 2 3 4 5 10
15 30 50 per page