Linee di codice: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Theferro (discussione | contributi)
Nessun oggetto della modifica
Theferro (discussione | contributi)
Nessun oggetto della modifica
Riga 38:
 
Le SLOC come metrica e' nata con i tradizionali linguaggi tradizionali line-oriented( [[FORTRAN]], [[assembly|assembler]], [[C (linguaggio) | C]]). In questi casi la misura delle linee di codice dava effettviamente una fotografia veritiera delle complessita' del software. Oggi con i paradigmi ad oggetti non e' piu' cosi' vero. E' chiaro pero' che la SLOC risulta la metrica di complessita' del codice piu' facile da misurare e da implementare. Queste caratteristiche fanno si che sia ancora molto usata.
 
 
==Esempi==
 
Ecco le SLOC dei sistemi operativi Microsoft:
 
{| class="wikitable" summary="Microsoft Windows NT SLOC Sizes"
|-
! Year || Operating System || SLOC (Million)
|-
| 1993 || Windows NT 3.1 || 4-5<ref name = "Knowing.NET">{{citation
|url=http://www.knowing.net/PermaLink,guid,c4bdc793-bbcf-4fff-8167-3eb1f4f4ef99.aspx
|title=How Many Lines of Code in Windows?
|publisher=Knowing.NET
|date=December 06, 2005
|accessdate=2007-10-18
}}<br />This in turn cites Vincent Maraia's ''The Build Master'' as the source of the information.</ref>
|-
| 1994 || Windows NT 3.5 || 7-8<ref name = "Knowing.NET"/>
|-
| 1996 || Windows NT 4.0 || 11-12<ref name = "Knowing.NET"/>
|-
| 2000 || Windows 2000 || more than 29<ref name = "Knowing.NET"/>
|-
| 2001 || Windows XP || 40<ref name = "Knowing.NET"/>
|-
| 2003 || Windows Server 2003 || 50<ref name = "Knowing.NET"/>
|}
 
Ecco le SLOC di sistemi operativi non Microsoft:
 
{| class="wikitable" summary="Operating Systems SLOC Sizes"
|-
! Operating System || SLOC (Million)
|-
| [[Red Hat Linux]] 6.2 || 17{{Fact|date=February 2007}}
|-
| Red Hat Linux 7.1 || 30{{Fact|date=February 2007}}
|-
| Debian 2.2 || 55-59<ref>{{cite web | author = González-Barahona, Jesús M., Miguel A. Ortuño Pérez, Pedro de las Heras Quirós, José Centeno González, and Vicente Matellán Olivera | title = Counting potatoes: the size of Debian 2.2 | url = http://people.debian.org/~jgb/debian-counting/counting-potatoes/ | work = debian.org | accessdate = 2003-08-12 }}</ref><ref name="debian-sloc">{{cite web | last = Robles | first = Gregorio | title = Debian Counting | url = http://libresoft.dat.escet.urjc.es/debian-counting/ | accessdate = 2007-02-16 }}</ref>
|-
| Debian 3.0 || 104<ref name="debian-sloc"/>
|-
| Debian 3.1 || 215<ref name="debian-sloc"/>
|-
| Debian 4.0 || 283<ref name="debian-sloc"/>
|-
| [[Opensolaris|OpenSolaris]] || 9.7
|-
| [[FreeBSD]] || 8.8
|-
| [[Mac OS X]] 10.4 || 86<ref>{{cite web | last = Jobs | first = Steve | title = Live from WWDC 2006: Steve Jobs Keynote | url = http://www.engadget.com/2006/08/07/live-from-wwdc-2006-steve-jobs-keynote/ | year = 2006 | month = August | accessdate = 2007-02-16 | quote = 86 million lines of source code that was ported to run on an entirely new architecture with zero hiccups. | note = Possibly including the whole iLife suite, not just the operating system and usually bundled applications. }}</ref>
|-
| [[Linux (kernel)|Linux kernel]] 2.6.0 || 5.2
|}
 
In comparison, below are figures for various graphics applications.
{| class="wikitable" summary="Graphics Programs"
|-
! Graphics Program || SLOC (Million)
|-
| [[OpenOffice.org]] || ~10{{Fact|date=February 2007}}
|-
| [[Blender (software)|Blender]] 2.42 || ~1{{Fact|date=February 2007}}
|-
| [[GIMP]] v2.3.8 || 0.65{{Fact|date=February 2007}}
|-
| [[Paint.NET]] 3.0 || 0.13{{Fact|date=February 2007}}
|}
 
 
== Voci correlate ==