IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Why would I do that?
isSystemGood: sys

| goodSystems badSystems |

goodSystems := #( SunOS Linux)
badSystems := #('Windows NT' 'Windows 95')

(goodSystems includes: sys) ifTrue: [^true].
(badSystems includes: sys) ifTrue: [^false].
self error: 'Unknown System'.



[link|http://www.blackbagops.net|Black Bag Operations Log]

[link|http://www.objectiveclips.com|Artificial Intelligence]

[link|http://www.badpage.info/seaside/html|Scrutinizer]
Expand Edited by tuberculosis Nov. 28, 2006, 12:43:09 AM EST
New Reinventing query languages in Smalltalk again?
\nSELECT OS_Name, IIF(osBase='UNIX','Good','Bad') AS Jugdement\nFROM OperatingSystems\n

(Some dialects use WHEN...ELSE...END instead of IIF)
________________
oop.ismad.com
New Smalltalk queries/collection operations predate SQL
by about 5 years I think.

Smalltalk collections respond to:

select: - provide filtered version of collection ie

#( 1 2 3 4 5 6 ) select: [:each | each isEven].
#(2 4 6)

detect: - first found

#( 1 2 3 4 5 6 ) detect: [:each | each > 3 and: [each isOdd]].
5

reject: - inverted select
#( 1 2 3 4 5 6 ) select: [:each | each isEven].
#(1 3 5)

collect: - used to derive a new collection from an existing one
#( 1 2 3 4 5 6 ) collect: [:each | each * 5].
#(5 10 15 20 25 30)

Nothing to reinvent, really. We were here first.



[link|http://www.blackbagops.net|Black Bag Operations Log]

[link|http://www.objectiveclips.com|Artificial Intelligence]

[link|http://www.badpage.info/seaside/html|Scrutinizer]
New It does not predate OTHER relational languages
________________
oop.ismad.com
New What are you NUTS?
Smalltalk?

seriously any of the *talk languages...

You are on Drugs.
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey
Freedom is not FREE.
Yeah, but 10s of Trillions of US Dollars?
SELECT * FROM scog WHERE ethics > 0;

0 rows returned.
New First relational languages appeared in the early 70's
and earlier if you count Codd's math notation.
________________
oop.ismad.com
New Smalltalk was 71
[link|http://www.levenez.com/lang/history.html#03|http://www.levenez.c...g/history.html#03]

Don't bother quoting Codd's math notation. Not implemented == not exists.

You may now put your pipe down.
New Some context...
Map, Filter, and Reduce are morphisms arising from mathematics. Likely that if you want to find the first use in programming languages, you'd probably find them in Lisp. But then Smalltalk was heavily influenced by Lisp (and Algol), so that wouldn't be surprising.

Map applies a function over a collection. Filter applies a predicate to a collection and returns a subset where the predicate is true. Reduce is a fold of a collection.

Guess I should also reuse my explanation of [link|http://z.iwethey.org/forums/render/content/show?contentid=247589|Higher Order Functions] in an earlier thread.
Expand Edited by ChrisR Dec. 3, 2006, 07:28:35 PM EST
     The Love Bloat - Scary OOP Mess - (tablizer) - (24)
         You're being religious, again - (warmachine) - (17)
             You proved my point - (tablizer) - (16)
                 Had to use OOP, not attribute driven, for one of my apps - (warmachine) - (15)
                     Polymorphism is limited - (tablizer) - (14)
                         I'm not a religious zealot - (warmachine) - (13)
                             Domain things rarely divide nicely into "types" - (tablizer) - (12)
                                 They divide about as neatly into types as the do into tables -NT - (tuberculosis) - (11)
                                     Bull, hierarchies cannot do sets without duplication -NT - (tablizer) - (10)
                                         I have no idea what you are talking about - (tuberculosis) - (9)
                                             Take sample sets and try to turn them into trees - (tablizer) - (8)
                                                 Why would I do that? - (tuberculosis) - (7)
                                                     Reinventing query languages in Smalltalk again? - (tablizer) - (6)
                                                         Smalltalk queries/collection operations predate SQL - (tuberculosis) - (5)
                                                             It does not predate OTHER relational languages -NT - (tablizer) - (4)
                                                                 What are you NUTS? - (folkert) - (3)
                                                                     First relational languages appeared in the early 70's - (tablizer) - (2)
                                                                         Smalltalk was 71 - (crazy) - (1)
                                                                             Some context... - (ChrisR)
         Java is not OO. - (tuberculosis) - (1)
             Can't tell because there are too many definitions of OO - (tablizer)
         We've had this argument before. - (static) - (3)
             Prove it by showing me "difficult" procedural code - (tablizer) - (2)
                 You don't pay me well enough to code that. -NT - (static) - (1)
                     I didn't pay you to make unsubstantiated claims either - (tablizer)

Man... licensed to kill gophers.
59 ms