Fri Nov 22 00:19:45 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-11-22 | 2024-10-22 | 2024-09-22 | 2024-08-22 | 2024-07-22 | 2024-06-22 | 2024-05-22 | 2024-04-22 | 2024-03-22 | 2024-02-22 | 2024-01-22 | 2023-12-22 | 2023-11-22 | 2023-10-22 | 2023-09-22 | 2023-08-22 | 2023-07-22 | 2023-06-22 | 2023-05-22 | 2023-04-22 | 2023-03-22 | 2023-02-22 | 2023-01-22 | 2022-12-22 | 2022-11-22 | 2022-10-22 | 2022-09-22 | 2022-08-22 | 2022-07-22 | 2022-06-22 | 2022-05-22 | 2022-04-22 | 2022-03-22 | 2022-02-22 | 2022-01-22 | 2021-12-22 | 2021-11-22 | 2021-10-22 | 2021-09-22 | 2021-08-22 | 2021-07-22 | 2021-06-22 | 2021-05-22 | 2021-04-22 | 2021-03-22 | 2021-02-22 | 2021-01-22 | 2020-12-22 | 2020-11-22 | 2020-10-22 | 2020-09-22 | 2020-08-22 | 2020-07-22 | 2020-06-22 | 2020-05-22 | 2020-04-22 | 2020-03-22 | 2020-02-22 | 2020-01-22 | 2019-12-22 | 2019-11-22 | 2019-10-22 | 2019-09-22 | 2019-08-22 | 2019-07-22 | 2019-06-22 | 2019-05-22 | 2019-04-22 | 2019-03-22 | 2019-02-22 | 2019-01-22 | 2018-12-22 | 2018-11-22 | 2018-10-22 | 2018-09-22 | 2018-08-22 | 2018-07-22 | 2018-06-22 | 2018-05-22 | 2018-04-22 | 2018-03-22 | 2018-02-22 | 2018-01-22 | 2017-12-22 | 2017-11-22 | 2017-10-22 | 2017-09-22 | 2017-08-22 | 2017-07-22 | 2017-06-22 | 2017-05-22 | 2017-04-22 | 2017-03-22 | 2017-02-22 | 2017-01-22 | 2016-12-22 | 2016-11-22 | 2016-10-22 | 2016-09-22 | 2016-08-22 | 2016-07-22 | 2016-06-22 | 2016-05-22 | 2016-04-22 | 2016-03-22 | 2016-02-22 | 2016-01-22 | 2015-12-22 | 2015-11-22 | 2015-10-22 | 2015-09-22 | 2015-08-22 | 2015-07-22 | 2015-06-22 | 2015-05-22 | 2015-04-22 | 2015-03-22 | 2015-02-22 | 2015-01-22 | 2014-12-22 | 2014-11-22 | 2014-10-22

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!