The code tag has no wiki summary.
0
votes
2answers
77 views
Beta-testing app good practice [duplicate]
I have just released an iOS app for beta-testing with TestFlight.
I'm wondering what is good practice during beta-testing?
Should I halt development of the app during beta-testing?
Should I ...
2
votes
4answers
434 views
Is Googling every code a bad practice? [duplicate]
I just came from an interview in which they asked me several questions about programming and problem solving. Regarding the programming questions, I asked them to let me Google so I can see the code ...
-3
votes
0answers
148 views
There are so many coding academies, what to do? [closed]
I know that there are many coding academies out there such as Flatiron and General Assembly. As someone who feels comfortable around computers but also feels the structure of a formalized environment ...
-1
votes
1answer
76 views
Should I bother / best way to format and publically distribute code snippets?
I have collected a significant library of code snippets for various languages which I collect in Evernote.
They are generally well labelled and formatted, and I think could possibly be useful to ...
44
votes
13answers
5k views
Can commented-out code be valuable documentation?
I wrote the following code:
if (boutique == null) {
boutique = new Boutique();
boutique.setSite(site);
boutique.setUrlLogo(CmsProperties.URL_FLUX_BOUTIQUE+fluxBoutique.getLogo());
...
-3
votes
1answer
90 views
Should we start teaching children in Primary and/or Secondary School about Coding? [closed]
Coding is computer lingo, which I've heard a million times, but many people never really found an interest in learning anymore, until this video came,
http://www.youtube.com/watch?v=nKIu9yen5nc
I ...
0
votes
1answer
76 views
Running pieces of code distributed through out the system, automatically
I have pieces of code, written in java, which I can convert in jar and run from the terminal.
I also have some node.js script, which I would like to run before running these jar files.
So the ...
5
votes
5answers
321 views
Question regarding code readability
I would like to know, is it considered a common practice to use constructions like |=, &&, ||, != altogether in the single line of code?
E.g.
hasErrors |= vi2!=null && ...
7
votes
4answers
366 views
Would you refactor this and if so, would you charge your client?
I am working on a freelance job at home. The client wants me to write some new functionality for his CMS, but it is taking me a lot of time to figure out what the code is doing, because it is written ...
2
votes
2answers
429 views
Tried teaching myself to program before college, accidently overwhelmed myself, tips? [closed]
I'm sixteen, I'm overly interested in programming, and I'm currently taking IT classes during my mornings in high school. Last year, I tried teaching myself to code. It was quite exciting, but all I ...
-1
votes
4answers
686 views
What is this code? [closed]
This is from the Evolution of a Programmer "joke", at the "Master Programmer" level. It seems to be C++, but I don't know what all this bloated extra stuff is, nor did any Google searches turn up ...
2
votes
3answers
482 views
How to show code samples in an interview?
There have been questions similar to this, but my question is HOW exactly do you showcase your code when going to an interview? Do you show screenshots, or do you bring the actual code? Do you take ...
3
votes
1answer
330 views
Picking a code review tool [closed]
We are a startup looking to migrate from Fogbugz/Kiln to a new issue tracker/code review system. We are very happy with Jira, especially the configurability, but we are undecided on a code review ...
9
votes
8answers
566 views
When does 'optimizing code' == 'structuring data'?
A recent article by ycombinator lists a comment with principles of a great programmer.
#7. Good programmer: I optimize code. Better programmer: I structure data. Best programmer: What's the ...
0
votes
1answer
104 views
How do I parse a header with two different version [ID3] avoiding code duplication?
I really hope you can give me some interesting viewpoints for my situation, because I am not satisfied with my current approach.
I am writing an MP3 parser, starting with an ID3v2 parser.
Right now ...
-2
votes
1answer
502 views
HTML5 to Native compiler code [closed]
Is there any HTML5, CSS3 and JS tool that compiles your code, and turns it into a native mobile application?
I made a little research, and it looks like phone gap one of them.
Which one do you use ...
0
votes
2answers
257 views
Are CK Metrics still considered useful? Is there an open source tool to help?
Chidamber & Kemerer proposed several metrics for object oriented code. Among them, depth of inheritance tree, weighted number of methods, number of member functions, number of children, and ...
3
votes
3answers
299 views
How much should I rely on Visual Studio's Auto Generated Code?
I'm reading about ASP.NET (VB.NET) and I want to built my professionally website. I'm wondering though; I'm still using the basics so I'm really just a novice, but how much should I rely on Visual ...
6
votes
4answers
453 views
Semi-intelligent “diff” utility
Part of the QA steps required for a project I am tangentially involved with require the person who is responsible to integrate new version of source file to first calculate how many lines have been ...
8
votes
11answers
3k views
Why is using System.out.println() so bad? [closed]
Of course, it is very good use to use a logging framework for the error messages or warnings. But sometimes I use System.out.println() if I want to try something new in a short time.
Is it really so ...
0
votes
5answers
322 views
Does “Property” in C# cost much?
I have a class created in some namespace, like SomeNameSpace.SubNameSpace.StaticClassName
Here is a code snippet from other code file where I want to use this class many more times, so I created a ...
2
votes
2answers
74 views
Where do you turn for code base improvement on a multi-project scale?
Are there resources out there for a programmer with a large code base to have professional alalysis performed for the goal of finding the areas of most needed improvement?
Logic/Reason tells me ...
2
votes
2answers
155 views
In need of a divide and conquer approach for re-writing small open-source utilities
Preamble (Skip if you don't like to read)
I've been learning C/C++ in school for a year now and all the assignments in the book, after reading through the chapters, were not too difficult to ...
1
vote
1answer
134 views
Older PHP v/s newer PHP version [closed]
My company is building a website with database. Programmer's used PHP 5.0. My Service Provider (shared) in the meantime upgraded to PHP 5.3.0.
Fixes have been on going and seem endless...
Do I move ...
11
votes
10answers
2k views
Understanding already existing complex code base [duplicate]
Possible Duplicate:
What is the most effective way to add functionality to unfamiliar, structurally unsound code?
Till now, all I have worked on is with Java projects that I build from ...
1
vote
1answer
99 views
Is there any way of getting attributes of an audio file? [closed]
Let's say you have an .mp3 file. A few of the attributes I would like to find out is like the bass, when the bass is loud, quiet, strong, soft and when it is all those things.
Is there any way of ...
15
votes
13answers
2k views
How often do experienced programmers have trouble getting their code to perform its intended purpose?
I'm kind of inexperienced with programming (ie less than a year) and I have recently been getting discouraged, mostly from not being able to solve problems with my own code (Not forgetting parentheses ...
8
votes
4answers
547 views
Are there code reviews in opensource projects? If so, what tools are used to do this?
I know there is a big push for code reviews in commercial development. However, are code reviews used in open source software or is based on trust? If so, then how are they performed? [Is it a delayed ...
23
votes
5answers
957 views
Are there any actual case studies on rewrites of software success/failure rates?
I've seen multiple posts about rewrites of applications being bad, people's experiences about it here on Programmers, and an article I've ready by Joel Spolsky on the subject, but no hard evidence or ...
13
votes
6answers
1k views
It takes me hours to completely understand solutions to 1000-pt problems on TopCoder. Should I get discouraged? [closed]
Sometimes this applies to the 500-pt ones too. I sometimes start feeling I will never improve enough to code them with ease like the others. Should I just quit? If not, why? It is extremely annoying, ...
12
votes
13answers
1k views
how to find out if spelling mistakes in source code are a serious issue or not?
I find very troubling amount of spelling mistakes I see everyday in our codebase, from which I will reproduce a very short but representative example:
ArgumnetCount
Timeount
Gor message from queue
...
3
votes
2answers
322 views
Writing recursive functions
I am having a lot of trouble writing recursive functions related to trees. I can't just use google for these functions as they are not general and I won't be able to use google in an exam setting!
Is ...
17
votes
5answers
556 views
How-to convince company to start documenting for legacy software
It has been less than a year since I joined my current company. Their majority of sales have come from a single product that has been alive since the last 10 years. However, there is minimal (if at ...
4
votes
6answers
193 views
What should be the “depth of design”?
We all know that the process of creating a design and the whole architecture of the software is very important before writing the code. But how deep should be dive into the design stuff - should we ...
1
vote
1answer
196 views
How to quantify benefits from a programming training?
I'm conducting a programming training for 3 months. Details in this link - Programming Training Details.
My question is "How do we quantify benefits from such training?".
I think the two important ...
7
votes
2answers
421 views
Are there any opensource APIs that help analyze code?
As an example, let's say that I need to check for a certain usage of C# code and warn the user that that is a bad pratice. There are multiple usages that I want to detect, such as:
Resource not ...
1
vote
2answers
138 views
Does slicing a design in PS create horrible CSS?
I am a beginning programmer and I really want to have good habits and practices. I have yet to slice up a PSD and code it. Is this a bad practice? I have heard it creates bad code that had to be ...
4
votes
3answers
442 views
Website where you can see how other programmers write their code
I remember seeing a website where people upload videos of themselves writing code. However, I can not find that site now.
The purpose is to see how others code, to see how they refactor their code, ...
12
votes
10answers
2k views
About empty line of code
Why do my colleagues hate it when I add an empty line of code?
Sometimes I add a few lines to see when a method ends and another one starts more easily.
2
votes
2answers
450 views
Use Google Analytics to track visitor/download stats for a Google Code Project?
Can you use Google Analytics to track visitors/downloaders for a Google Code project?
I've searched google for an answer but I get results about Google Analytics as a Google Code project itself and ...
5
votes
4answers
414 views
Is coding and unit testing violating the DRY principle
The dry principle states:
"Every piece of knowledge must have a single, unambiguous,
authoritative representation within a system."
However when writing tests for code you are describing the ...
4
votes
1answer
214 views
Redundant code ok?
Using C#/.Net, I have a page where the user can enter data and save these data by clicking a button.
To save data, the user needs to enter a valid date, this means a date which has a certain format.
...
9
votes
3answers
226 views
When would be the best time to start porting the code of my own project?
If I have a personal programming project that I plan to port in another language so it could run in other environments, would it be more ideal to start porting the code as soon as possible and work on ...
6
votes
7answers
505 views
How to cope with the problem of (compiling) a large code base?
Although I can code, I don't yet have any experience with working on large projects. What I did so far was either coding small programs that get compiled in matter of seconds (various c/c++ exercises ...
2
votes
6answers
473 views
Secure cloud based code storage and syncing across multiple computers
I've been thinking recently about how and where I keep my code - I work across multiple locations, with at least three different computers and I'm considering how I manage my code across these ...
44
votes
13answers
2k views
*Code owner* system: is it an efficient way?
There is a new developer in our team. An agile methodology is in use at our company. But the developer has another experience: he considers that particular parts of the code must be assigned to ...
3
votes
2answers
2k views
How do you change how intellij auto formats code?
IntelliJ does some odd formatting with Javascript code and I am trying to figure out how to get it to stop formatting this way. Whenever I chain jQuery functions together, it over indents the auto ...
7
votes
6answers
458 views
“Anything can go wrong will go wrong” - Murphy's Law. so is it necessary to test all the conditional, exception cases?
If "Anything can go wrong will go wrong" is true, we need to test all the conditionals and exceptional cases in my code.
But sometimes it's hard to find all of them since many of them are corner ...
4
votes
3answers
164 views
How do you find your way in deeply nested, interfacey code?
I know most people hate flat and long functions, and hate when code is not full of ISomethings.
The problem is that I guess my mind works in different way, and I always have problems with that type ...
15
votes
4answers
2k views
Classes naming: singular or plural?
It is always difficult for me to choose between singular and plural forms for classes names:
CustomerRepository vs. CustomersRepository
CustomerService vs. CustomersService
CustomerController vs. ...