Browse Wiki & Semantic Web

Jump to: navigation, search
Http://dbpedia.org/resource/One-liner program
  This page has no properties.
hide properties that link here 
  No properties link to this page.
 
http://dbpedia.org/resource/One-liner_program
http://dbpedia.org/ontology/abstract Un uniligne (one liner pour les anglophoneUn uniligne (one liner pour les anglophones) est généralement un programme informatique jetable, mais peu banal, écrit pour une tâche ponctuelle en un langage de script tel que Perl ou Ruby, et tenant sur une seule ligne. Des langages qui imposent plusieurs phases avant l'exécution, la déclaration explicite de variables, de fonctions ou, pire, de classes, ne se prêtent pas aux unilignes. Les unilignes bénéficient des qualités DWIM (Do What I Mean) et DRY (Don't Repeat Yourself) propres à certains langages. Parce qu'un uniligne est rarement destiné à être réutilisé, les considérations de lisibilité par un tiers sont secondaires. Certains unilignes sont des assombrissements délibérés. En revanche, ils peuvent être pédagogiques en démontrant de manière concise certains idiotismes du langage. Il faut néanmoins savoir que certains idiotismes deviennentinapplicables ou dangereux dans le cadre de programmes avec beaucoup de lignes de code.rogrammes avec beaucoup de lignes de code. , In computer programming, a one-liner progrIn computer programming, a one-liner program originally was textual input to the command-line of an operating system shell that performed some function in just one line of input. In the present day, a one-liner can be * an expression written in the language of the shell; * the invocation of an interpreter together with program source for the interpreter to run; * the invocation of a compiler together with source to compile and instructions for executing the compiled program. Certain dynamic languages for scripting, such as AWK, sed, and Perl, have traditionally been adept at expressing one-liners.Shell interpreters such as Unix shells or Windows PowerShell allow for the construction of powerful one-liners. The use of the phrase one-liner has been widened to also include program-source for any language that does something useful in one line.ge that does something useful in one line. , 單行小程式(One-liner program)是不多於一行的電腦程序或表達式。它常單行小程式(One-liner program)是不多於一行的電腦程序或表達式。它常被用来展示程式語言在不同範疇的表達能力。實際上,單行小程式常被直接地從命令線輸入和執行。Perl是一種優秀的用来創造單行小程式的語言。許多單行小程式是實用的,例如以下perl單行小程式將反轉文件中的所有位元組: perl -0777e 'print scalar reverse <>' filename 單行小程式经常用來展示編程的能力。經常有看誰能創造最好的單行小程式的比賽。 99瓶啤酒電腦程式單行小程式的例子: perl -e '$b="of beer";$w="on the wall";print "$_ ",b($_)," $b $w $_ ",b($_)," $b take one down, pass it around, ",$_-1," ",b($_-1)," $b $w " foreach (reverse 1..99);sub b{$x="bottle";$_[0]==1?$x:$x."s";}' 一個剪刀石頭布遊戲單行小程式: perl -e '$c=(($r,$s,$p)=qw|rock scissors paper|)[(int rand 3)];$|=0;until($y=~/^($r|$s|$p)$/){print "$r, $s or $p? ";$y=<>;chop $y};%r=($s,{$p,1,$r,0},$p,{$r,1,$s,0},$r,{$s,1,$p,0});print "You: $y Com: $c You ".((exists $r{$y}{$c}?($r{$y}{$c}?"Win":"Lose"):"Draw")." ")' Perl不是唯一一個能写出單行小程式的语言。以下是顯示輸入的内容的ASCII碼的C程式: void main(void) {int c; while(c = getchar) printf("%d %02X ", c, c);}le(c = getchar) printf("%d %02X ", c, c);} , One-liner (traducibile dall'inglese come "One-liner (traducibile dall'inglese come "mono-linea"), in informatica, indica un input di un'unica riga di codice fornita ad un interprete di comandi per eseguire un determinato compito. Il termine viene usato per estensione per indicare un programma in un qualsiasi linguaggio che svolge una funzione non banale in una sola riga di codice. Uno one-liner è tipicamente scritto nel linguaggio della shell sulla quale viene eseguito oppure invoca un altro interprete e gli passa il codice da eseguire, più raramente invoca un compilatore, fornendo il sorgente da compilare e le istruzioni per eseguire il software compilato. Alcuni linguaggi dinamici di scripting come awk, sed e Perl sono tradizionalmente usati per scrivere one-liner. Gli one-liner sono usati talvolta per mostrare l'espressività di un linguaggio di programmazione, o l'abilità di un programmatore, ed esistono competizioni il cui obiettivo è creare one-liner particolarmente compatti ed espressivi.er particolarmente compatti ed espressivi.
http://dbpedia.org/ontology/thumbnail http://commons.wikimedia.org/wiki/Special:FilePath/10print.gif?width=300 +
http://dbpedia.org/ontology/wikiPageExternalLink http://code.activestate.com/recipes/437932-pyline-a-grep-like-sed-like-command-line-tool/ + , https://sourceforge.net/ + , http://wiki.tcl.tk/ + , http://code.google.com/p/pyp/ + , http://www.tkdocs.com/ + , http://core.tcl.tk/ +
http://dbpedia.org/ontology/wikiPageID 898917
http://dbpedia.org/ontology/wikiPageLength 12774
http://dbpedia.org/ontology/wikiPageRevisionID 1118355922
http://dbpedia.org/ontology/wikiPageWikiLink http://dbpedia.org/resource/Compiler + , http://dbpedia.org/resource/C_%28programming_language%29 + , http://dbpedia.org/resource/Type-in_program + , http://dbpedia.org/resource/Windows_PowerShell + , http://dbpedia.org/resource/Wikibooks + , http://dbpedia.org/resource/Racket_%28programming_language%29 + , http://dbpedia.org/resource/ASCII + , http://dbpedia.org/resource/Unix + , http://dbpedia.org/resource/AWK_programming_language + , http://dbpedia.org/resource/Command-line + , http://dbpedia.org/resource/Operating_system + , http://dbpedia.org/resource/Category:Articles_with_example_C_code + , http://dbpedia.org/resource/Perl + , http://dbpedia.org/resource/J_%28programming_language%29 + , http://dbpedia.org/resource/Execution_%28computing%29 + , http://dbpedia.org/resource/Interpreter_%28computing%29 + , http://dbpedia.org/resource/Bookmarklet + , http://dbpedia.org/resource/Wc_%28Unix%29 + , http://dbpedia.org/resource/Category:Computer_programming + , http://dbpedia.org/resource/Expression_%28computer_science%29 + , http://dbpedia.org/resource/File:10print.gif + , http://dbpedia.org/resource/Computer_programming + , http://dbpedia.org/resource/The_AWK_Programming_Language + , http://dbpedia.org/resource/APL_%28programming_language%29 + , http://dbpedia.org/resource/BASIC + , http://dbpedia.org/resource/Commodore_64 + , http://dbpedia.org/resource/Haskell_%28programming_language%29 + , http://dbpedia.org/resource/Scripting_language + , http://dbpedia.org/resource/Unix_shell + , http://dbpedia.org/resource/Category:Articles_with_example_Racket_code + , http://dbpedia.org/resource/Category:Articles_with_example_Haskell_code + , http://dbpedia.org/resource/Python_%28programming_language%29 + , http://dbpedia.org/resource/Shell_%28computing%29 + , http://dbpedia.org/resource/Home_computer + , http://dbpedia.org/resource/IOCCC + , http://dbpedia.org/resource/Quicksort + , http://dbpedia.org/resource/Sed_%28programming_language%29 + , http://dbpedia.org/resource/Programming_language + , http://dbpedia.org/resource/Tcl + , http://dbpedia.org/resource/Category:Articles_with_example_Python_%28programming_language%29_code + , http://dbpedia.org/resource/Dynamic_programming_language + , http://dbpedia.org/resource/Category:Articles_with_example_Perl_code +
http://dbpedia.org/property/b Perl Programming
http://dbpedia.org/property/commons Category:Perl
http://dbpedia.org/property/n no
http://dbpedia.org/property/q Perl
http://dbpedia.org/property/s no
http://dbpedia.org/property/v Topic:Perl
http://dbpedia.org/property/wikiPageUsesTemplate http://dbpedia.org/resource/Template:More_citations_needed + , http://dbpedia.org/resource/Template:Reflist + , http://dbpedia.org/resource/Template:Quote + , http://dbpedia.org/resource/Template:Sister_project_links + , http://dbpedia.org/resource/Template:Short_description +
http://purl.org/dc/terms/subject http://dbpedia.org/resource/Category:Articles_with_example_Python_%28programming_language%29_code + , http://dbpedia.org/resource/Category:Articles_with_example_Perl_code + , http://dbpedia.org/resource/Category:Articles_with_example_Haskell_code + , http://dbpedia.org/resource/Category:Articles_with_example_Racket_code + , http://dbpedia.org/resource/Category:Articles_with_example_C_code + , http://dbpedia.org/resource/Category:Computer_programming +
http://purl.org/linguistics/gold/hypernym http://dbpedia.org/resource/Input +
http://www.w3.org/ns/prov#wasDerivedFrom http://en.wikipedia.org/wiki/One-liner_program?oldid=1118355922&ns=0 +
http://xmlns.com/foaf/0.1/depiction http://commons.wikimedia.org/wiki/Special:FilePath/10print.gif +
http://xmlns.com/foaf/0.1/homepage http://www.tkdocs.com/ +
http://xmlns.com/foaf/0.1/isPrimaryTopicOf http://en.wikipedia.org/wiki/One-liner_program +
owl:sameAs http://rdf.freebase.com/ns/m.03m_9d + , http://www.wikidata.org/entity/Q3549976 + , https://global.dbpedia.org/id/3H4VK + , http://de.dbpedia.org/resource/Einzeiler_%28Informatik%29 + , http://dbpedia.org/resource/One-liner_program + , http://it.dbpedia.org/resource/One-liner + , http://yago-knowledge.org/resource/One-liner_program + , http://fr.dbpedia.org/resource/Uniligne + , http://zh.dbpedia.org/resource/%E5%96%AE%E8%A1%8C%E5%B0%8F%E7%A8%8B%E5%BC%8F +
rdf:type http://dbpedia.org/class/yago/Language106282651 + , http://dbpedia.org/class/yago/Abstraction100002137 + , http://dbpedia.org/class/yago/WikicatScriptingLanguages + , http://dbpedia.org/class/yago/Communication100033020 +
rdfs:comment One-liner (traducibile dall'inglese come "One-liner (traducibile dall'inglese come "mono-linea"), in informatica, indica un input di un'unica riga di codice fornita ad un interprete di comandi per eseguire un determinato compito. Il termine viene usato per estensione per indicare un programma in un qualsiasi linguaggio che svolge una funzione non banale in una sola riga di codice. Uno one-liner è tipicamente scritto nel linguaggio della shell sulla quale viene eseguito oppure invoca un altro interprete e gli passa il codice da eseguire, più raramente invoca un compilatore, fornendo il sorgente da compilare e le istruzioni per eseguire il software compilato.uzioni per eseguire il software compilato. , In computer programming, a one-liner progrIn computer programming, a one-liner program originally was textual input to the command-line of an operating system shell that performed some function in just one line of input. In the present day, a one-liner can be * an expression written in the language of the shell; * the invocation of an interpreter together with program source for the interpreter to run; * the invocation of a compiler together with source to compile and instructions for executing the compiled program.ctions for executing the compiled program. , 單行小程式(One-liner program)是不多於一行的電腦程序或表達式。它常單行小程式(One-liner program)是不多於一行的電腦程序或表達式。它常被用来展示程式語言在不同範疇的表達能力。實際上,單行小程式常被直接地從命令線輸入和執行。Perl是一種優秀的用来創造單行小程式的語言。許多單行小程式是實用的,例如以下perl單行小程式將反轉文件中的所有位元組: perl -0777e 'print scalar reverse <>' filename 單行小程式经常用來展示編程的能力。經常有看誰能創造最好的單行小程式的比賽。 99瓶啤酒電腦程式單行小程式的例子: perl -e '$b="of beer";$w="on the wall";print "$_ ",b($_)," $b $w $_ ",b($_)," $b take one down, pass it around, ",$_-1," ",b($_-1)," $b $w " foreach (reverse 1..99);sub b{$x="bottle";$_[0]==1?$x:$x."s";}' 一個剪刀石頭布遊戲單行小程式: Perl不是唯一一個能写出單行小程式的语言。以下是顯示輸入的内容的ASCII碼的C程式: void main(void) {int c; while(c = getchar) printf("%d %02X ", c, c);}le(c = getchar) printf("%d %02X ", c, c);} , Un uniligne (one liner pour les anglophoneUn uniligne (one liner pour les anglophones) est généralement un programme informatique jetable, mais peu banal, écrit pour une tâche ponctuelle en un langage de script tel que Perl ou Ruby, et tenant sur une seule ligne. Des langages qui imposent plusieurs phases avant l'exécution, la déclaration explicite de variables, de fonctions ou, pire, de classes, ne se prêtent pas aux unilignes. Les unilignes bénéficient des qualités DWIM (Do What I Mean) et DRY (Don't Repeat Yourself) propres à certains langages.eat Yourself) propres à certains langages.
rdfs:label Uniligne , One-liner program , 單行小程式 , One-liner
hide properties that link here 
http://dbpedia.org/resource/One-liner + http://dbpedia.org/ontology/wikiPageDisambiguates
http://dbpedia.org/resource/One-Line_Programs + http://dbpedia.org/ontology/wikiPageRedirects
http://dbpedia.org/resource/AWK + , http://dbpedia.org/resource/Array_programming + , http://dbpedia.org/resource/Plack_%28software%29 + , http://dbpedia.org/resource/Perl + , http://dbpedia.org/resource/Type-in_program + , http://dbpedia.org/resource/Neofetch + , http://dbpedia.org/resource/Sed + , http://dbpedia.org/resource/One-Line_Programs + , http://dbpedia.org/resource/One-liner + http://dbpedia.org/ontology/wikiPageWikiLink
http://en.wikipedia.org/wiki/One-liner_program + http://xmlns.com/foaf/0.1/primaryTopic
http://dbpedia.org/resource/One-liner_program + owl:sameAs
 

 

Enter the name of the page to start semantic browsing from.