Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

What is meant by SLOC count?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
gnaveenkumar.99

New User


Joined: 21 Sep 2011
Posts: 8
Location: India

PostPosted: Wed Dec 21, 2011 2:14 pm    Post subject: What is meant by SLOC count?
Reply with quote

What is meant by SLOC count? What is the use of this SLOC count? How do we count it? Do we have any tools to count the SLOC?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Dec 21, 2011 2:20 pm    Post subject: Reply to: What is meant by SLOC count?
Reply with quote

what happened when You googled for it!
no need for anybody to rewrite what can be found easily with a simple search


Quote:
Source lines of code - Wikipedia, the free encyclopedia
en.wikipedia.org/wiki/Source_lines_of_codeSource lines of code (SLOC) is a software metric used to measure the size of a software program by counting the number of lines in the text of the program's ...
Measurement methods - Origins - Usage of SLOC measures

SLOCCount
www.dwheeler.com/sloccount/This is the home page of "SLOCCount", a set of tools for counting physical Source Lines of Code (SLOC) in a large number of languages of a potentially large ...


/pickiness on
SLOC count is useless repetition ( the last C stands for count ) - but it might increase the published productivity
like in Personal PIN ( heard it too many times ) - but it might increase security level icon_cool.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Dec 21, 2011 10:52 pm    Post subject:
Reply with quote

Hello,

Many individual organizations have been unable to completely define/accept precicely what is a "source line of code".

There is no true industry standard that i'm aware of. And probably there is no need for one.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Thu Dec 22, 2011 1:33 am    Post subject:
Reply with quote

Enrico,
The "C" is "Code" not "Count"

TS,
The definition of anything like SLOC is that you have accountants in charge in stead of technical folks. The best thing to do is ask back up the chain for their definition of SLOC, so you can follow it.

Trust me, put three of those creatures in a room and ask them that question, and you'll lose all faith in humanity.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Thu Dec 22, 2011 6:05 am    Post subject: Reply to: What is meant by SLOC count?
Reply with quote

icon_redface.gif
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Fri Dec 23, 2011 1:21 am    Post subject:
Reply with quote

To give you an IDEA of what it MIGHT mean, take a look at an Enterprise COBOL compile listing.

There is a count given that looks like:
Code:
 *    Procedure Division statements = 24     


That is the number of STATEMENTS in the program logic.

As you can well imagine, if people are getting paid by the statement, people will write more statements. Also, a small program may be a better program, worth more money to a company in the long run. So this SLOC stuff is just a way for non-technicals to try and get a handle on "how big" a system is.

Think about the PERL language. You've seen those filtering expressions that look like cussing in a comic strip:
url: = F(*(65$#$#$$##@@!@##$|||\\\\\\\\\\\\\\

That one line of code can replace HUNDREDS of code lines if written as IF/THEN statements.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1746
Location: Bloomington, IL

PostPosted: Fri Dec 23, 2011 1:26 am    Post subject:
Reply with quote

Ed Goodman wrote:
Think about the PERL language. You've seen those filtering expressions that look like cussing in a comic strip:
url: = F(*(65$#$#$$##@@!@##$|||\\\\\\\\\\\\\\

That one line of code can replace HUNDREDS of code lines if written as IF/THEN statements.

Is then Perl, like APL, a write-only language? icon_biggrin.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Fri Dec 23, 2011 5:22 am    Post subject:
Reply with quote

Perl is a DANGEROUS language (and I say that even though I use it regularly)! It is quite powerful but with plenty of side effects and hidden gotchas.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Update the Sortout file with record c... karthik_sripal SYNCSORT 8 Tue May 17, 2016 8:52 pm
No new posts CQM : Exec count is 0 but getpages &g... soundarr DB2 1 Thu Mar 17, 2016 10:08 pm
No new posts JCL SORT to split the file and put re... Bill Woodger DFSORT/ICETOOL 17 Wed Feb 17, 2016 4:17 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us