User:Kernigh: Difference between revisions
Content added Content deleted
(Add least common multiple. Add TI-83 BASIC.) |
(Add Emacs Lisp to the (already too long) list of languages.) |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1:
{{mylangbegin}}
|- style="background: white;"
| colspan="2" |'''4''' is best, '''1''' is worst.
{{mylang|Ruby|4}}
{{mylang|C|3}}
{{mylang|Factor|3}}
{{mylang|WML|3}}
{{mylang|C++|2}}
{{mylang|CMake|2}}
{{mylang|Common Lisp|2}}
{{mylang|Java|2}}
{{mylang|Perl|2}}
{{mylang|Emacs Lisp|1}}
{{mylang|PicoLisp|1}}
{{mylang|Python|1}}
|- style="background: #df0;"
| colspan="2" |↓ ''Unix Classic Tools'' ↓
{{mylang|UNIX Shell|3}}
{{mylang|AWK|2}}
{{mylang|bc|2}}
{{mylang|dc|2}}
{{mylang|make|2}}
{{mylang|m4|1}}
{{mylang|sed|1}}
|- style="background: #df0;"
| colspan="2" |↓ ''Alternate Shells'' ↓
{{mylang|C Shell|2}}
{{mylang|es|1}}
|- style="background: #df0;"
| colspan="2" |↓ ''Not BSD'' ↓
{{mylang|AutoHotkey|1}}
{{mylang|TI-83 BASIC|1}}
{{mylangend}}
Ruby is my best language. Most of my contributions come from an [[OpenBSD]] machine. A few of my examples come from a [[Windows]] machine with [[MinGW]]. I never used Factor, PicoLisp nor AutoHotkey until I found them at Rosetta Code.
* [https://github.com/kernigh/factor Factor for OpenBSD/amd64]
* [http://code.google.com/r/kernigh-picolisp/ PicoLisp for OpenBSD/amd64]
== Contributions by Kernigh ==
* First 20 examples for [[:Category:CMake]] and [[:Category:C Shell]]
* New tasks
** Message digests: ''[[MD4]] (DRAFT)'', ''[[RIPEMD-160]] (DRAFT)'', [[SHA-1]]
** Matrices: ''[[Conjugate transpose]] (DRAFT)'', ''[[Identity matrix]] (DRAFT)''
** Other new tasks: [[Caesar cipher]], [[Deal cards for FreeCell]], [[Empty directory]], [[Even or odd]], [[Least common multiple]], [[Linear congruential generator]], [[Return multiple values]], [[Set]], [[Subtractive generator]]
== Ruby methods in Enumerable ==
{| class="wikitable"
!| Method
!| Rosetta Code task
|-
|| <code>#all?</code>
|-
|| <code>#any?</code>
|-
|| <code>#chunk</code>
|-
|| <code>#collect</code>
|-
|| <code>#collect_concat</code>
|-
|| <code>#count</code>
|-
|| <code>#cycle</code>
|-
|| <code>#detect</code>
|-
|| <code>#drop</code>
|-
|| <code>#drop_while</code>
|-
|| <code>#each_cons</code>
|-
|| <code>#each_entry</code>
|-
|| <code>#each_slice</code>
|-
|| <code>#each_with_index</code>
|-
|| <code>#each_with_object</code>
|-
|| <code>#entries</code>
|-
|| <code>#find</code>
|-
|| <code>#find_all</code>
|-
|| <code>#find_index</code>
|-
|| <code>#first</code>
|-
|| <code>#flat_map</code>
|-
|| <code>#grep</code>
|-
|| <code>#group_by</code>
|-
|| <code>#include?</code>
|-
|| <code>#inject</code>
|-
|| <code>#map</code>
|-
|| <code>#max</code>
|-
|| <code>#max_by</code>
|-
|| <code>#member?</code>
|-
|| <code>#min</code>
|-
|| <code>#min_by</code>
|-
|| <code>#minmax</code>
|-
|| <code>#minmax_by</code>
|-
|| <code>#none?</code>
|-
|| <code>#one?</code>
|-
|| <code>#partition</code>
|-
|| <code>#reduce</code>
|-
|| <code>#reject</code>
|-
|| <code>#reverse_each</code>
|-
|| <code>#select</code> || [[Filter]]
|-
|| <code>#slice_before</code>
|-
|| <code>#sort</code> ||
* [[Sort an integer array]]
* [[Sort using a custom comparator]]
|-
|| <code>#sort_by</code> || [[Sort an array of composite structures]]
|-
|| <code>#take</code>
|-
|| <code>#take_while</code>
|-
|| <code>#to_a</code>
|-
|| <code>#zip</code> || [[Loop over multiple arrays simultaneously]]
|}
|
Latest revision as of 19:14, 25 July 2012
My Favorite Languages | |
Language | Proficiency |
4 is best, 1 is worst. | |
Ruby | 4 |
C | 3 |
Factor | 3 |
WML | 3 |
C++ | 2 |
CMake | 2 |
Common Lisp | 2 |
Java | 2 |
Perl | 2 |
Emacs Lisp | 1 |
PicoLisp | 1 |
Python | 1 |
↓ Unix Classic Tools ↓ | |
UNIX Shell | 3 |
AWK | 2 |
bc | 2 |
dc | 2 |
make | 2 |
m4 | 1 |
sed | 1 |
↓ Alternate Shells ↓ | |
C Shell | 2 |
es | 1 |
↓ Not BSD ↓ | |
AutoHotkey | 1 |
TI-83 BASIC | 1 |
Ruby is my best language. Most of my contributions come from an OpenBSD machine. A few of my examples come from a Windows machine with MinGW. I never used Factor, PicoLisp nor AutoHotkey until I found them at Rosetta Code.
Contributions by Kernigh
- First 20 examples for Category:CMake and Category:C Shell
- New tasks
- Message digests: MD4 (DRAFT), RIPEMD-160 (DRAFT), SHA-1
- Matrices: Conjugate transpose (DRAFT), Identity matrix (DRAFT)
- Other new tasks: Caesar cipher, Deal cards for FreeCell, Empty directory, Even or odd, Least common multiple, Linear congruential generator, Return multiple values, Set, Subtractive generator
Ruby methods in Enumerable
Method | Rosetta Code task |
---|---|
#all?
| |
#any?
| |
#chunk
| |
#collect
| |
#collect_concat
| |
#count
| |
#cycle
| |
#detect
| |
#drop
| |
#drop_while
| |
#each_cons
| |
#each_entry
| |
#each_slice
| |
#each_with_index
| |
#each_with_object
| |
#entries
| |
#find
| |
#find_all
| |
#find_index
| |
#first
| |
#flat_map
| |
#grep
| |
#group_by
| |
#include?
| |
#inject
| |
#map
| |
#max
| |
#max_by
| |
#member?
| |
#min
| |
#min_by
| |
#minmax
| |
#minmax_by
| |
#none?
| |
#one?
| |
#partition
| |
#reduce
| |
#reject
| |
#reverse_each
| |
#select |
Filter |
#slice_before
| |
#sort |
|
#sort_by |
Sort an array of composite structures |
#take
| |
#take_while
| |
#to_a
| |
#zip |
Loop over multiple arrays simultaneously |