Tagged Questions

A coding style is a set of conventions and practices used in software, such as naming classes, variables, and files.

learn more… | top users | synonyms

3
votes
1answer
39 views

Python Optimizing/Speeding up the retrieval of values in a large string

I have a string containing around 1 million sets of float/int coords, i.e.: '5.06433685685, 0.32574574576, 2.3467345584, 1,,,' They are all in one large string and only the first 3 values are ...
5
votes
1answer
64 views

Please review following code

Please review the following code. Methods getFirsts and getSeconds return a list of objects which implement CommonInterface and both of them are private. Is it a good or bad design. @Override public ...
-2
votes
0answers
32 views

What is expected in code review? [closed]

In our organization code review is started. What is expected in code review? A line by line execution is expected or coding check against best coding practices. Is running and debugging code is ...
3
votes
1answer
48 views

function to generate values of a javascript object

The following code works but I am wondering if it can be improved both readability and performance. I am using jquery and underscore. Any suggestions, comments or feedbacks will be appreciate. thanks. ...
0
votes
0answers
20 views

optimized way of checking and assigning a function boolean [closed]

Possible Duplicate: php ideal way to check function returns true Which of the following way of checking whether a function returns True or FALSE is best, in terms of efficiency and code ...
1
vote
0answers
42 views

Review my Card Matching Game. (Update to an earlier post)

I updated my code according to a few suggestions from my last post, so I thought I'd repost it to see what other feedback I could get. I also commented it heavily and fixed some of the functionality. ...
1
vote
1answer
59 views

Code to manage weekdays and hours

I have the following code: 1) the html part consist of two container. Both containers have a list of hour and day weeks 2) a javascript code which is used to manage these lists of inputs. I ...
0
votes
1answer
44 views

Method Ordering - Readability / Maintainability [closed]

What is your opinion on method ordering? Should it be public methods at the top followed by private methods? or Should it be linear order so that methods calling methods stack on top of each other? ...
4
votes
1answer
108 views

Is this idiomatic Haskell?

I've been studying hard and asking a lot of questions - I finally came a cross an exercise in LYAH that looked like it was easy enough but a perfect candidate for practicing. The below program has a ...
5
votes
1answer
204 views

How to simplify this c# code?

i have below function in my application i need to simplify it to improve the code quality all the suggestions are warmly welcome void FilterValues() { ...
3
votes
5answers
261 views

How to avoid passing variable to a method again and again

Following is a chunk of code from my class which generate PDF document. I am refactoring my code and in the process I have created short methods. But I have to pass 'table i.e PdfPTable' to my methods ...
3
votes
2answers
114 views

Write it better/neat/fast (if condition)

How to write following if condition clean/fast/readable. Any one of the fields 'address', 'city', 'district', 'province' can be null. I want to make full address by concat all these fields. Like ...
5
votes
2answers
95 views

Need program cleaned up

I'm new to Java... I've been reading a java for dummies book and other ones too. I started building this program like a week ago. I'm sure it's very messy.. Just seeing if someone can clean it up and ...
7
votes
2answers
139 views

ViewModel constructor with many parameters

I have some ViewModels that have a lot of parameters like this one: public class ProductsMainViewModel : NotificationObject, IActiveAware, ... { public ProductsMainViewModel(IProductRepository ...
3
votes
2answers
78 views

Better way to do this in coffeescript

I was actually writing this little script: $ -> # Alter 'input' Width inputResize = -> $('form').each -> tF = $(this) formWidth = tF.width() tF.find('input').each -> ...

1 2 3 4 5 7
15 30 50 per page