Questions tagged [coding]
Coding is an alternative way to describe programming.
92 questions
5
votes
1
answer
429
views
Website with test data files for specific algorithms/data structures?
Is there any website, like SPOJ and Project Euler, with the test data files available for specific algorithms/data structures?
I know it's a fun challenge to solve those problems on your own, but I ...
9
votes
12
answers
17k
views
Is it possible to learn maths via programming, or you should learn maths for programming? [closed]
I am not the best in maths, not very horrid either, but lower than the average, I've always been thinking to improve my maths, but schools and books didn't do the job because I get bored too fast. The ...
12
votes
7
answers
1k
views
After writing code, why do I feel that "I would have written better" after some time? [closed]
I have been working on my hobby project in C++ for more than 2 years. Whenever I write a module/function, I code it with lot of thinking. Now see the problem,
do {
--> write the code in module '...
15
votes
7
answers
6k
views
Use of NotImplementedException
Is it considered bad practice to throw NotImplementedException for code you haven't written yet? Possibly TODO comments would be considered safer?
52
votes
16
answers
14k
views
How Much Logic in Getters
My coworkers tell me there should be as little logic as possible in getters and setters.
Yet, I am convinced that a lot of stuff can be hidden in getters and setters to shield users/programmers from ...
26
votes
4
answers
3k
views
How to choose between Tell don't Ask and Command Query Separation?
The principle Tell Don't Ask says:
you should endeavor to tell objects what you want them to do; do not
ask them questions about their state, make a decision, and then tell
them what to do.
...
11
votes
4
answers
21k
views
Domain knowledge vs Programming [duplicate]
Possible Duplicate:
How important is Domain knowledge vs. Technical knowledge?
I often hear from my colleagues and sometimes from interviewers that,
"There is nothing so great in having ...
14
votes
3
answers
3k
views
Tips/advice on how to reduce the use of "manager" classes?
I sometimes hear that having too many "manager" classes in your program's design is code smell and add an unnecessary layer of complexity. To me it makes sense that people want to use manager classes ...
0
votes
2
answers
1k
views
"positively formulated" vs. "reads as english sentence" style logic [duplicate]
Sorry, I'd be happy to have someone improve the title of this question.
What are the benefits and downsides of "positively formulated" logic vs. having it "english readable". I'm looking for a ...
9
votes
9
answers
896
views
Should development methods squash a developer's individualism?
I'm in my final semester of college and am taking a software engineering course. In the class we learn about various software development methods. The one we focused on, and used to develop our ...
6
votes
7
answers
228
views
Can initial inefficient solutions INSPIRE better ones and thus lead to faster problem solving?
When faced with writing an algorithm to solve a small project/problem is it better to come up with pseudo code that isn't efficient/optimum but solves the problem and then try to use the inefficient ...
74
votes
11
answers
29k
views
When to commit code?
When working on a project, the code may be developed reasonably fast in a single day or bit by bit for a prolonged period of few weeks/months/years. As code commits are becoming to be considered as a ...
5
votes
1
answer
1k
views
Coding site with test harness for basic data structures like linked list,graph,strings etc [closed]
I just took an Amazon online test and I messed it up badly. I am out of practice and have low confidence in writing code.
Are there any coding sites with test harnesses for basic data structures and ...
0
votes
3
answers
310
views
How to test a code online? [closed]
I am preparing for technical interview and would like to brush my coding skills.
I have written a C++ program and would like to test it online. I don't have access to any linux compiler on my machine. ...
2
votes
2
answers
124
views
What are my options? - Separating out the UI
I'm working on a project where the everything is driven from the a .dll on the server. The UI and the business rules are all on this .dll
This makes it pretty difficult to debug. My question is, I ...
27
votes
12
answers
3k
views
Emotional attachment to code [closed]
As an employee of a company, when you write code do you feel like you have an attachment to it? Do you feel that you have some ownership of the code? Or do you write it completely detached from it ...
10
votes
8
answers
732
views
What about all those coding rules?
I always supported the idea of having coding rules for developers in a company or a specific project. Especially if the company is size greater than 10. The bigger the company the bigger the need. I ...
2
votes
5
answers
556
views
ASP.NET coding style
I am trying to improve the speed of my coding and I was wondering what tips the pros have. Currently I tend to code about 5-10 lines of code then test and repeat. Is that typical? Or is it better to ...
6
votes
7
answers
499
views
Setting coding priorities
In the dev shops I've worked in, nobody has ever mentioned "coding priorities". I read this in a book or site somewhere, and sets the expectation of what priority should be first in the code. In ...
6
votes
6
answers
2k
views
Programming by dictation? [closed]
ie. you speak out the code, and someone else across the room types it in
Anyone tried this?
Obviously the person taking the dictation would need to be a coder too, so you didn't have to explain ...
46
votes
8
answers
4k
views
Code maintenance: keeping a bad pattern when extending new code for being consistent, or not?
I have to extend an existing module of a project. I don't like the way it has been done (lots of anti-pattern involved, like copy/pasted code). I don't want to perform a complete refactor for many ...
12
votes
7
answers
15k
views
Coming from QA, how can one land that first development job? [closed]
I have been in QA for 10 years, trying to get into development for about 5 of them. I have taken classes in C++, Java and C#. I was able to write some tools and unit tests in C# at my current job and (...
11
votes
19
answers
24k
views
experience: coding on netbooks [closed]
HI, i want to buy a netbook for doing some stuff in the train. Can someone report how it is to code simple stuff on a netbook? 10/12".
I wanted to buy a very cheap one. like 1gb ram 1,6ghz blabla. ...
26
votes
3
answers
11k
views
Why are off by one errors so common and what can we do to prevent them?
It seems that off-by-one errors are one of the most (if not the most) common programming errors (see https://softwareengineering.stackexchange.com/questions/109/what-are-common-mistakes-in-coding, and ...
27
votes
13
answers
8k
views
Being IDE dependent. How can it harm me?
I am highly IDE dependent developer (NetBeans and Eclipse as I am a JAVA dev). I can code properly if I have an IDE. I can rely a lot on that for development, debugging and deployment.
But without IDE ...
0
votes
3
answers
234
views
Source code used when supplying this to customer [closed]
Do you write your code differently when you need to hand it over to a customer?
How does one balance the delivery of good code while at the same time not handing over too much "intellectual property"?
8
votes
15
answers
2k
views
is coding important? [closed]
Is coding important to be good at computer science? Should one implement the algorithm to know it well ?
I remember one cs professor's idiom that "I never code"
16
votes
12
answers
5k
views
How often do you run & test your code while programming? [closed]
Especially when writing new code from scratch in C, I find myself writing code for hours, even days without running the compiler for anything but an occasional syntax check.
I tend to write bigger ...
9
votes
2
answers
331
views
Beginning Design as a Programmer [duplicate]
I'm just starting to get in to web development. I'm learning Rails at the moment. I have lots of experience with various programming languages.
I've been searching for books to help me get started; I ...
8
votes
12
answers
940
views
How is your working time distributed between coding and thinking? [closed]
...in percentage. For example 60/40 or 90/10 or 100/0.
My hypothesis is that the bigger the proportion of time you spend thinking the smaller your code can be as a result (and the less time will be ...
8
votes
22
answers
3k
views
Do non-manager coders in their forties or older out there sometimes regret about not being managers? [closed]
And why do most programmers quit coding and become managers so early compared to other areas? You can work as a construction worker, a lawyer, researcher, writer, architect, movie director for decades ...
9
votes
4
answers
248
views
Which is best for learning how to do a certain thing: writing your own or looking at someone else's? [closed]
Often when I'm writing code to do a certain thing, I'm faced with either writing my own or using someone else's code. Assume here that this "thing" is something that I've never done before and am ...
5
votes
6
answers
4k
views
Write once, run anywhere. Is it still relevant? [duplicate]
Since Oracle bought Sun and Apple have decided not to continue developing their JVM, is the "write once and run everywhere" model still relevant or has web services/SOA reduced it to an edge case?
16
votes
5
answers
569
views
Should source-code in textbooks and the like be translated?
A few weeks ago, my class was assigned to translate to Portuguese the book Real World Haskell. As I did the translation of the text and comments, I started to wonder if I should translate the code as ...
18
votes
12
answers
3k
views
Commented short fancy code vs. uncommented longer easy-to-understand code - which is preferred?
Sometimes an algorithm can be written in two ways:
The short, fancy way; or
The longer, easy-to-understand way.
For example, here is a longer, easier way of copying a string source to dest in C:
*...
75
votes
19
answers
37k
views
How do I improve my coding skills? [closed]
Here's a bit information about me, before starting with the question.
I am a Computer Science Undergraduate, Java being my primary coding language.
The basic problem in my University are the ...
10
votes
6
answers
363
views
How would you highlight code? [closed]
While the basic scenarios are white on black and black on white, most programmers find more varied syntax highlighting useful.
What advantages do you find from a general setup? (E.g. "a dark ...
5
votes
4
answers
462
views
How to improve the code writing effort?
Code needs to be written to file, on way or another. While all programmers should strive to write no more code than necessary, this "small" portion needs to be written nevertheless.
What tips do you ...
73
votes
15
answers
8k
views
I've stopped coding for fun, is this a bad sign? [closed]
At some point in time, I just stopped coding for fun. I used to go to work, finish my assignments and then upon arriving home I'd go and write stuff on the side for fun. However, I now just go home ...
39
votes
18
answers
120k
views
What is better for coding - desktop or laptop? [closed]
Use of desktops are decreasing day by day in daily life but for coding purpose are there any reasons for using desktop over laptop?
109
votes
15
answers
122k
views
What's the career path for a developer who doesn't like management?
If you're developer (Senior or Lead Developer) and you'd rather stay with code/design than pursue a management career, what are the available career paths at your company, or any you've heard of? How ...
30
votes
10
answers
13k
views
Does your company have a coding standard? [closed]
I recently saw that Microsoft released a coding standards document (All-In-One Code Framework Coding Standards) and it got me thinking... The company that I work for has no formal coding standards at ...