Thu Apr 25 13:56:44 2024
EVENTS
 FREE
SOFTWARE
INSTITUTE

POLITICS
JOBS
MEMBERS'
CORNER

MAILING
LIST

NYLXS Mailing Lists and Archives
NYLXS Members have a lot to say and share but we don't keep many secrets. Join the Hangout Mailing List and say your peice.

DATE 2016-02-01

LEARN

2024-04-25 | 2024-03-25 | 2024-02-25 | 2024-01-25 | 2023-12-25 | 2023-11-25 | 2023-10-25 | 2023-09-25 | 2023-08-25 | 2023-07-25 | 2023-06-25 | 2023-05-25 | 2023-04-25 | 2023-03-25 | 2023-02-25 | 2023-01-25 | 2022-12-25 | 2022-11-25 | 2022-10-25 | 2022-09-25 | 2022-08-25 | 2022-07-25 | 2022-06-25 | 2022-05-25 | 2022-04-25 | 2022-03-25 | 2022-02-25 | 2022-01-25 | 2021-12-25 | 2021-11-25 | 2021-10-25 | 2021-09-25 | 2021-08-25 | 2021-07-25 | 2021-06-25 | 2021-05-25 | 2021-04-25 | 2021-03-25 | 2021-02-25 | 2021-01-25 | 2020-12-25 | 2020-11-25 | 2020-10-25 | 2020-09-25 | 2020-08-25 | 2020-07-25 | 2020-06-25 | 2020-05-25 | 2020-04-25 | 2020-03-25 | 2020-02-25 | 2020-01-25 | 2019-12-25 | 2019-11-25 | 2019-10-25 | 2019-09-25 | 2019-08-25 | 2019-07-25 | 2019-06-25 | 2019-05-25 | 2019-04-25 | 2019-03-25 | 2019-02-25 | 2019-01-25 | 2018-12-25 | 2018-11-25 | 2018-10-25 | 2018-09-25 | 2018-08-25 | 2018-07-25 | 2018-06-25 | 2018-05-25 | 2018-04-25 | 2018-03-25 | 2018-02-25 | 2018-01-25 | 2017-12-25 | 2017-11-25 | 2017-10-25 | 2017-09-25 | 2017-08-25 | 2017-07-25 | 2017-06-25 | 2017-05-25 | 2017-04-25 | 2017-03-25 | 2017-02-25 | 2017-01-25 | 2016-12-25 | 2016-11-25 | 2016-10-25 | 2016-09-25 | 2016-08-25 | 2016-07-25 | 2016-06-25 | 2016-05-25 | 2016-04-25 | 2016-03-25 | 2016-02-25 | 2016-01-25 | 2015-12-25 | 2015-11-25 | 2015-10-25 | 2015-09-25 | 2015-08-25 | 2015-07-25 | 2015-06-25 | 2015-05-25 | 2015-04-25 | 2015-03-25 | 2015-02-25 | 2015-01-25 | 2014-12-25 | 2014-11-25 | 2014-10-25

Key: Value:

Key: Value:

MESSAGE
DATE 2016-02-15
FROM Ruben Safir
SUBJECT Subject: [Learn] why do I need this
From learn-bounces-at-nylxs.com Mon Feb 22 10:58:23 2016
Return-Path:
X-Original-To: archive-at-mrbrklyn.com
Delivered-To: archive-at-mrbrklyn.com
Received: from www.mrbrklyn.com (www.mrbrklyn.com [96.57.23.82])
by mrbrklyn.com (Postfix) with ESMTP id 0F24C163D9B;
Mon, 22 Feb 2016 10:58:23 -0500 (EST)
X-Original-To: learn-at-nylxs.com
Delivered-To: learn-at-nylxs.com
Received: from [10.0.0.19] (stat13.mrbrklyn.com [10.0.0.19])
by mrbrklyn.com (Postfix) with ESMTP id 1832416249E;
Mon, 15 Feb 2016 02:23:16 -0500 (EST)
To: Christopher League
From: Ruben Safir
Message-ID: <56C17CE4.3040904-at-mrbrklyn.com>
Date: Mon, 15 Feb 2016 02:23:16 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
Thunderbird/38.5.1
MIME-Version: 1.0
X-Mailman-Approved-At: Mon, 22 Feb 2016 10:35:27 -0500
Subject: [Learn] why do I need this
X-BeenThere: learn-at-nylxs.com
X-Mailman-Version: 2.1.17
Precedence: list
List-Id:
List-Unsubscribe: ,

List-Archive:
List-Post:
List-Help:
List-Subscribe: ,

Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: learn-bounces-at-nylxs.com
Sender: "Learn"

package pico;

import java.util.ArrayList;

public class TokenListSource implements TokenSource {
ArrayList list;
int nextIndex = 0;

public TokenListSource(ArrayList list) {
this.list = list;
}

-at-Override
public Token nextToken() {
if(nextIndex < list.size()) {
return list.get(nextIndex++);
}
else {
return new Token(Token.Type.EOF);
}
}
}


If all I'm doing is creating an interface that walks through a linked
list? then why do I need all this useless complexity. Java already has
a library that does that.

We are not creating the list. We are not abstracting the list as a new
data type or implementing it within a new data type, Java has NO
templates, or we are not using any templates here, so we are not making
this an usable interface that serves multiple types... We are adding
NOTHING with this other than to confuse the student and creating useless
overhead.

If I am wrong, please explain.

Ruben


--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
_______________________________________________
Learn mailing list
Learn-at-nylxs.com
http://lists.mrbrklyn.com/mailman/listinfo/learn

  1. 2016-02-03 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] Compiler class
  2. 2016-02-04 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] Java Errors
  3. 2016-02-12 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] Advanced Linux Programming essentials
  4. 2016-02-15 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] why do I need this
  5. 2016-02-26 Ruben Safir <ruben-at-mrbrklyn.com> Re: [Learn] CS664: New video(s)
  6. 2016-02-28 Ruben Safir <ruben-at-mrbrklyn.com> Re: [Learn] C++ and C workshop
  7. 2016-02-28 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] C++ and C workshop
  8. 2016-02-28 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] C, C++ and Kernel Programming
  9. 2016-02-29 Ruben Safir <ruben-at-mrbrklyn.com> Subject: [Learn] Change to Tuesday at 7PM C++ and C workshop

NYLXS are Do'ers and the first step of Doing is Joining! Join NYLXS and make a difference in your community today!