In Android, what is the shortest/easiest way to just store a simple tuple of connected values, f.ex. Date date, String name, int count? Using SharedPreferences, you could keep an incrementing ID and store the values as editor = context.getSharedPrefe
How to count the number of lines of code in all files in a directory and its subdirectories. eg. I have a directory which has many subdirectories and each subdirectory has many files and I want to count that how many lines of code is written in these
I am a web developer and I write code in PHP/Laravel framework. I've been tying to follow best practice for writing code and I know it's a good practice to write 15-20 lines of code in functions and maximum 200 lines of code in Classes. But every tim
I'm trying to be really efficient with # of lines of code so I want to combine the following two lines of code: my_hash["X"] = value my_hash If I take out the second line, then my function returns the wrong thing because it will only return the
There seems to be so many code analysis tools supporting the java language, but I am so far unable to find one that supports scala (something simple like finding LOC would be nice)? I'm working in intellij so have tried metricsReloaded and Static plu
In MS SQL Server 2012 I have a database with a table containing a varchar column that holds some text that might even include line breaks. Basic example: CREATE TABLE Example ( [ID] INT , [Text] VARCHAR(100) ); INSERT INTO Example ([ID], [Text]) VALU
Is there a one-liner to read the contents of a (not very big) text file into a string? The shortest I've found: #include <string> #include <fstream> #include <streambuf> std::ifstream t("file.txt"); std::string str((std::istrea
I want to count the lines of code in a multi-file Python project as accurately as possible, but without including comments, docstrings or blank lines in the total. I first tried using cloc, which is available as a Debian package. But cloc treats most
Is there a quick and dirty way in either python or bash script, that can recursively descend a directory and count the total number of lines of code? We would like to be able to exclude certain directories though. For example: start at: /apps/project
Is there a tool for Windows that can read the Delphi history files. and extract the lines-of-code written per session along with the timestamps of the sessions. What info do I want session_id date+time filename lines_of_code changed 1 1-1-2011 - 13:1
I need a (very rough) estimation on the lines of code (none-blank, none-comment) of an .net Assembly (c#). Is there an easy way to do this using reflection? I would prefer a hand-written tool (so I am asking about pointers here...) but I would also s
As the title says how i can calculate the total number of lines in a source code folder using bash commandsUse sloccount
Does anyone know a good metrics plugin for Eclipse that works with C++ ? I'm looking for lines of code mainly. Thanks.There's the open source Eclipse Metrics plugin, but i personally prefer ProjectCodeMeter which integrates with eclipse as external m
Possible Duplicate: How many lines of code should a function/procedure/method have? I would like to know how many lines of code should be function have? How many lines is too much. I read this a while back, it around 10 or 20 lines but it was because
Is it possible to find the number of lines of code in an entire solution? I've heard of MZ-Tools, but is there an open source equivalent?Visual Studio 2010 Ultimate has this built-in. Analyze -> Calculate Code Metrics
I'll do a demo of my code to slightly non-technical audience, and I need to show them what I've got in my project (about 15K lines of code). I'm trying to convince them that I've spend time on the project and it's in a good state. These guys planning
What's is a good ratio for the number Classes to Lines of Code for an Object-Oriented language (say C++,C#,Java and their likes)? Many people, including managers, like the traditional LOC (lines of code) metric to measure the complexity of software,
Basically I want to get the number of lines-of-code in the repository after each commit. The only (really crappy) ways I have found is to use git filter-branch to run wc -l *, and a script that runs git reset --hard on each commit, then runs wc -l To