source-code

Source code protection best pratices to collaborate with freelancers

I'm working on a social media site and I'm the only engineer but now I need to hire people to get things going faster and I'm worried about the source code. How should I go about protecting the source code, I thought of obfuscating the source code and make documentation, I thought of making an external API, I also thought I to not doing...

Source code version number policy

I need a guideline or procedure which describe the version number policy for source code as per changes happened(major, minor, Micro), assigning particular version to release, labeling e.t.c Your guideline in this regards will be highly appreciated.... ...

PCRE: Lazy and Greedy at the same time (Possessive Quantifiers)

I am trying to match a series of text strings with PCRE on PHP, and am having trouble getting all the matches in between the first and second. If anyone wonders why on Earth I would want to do this, it's because of Doc Comments. Oh, how I wish Zend would make native/plugin functions to read Doc Comments from a PHP file... The following...

Should developers be forced to check-in before leaving work each day, even if the code does not compile?

During a previous consulting position, the developers where told to check-in code on a nightly basis, regardless if it complied or was complete. Managers were afraid of losing any code and said now we only lose one day at most. The place I'm currently it is investigating whether to implement this. Anyone have any pros/cons on this? Sho...

csv row reader question

Hi All, I am basic level java programmer. I am working with CSV files. I have a file that has rows and columns as follow col1 col2 col3 row1 row2 row3 I read this file and stored it in a String. I explode string with line break to get every row. I have a variable ArrayList that has some row names. How can I make comparison th...

Why is bug count not a good measure of code quality?

Why is bug reports (unit testing, QA testing, etc.) not a good measure of code quality? And what is the best way to measure code quality? I believe code quality can be measured more during peer reviews rather than the number of bug reports during testing. Is this reasonable? UPDATE: Which quality metric should number of bug reports be ...

Can someone give me the source code for the ScriptManager (asp.net)

I know I can load the symbols for the class but i can't get it to work. I tried everything so i give up. I only need the code for this class. It's because i am using a custom script manager and i must know how the .net one works. thanks. [batenzetata] ...

Methods of managing source code

I've written a fair amount of software over recent years, most of which all tend to share one or more common libraries. (The most common library, being one that I use for calling SQL stored procedures and returning arrays of objects) I'm not happy with the way I manage the libraries, and I'm looking for suggestions to improve the way I ...

Reference to Library Binary - Debug or Release version?

I asked a question earlier today (Methods of Managing Source Code) as I've been unhappy with the way I manage my shared libraries' source code. As a result of the answers posted, I have found a better method. I'm now working through my repository tidying up all my source code, however as a result I now have another question... Whilst I...

Under what situation should code be rewritten from scratch?

I know that under most situation we should avoid rewriting code from scratch. But there must be some cases where rewriting is beneficial (e.g. otherwise MS wouldn't abandon Win98/Me and develop XP from NT). What are those cases? ...

How to manage huge code changes between developers?

I am working with four developers on a compiler project. Our problem: we have yacc file (about 5000 line of code) , and every one of us has some changes on this big code so we need a method to merge our changes. What do we need to do that? How we can do that? ...

How to build javadoc from sources within a .jar file?

I have to build Javadoc from myCode.jar that contains both sources and class files. Can I do it without extracting the jar? According to http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#classpath I should be able to do so this way: C:\>javadoc -d docs -classpath myCode.jar net\kem\jmx\CacheManagerMBean.java However, I g...

finding the source codes in order to learn to program

Hi there I just installed ubuntu on my PC, and now I wish to browse into some code. As a starting point I wana see the GLCells screen saver source code How/where can i find the source code of the GLCells. In general, how can i find the source codes of the ubuntul OS distribution? ...

Inserting html code in a mysql table

Hi everyone... I use joomla to manage a website... and i am developing a stand alone php application that will insert and modify data into the tables that are used by joomla to store the html of webpages that it dynamically creates... The way it works is i use a joomla component to create content and the html code of these articles ar...

Can i insert Bytecode inside my source code?

Can i write bytecode inside a method of a class so that the compiler bypasses that part since it is already compiled. Something similar to writing assembly programs in C language using "asm"... ...

I have to follow "function/variable/parameter name should be less than or equal to 31 characters" . Is this guideline relevant for C++ based projects.

One of my project's coding guideline is "function/variable/parameter" name should be less than or equal to 31 characters. The project is in C++. IMHO this guide line is not useful because a) C++ compiler itself creates long names ( via name mangling). b) Makes it hard to write self-documenting / expressive code. What say ya?? ...

Looking for free source code browser

I use sourceInsight at work however at home I do not want to pay the price of $250 for source code browser Can you recommend a good source code browser Thanks --Jatin ...

simple java hierarchical problem

Hi All, I am having a problem to deal with following data. 1 a 0.64 3 2 d 0.76 3 3 e 0.46 3 1 k 3.43 9 2 i 4.37 9 1 j 0.43 5 2 h 4.74 5 3 j 7.44 5 4 p 3.47 5 1 k 8.33 4 it has 4 column. First is just id for each group. 4th colum is group id while float value is just value and 2nd column too. Here is what I am trying to do: I want to...

java or php tip for small problem

Hi All, I am having a weird mind gogling problem. Sorry in advance, If I confuse you. I have following data 1 3 5 5 1 2 2 4 8 3 2 9 3 8 4 first column = source 1 second column = source 2 third column = result column First and second column will can create 3rd column and that 3rd column can be used in 1st or 2nd column to make a new...

Reorganizing development environment for single developer/small shop

I have been developing for my company for approximately three years. We serve up a web portal using Microsoft .NET and MS SQL Server on DotNetNuke. I am going to leave my job full time at the end of April. I am leaving on good terms, and I really care about this company and the state of the web project. Because I haven't worked in ...