| Teaching Children (was Re: Help, where to start learning Java) |
|
 |
Index ‹ java-programmer
|
- Previous
- 2
- Java developer needed (Open Source project)Java developer needed, pref. with socket prog exp
---------------------------------------------------
Programming Language :: Java Competent 6 Mo - 2 yr
Socket programming(Java):: Want to learn < 6 Months
Project page: http://freelancebot.sourceforge.net/
- 3
- Kodak v Sun; patent law gone all wrong?If in 1995 Sun Microsystems, Inc. changed the name of OAK to Java and
modified the code for the Internet, how did Sun infringe the patents
Kodak acquired from 'Wang' in 1997? What damning evidence did Kodak have
that in 1995, Sun incorporated the 'Khoyi' method, thereby infringed the
patents?
The "Khoyi patents", named after Dana Khoyi - an ex-Wang engineer,
"covered a method by which a program can get help from another computer
application to complete a task", which they claim is the way Java
operates and that Sun has therefore infringed the Khoyi patents..
Whose intellectual property is Java? Surely Java was patented in 1995,
just after the change? Were the Wang 'Khoyi' patents and Sun 'Java'
patents identical? I take it Wang patented their software years before
Sun did? Does anyone know what year?
If the two were identical or similar, isn't it possible that in a world
of 6,395,379,218 people, it is more than likely that two or more people
might have the same ideas? I find it difficult to believe that Sun
infringed Kodak's patents, but rather that Kodak got a little too
desperate given it's not doing so well in this 'digital' age and had to
lay off some 15,000 jobs worldwide a month ago "because of declining
demand for consumer film and colour photographic paper"..
How on earth can an eight member jury of lay people understand "patent
law" to deliberate and find in favour of Kodak? I don't understand how a
jury could possibly fathom the complexities of patent law, without any
background or education in the legal arena, and find in Kodak's favour?
There are a lot of questions that I have to things that don't add up,
like; Java is freely downloadable, so how can any jury find in favour of
Kodak who wanted damages of $1.06 billion in past royalties??
How did Kodak prove that Sun had access to its patents?
If Kodak is so sure that Sun infringed patents, why did it bother to
agree to the $92 million settlement? Surely they believed they would be
awarded $1.06 billion or even more..? accepting such a small amount (for
them) is silly, it sounds to me like they thought they wouldn't win..
This case is a perfect example why juries should NOT be involved in
patent suits.
Sun should not have settled the case, it should have seen the case
through and appealed the prospective travesty of justice..
Does anyone agree with me here? I'd be interested in other people's
opinions on this issue. A public debate, anyone?
- 3
- [JSF] How to determine the WEB-INF path of the current web application?Hello everybody,
I'm new to the Java world writing my first Java web application with JSF 1.1
and Tomcat 5.5. I have the following problem:
I've created a Properties file and placed it in the WEB-INF directory of the
web application. The file contains several configuration options like
database parameters. I want to open this file within my web application
with a FileInputStream which I pass to the load() method of a Properties
object. Unfortunately I was unable to determine the path of the WEB-INF
directory of the current web application. I don't want to write the path
hard coded into the source code.
Maybe my way is not the correct "Java way" of solving this kind of problem
so I'm not only interested in an answer to my question but also in
suggestions how to solve this problem in a better way.
Thank you!
--
Sincerely
Sven Jacobs
- 6
- 6
- traversing through arraysSuppose I've got the following code
public class EmployeeData
{
public static void main(String [] args)
{
String [] [] employeeInfo = { { "Alex" ,"Joe" , "James" , "Tom"}
,
{" Manager" , "Clerk" , "Analyst"
,"Manager"} };
double[] salary = { 2000 ,540 , 6321 ,1999.99};
// how do I traverse through that multidimensional array to display the
employee name and title and those who earn more than 2000
// I was trying to use a for loop ( int i = 0 ; i< employeeInfo.length ;
++i)
then use the if statement but it doesnot work ,
Anyone can help me on this problem
thanks
boen
- 6
- problem with methods on a bound classHi,
I've been fiddling around with JavaScript.pm, which is very cool, I have to
say, I've bound a class, and sucessfully bound an object, and i can read
from the object's properties, and execute it's getter/setter functions, but
for some reason i cannot get the object's methods to work..
here's a cleaned up version of what i've been testing with:
$js->bind_class(
name=>'Foo',
methods=>{
test => \&Foo::test
},
properties=>{
testy =>{
flags => JS_PROP_READONLY | JS_PROP_ACCESSOR,
getter => \&Foo::test_getter,
}
}
);
my $obj = new Foo();
$js->bind_object('obj', $obj)
(where package Foo has a 'test' method)
....
now in js: 'obj.testy' (the property) works fine, but 'obj.test()' (method)
just doesn't.. there seems to be no indication that it's successfully bound
(everything just says it's not defined).. getters and setters work, but
methods just don't seem to..
Any clues as to what's going on?
Dan
- 7
- why "synchronized" with wait/notify ?I know the language requires it and what exaclty happens with
wait/notify.
BUT it appears that the whole wait notify protocol should work just as
well without acquiring a monitor lock on the target object...
I've read something about why we need to have a thread own a monitor on
the object (key) that is waiting on, something about race condition.
but icant wrap my head around it, could someone care to walk me through
it please using a scenario where it would not work as expected.
So why would this not work (logic- forget the illegal monitor state
execption)
ThreadA
|
|
key.wait() //suspend threadA and add to waitset of key
ThreadB
|
|
key.notifyAlll; //Wake up one of the threads in the waitset of key
Thanks
- 10
- Assignment Linked List HelpCan some please implement a class called MyList to finish this off?
public class MyList<E extends Comparable<E>> extends List<E> {
}
----------------------------------------------------------------------------------------------------
It must be implemented with this List.java:
public abstract class List<E extends Comparable<E>> {
protected class Node<T extends Comparable<T>> {
protected Node(T data) {
this.data = data;
}
protected T data;
protected Node<T> next;
}
public abstract void insert(int index, E data) throws ListException;
public boolean isEmpty() { return head == null; }
public abstract E remove(int index) throws ListException;
public void reverse() { head = reverse(head, null); }
protected abstract Node<E> reverse(Node<E> curr, Node<E> prev);
public abstract int search(E data) throws ListException;
public int size() { return size; }
protected Node<E> head;
protected int size;
}
I need help for this assignment ......
Thanks...
- 10
- Eclipse + Tomcat plugin: problem with automatic class reloadingHi all,
I am having a problem using the DevLoader that comes with the eclipse
plugin for Tomcat from sysdeo.
It is loading classes okay from locations.
But it is not reloading them when they change.
The reloading works okay for a class that is WEB-INF/classes.
Here are the details:
Versions:
eclipse version 2.1.1
eclipse Tomcat plugin V 2.2.1
Tomcat version 4.1.29
JDK 1.3.1_04
I have extracted the DevLoader zip into [Tomcat Home]/server/classes
directory.
The tomcat server is using this DevLoader to load the classes.
I set the debug level in my web-app Context in conf/server.xml for the
loader to 4.
(<Loader className="org.apache.catalina.loader.DevLoader"
reloadable="true" debug="4"/> )
Logging is redirected to the console.
I can see output in the console that shows that it added my classes
location:
[DevLoader] added file:/C:/dev/workspace/Test/classes/
This is the location to find a class ims.test.TestServlet.
And it is able to find this class:
WebappClassLoader: loadClass(ims.test.TestServlet, false)
WebappClassLoader: Searching local repositories
WebappClassLoader: findClass(ims.test.TestServlet)
WebappClassLoader: findClassInternal(ims.test.TestServlet)
WebappClassLoader: loadClass(javax.servlet.http.HttpServlet, false)
WebappClassLoader: Delegating to parent classloader
WebappClassLoader: Loading class from parent
WebappClassLoader: Returning class class ims.test.TestServlet
WebappClassLoader: Loaded by WebappClassLoader
available:
delegate: false
repositories:
/WEB-INF/classes/
required:
I find it strange that my location
(file:/C:/dev/workspace/Test/classes/) is under the repositories.
If change the code (recompile) ims.test.TestServlet it is NOT
reloaded.
However, if I have a class that is to be found in WEB-INF/classes
e.g. I have a different class ims.TestServlet that is in
WEB-INF/classes/
WebappClassLoader: loadClass(ims.TestServlet, false)
WebappClassLoader: Searching local repositories
WebappClassLoader: findClass(ims.TestServlet)
WebappClassLoader: findClassInternal(ims.TestServlet)
WebappClassLoader: Returning class class ims.TestServlet
WebappClassLoader: Loaded by WebappClassLoader
available:
delegate: false
repositories:
/WEB-INF/classes/
required:
Then if I change ims.TestServlet it IS reloaded.
WebappClassLoader: Resource '/WEB-INF/classes/ims/TestServlet.class'
was modified; Date is now: Tue Dec 23 10:33:32 GMT 2003 Was: Tue Dec
23 09:28:57 GMT 2003
thank you for any help you can give,
and best wishes for Christmas + the New Year,
Grainne Coghlan
- 10
- Getting ResultSet From Cursor Too SlowAll,
I have a method that calls an Oracle Stored Procedure from an Oracle
Package. Everything works fine but the last two lines in my code below
where I get the Cursor from the procedure and cast it to a ResultSet is
a huge bottleneck. Does anyone have any ideas on how to make this
transition faster for large resultSets?
Thanks in advance.
Corey
ResultSet rs = null;
Result r = null;
String sql = "{call SECINQ.GetUsersBasic(?, ?, ?, ?, ?, ?, ?, ?," +
"?, ?, ?, ?, ?, ?, ?, ?," +
"?, ?, ?, ?, ?, ?, ?, ?," +
"?, ?, ?, ?, ?, ?, ?, ?, ?)}";
open();
CallableStatement call = (CallableStatement)con.prepareCall(sql);
call.registerOutParameter(1, OracleTypes.CURSOR);
call.setString(2, name1);
call.setString(3, name2);
call.setString(4, name3);
call.setString(5, name4);
call.setString(6, geid1);
call.setString(7, geid2);
call.setString(8, geid3);
call.setString(9, geid4);
call.setString(10, ssn1);
call.setString(11, ssn2);
call.setString(12, ssn3);
call.setString(13, ssn4);
call.setString(14, userId1.toUpperCase());
call.setString(15, userId2.toUpperCase());
call.setString(16, userId3.toUpperCase());
call.setString(17, userId4.toUpperCase());
call.setString(18, userId1.toLowerCase());
call.setString(19, userId2.toLowerCase());
call.setString(20, userId3.toLowerCase());
call.setString(21, userId4.toLowerCase());
call.setString(22, userId1);
call.setString(23, userId2);
call.setString(24, userId3);
call.setString(25, userId4);
call.setString(26, phone1);
call.setString(27, phone2);
call.setString(28, phone3);
call.setString(29, phone4);
call.setString(30, flName1);
call.setString(31, flName2);
call.setString(32, flName3);
call.setString(33, flName4);
call.setFetchSize(200);
call.execute();
rs = (ResultSet)call.getObject(1);
r = ResultSupport.toResult(rs);
- 13
- why it doest draw ???in the below short write
i try to write an Thread examle that try to draw lines in every second
from (0,0) to (x, y).
x and y are random between 0..255
with first come to tWork (Thread) it draws, but next second and next
seconds it doesnt do any thing.
g and gr are the same and initalized
i cheked them with this command :
System.out.println(gr.equals(g)); //it prints "true"
question is why it doesnt draw line after second 1 ?
polat
------------------------------------------------------------
package mypackage1;
import java.applet.*;
import java.awt.*;
import javax.swing.JButton;
class tWork extends Thread
{
Graphics gr;
public tWork(Graphics g)
{
gr = g;
System.out.println(gr.equals(g)); //it prints "true"
}
public void run()
{
int x, y;
while (true)
{
x = (int)(Math.random()*255);
y = (int)(Math.random()*255);
gr.drawLine(0, 0, x, y);
try
{
this.sleep(1000);
}
catch (Exception e) {}
}
}
}
public class Basla extends Applet
{
Thread t;
public Basla()
{
this.setSize(300,300);
}
public void paint(Graphics g)
{
t = new tWork(g);
t.start();
}
}
- 14
- Tomcat & SSL & a certificate generated by VerisignAttempting to SSL enable tomcat 4.04. Have implemented JSSE and SSL
works fine when I create a keystore with a self generated certificate.
keytool -genkey -alias tomcat -keyalg RSA -keystore .keystore
We now want to cutover using a production certificate. We create a
.cer file by accessing our production web site and export the
certificate to a .cer file.
then using the keytool we import the .cer file
keytool -v -import -file prod.cer -keystore .keystore
When we inspect the .keystore file using the -list switch we see the
certificate.
Now when we implement the .keystore in tomcat, only the original self
generated certificate is presented.
So, using the keytool we delete the original self generated
certificate so we are only left with the newly imported production
certificate.
When we implement this .keystore file with only the production cert,
the browser and tomcat fail to negotiate. Tomcat binds to port 8843
but the ssl negotiation is hosed.
Has anybody ever gottent tomcat & ssl to work with a non self
generated certificate? Can you please help?
Thanks,
email***@***.com
- 14
- Store XML to databaseI have some details from a jsp page, that i will store in XML format,
using DOM. I have created this much and now i want to store this XML
file in the database. How to do this ? the xml is available as a stream
in my program.
help of any kind is appreciated
thanks in advance..
sarath
- 16
- Loading jdbc jars and classes in the application default classloader dynamically..In our application, the JDBC jar files are stored in pre configured
location. say c:\server\libs\1.jar, 2.jar
We don't want to include these jars file in the class path. However,
whenever, we receive a jdbc request, we want to be able to load all the
jars located in this location and then do the basic jdbc call
sequence...
e.g. Class.forname("com.mydriver.SQLServerDriver");
Connection conn = DriverManager.getConnection(
"jdbc:mydriver:sqlserver://sqlserver1:1433;DatabaseName=Mydb;User=****t;Password=*****"
);
How ca i do this?
I tried the following code but doesn't help... I keep getting the
java.sql.SQLException: No suitable driver error. After somedebugging, I
found that the Drivermanager uses some getCallerClassLoader and that
doesn't match the class loader of com.mydriver.SQLServerDriver.
How do i make the loading using the default class loader at the same
time including those jar files?
String x = "kjds";
File f = new File("D:/server/libs");
File[] jarFiles = f.listFiles(new ExtentionFilter("jar"));
URL[] urls = new URL[jarFiles.length+1];
int i=0;
for(;i< jarFiles.length;i++){
try{
urls[i] = jarFiles [i].toURL();
}catch(Exception ex){}
}
ClassLoader z = new URLClassLoader(urls,
x.getClass().getClassLoader());
try
{
//Class DriverClass =
z.loadClass("com.mydriver.SQLServerDriver");
//Driver dd = (Driver)DriverClass.newInstance();
// DriverManager.registerDriver(dd);
Driver x =
(Driver)Class.forName("com.actuate.actuatedd.jdbc.sqlserver.SQLServerDriver",
true, z);
String cnstr =
"jdbc:mydriver:sqlserver://sqlserver1:1433;DatabaseName=Mydb;User=****t;Password=*****"
Connection conn = DriverManager.getConnection( cnstr );
}
catch (Exception e)
{
e.printStackTrace();
}
- 16
- About JEditorPaneI wrote a plugin to NetBeans 5.0 which displays html pages in a
JEditorPane, when i clicked a file in explorer.
JEditorPane is in the topcomponent class.Also JTree(Explorer) in a
other topcomponent class.
I use setPage(URL url) method. But its not working properly.That means
the editor pane displays the html code of the file
But i wrote it as standalone application, it displays correctly.
Explain what is the problem here.
|
| Author |
Message |
Luc The Perverse

|
Posted: 2005-12-25 3:13:00 |
Top |
java-programmer, Teaching Children (was Re: Help, where to start learning Java)
"Roedy Green" <email***@***.com> wrote in
message news:email***@***.com...
> I was lead counselor at a computer summer camp. I interviewed all the
> kids and discovered most of them wanted more than anything to write
> their own video games. There were programming novices. But within a
> week nearly every kid had written a game or animation. I was utterly
> blown away how fast they learned. In the breaks they DEMANDED to learn
> trigonometry, which blew the mind of a math prof who was watching the
> production.
>
> The other thing was the kids wrote nothing but commented/structured
> code. They never saw anything else, so it never occurred to them to
> do other wise.
Now this I didn't realize.
I had no idea you had experience in teaching children? I have been
looking for ideas to teach and stimulate desire to learn logic and
mathmatics in younger children. It is my belief that subjects which are
typically reserved for higher education such as trig, calculus, discrete
math, deductive logic could all be started before children ever leave
elementary. The trick would only be to interest the children, and present
the material in a way that it could be absorbed.
Can you offer any insight into this matter? Into teaching children how to
make games? What engine did you use (I suppose you were using Java).
--
LTP
:)
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-12-25 11:05:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
On Sat, 24 Dec 2005 12:12:36 -0700, "Luc The Perverse"
<email***@***.com> wrote, quoted or indirectly
quoted someone who said :
>Can you offer any insight into this matter? Into teaching children how to
>make games? What engine did you use (I suppose you were using Java).
In the 90s I wrote a column for the Computer Paper on my theories
based on my experiences as head instructor at a computer camp where
the kids blew me away with how fast they learned.
The key tricks are these:
1. this is a kid's environment. Lots of noise, chaos, goofy stuff.
2. When I speak I demand absolute silence. In return I speak no more
than a couple of carefully planned sentences, dramatic if possible. I
don't repeat myself publicly. I want them hanging on my every word.
The last kid to stop talking I made run out of the room a block or so
away to ring a bell then run back. It was not that much of a
punishment, since the kid got the fun of making his classmates laugh
when they heard the bell. But I did get rapt attention.
3. Leaking. I teach something to a small group of kids I don't teach
to the others. This becomes their secret weapon to use in their
programs. The kids see the results, and either wheedle the
information out of the "privileged" kids, or chase me around to tell
them too. You have never seen kids so motivated to learn trig!
4. example code.. This code does a simple version of what the kids
want to. It is commented to death. They can just type it in to try
it out. In the process of getting the typos out the have it pretty
well understood and are well on their way to theme and variations.
5. Graduated bang for buck. On day one, all the student had to do was
his a function key and you would be rewarded with a randomly sized,
placed, and coloured helicopter. You got maximal reward for least
effort. As time progressed the student had to work ever harder for
ever more subtle rewards in fine control.
6. Order of presentation. I taught methods first, iteration and random
numbers second, and arithmetic third. It was absolutely natural in
drawing for kids to organize methods into hierarchies of reusable
components they could share.
7. Learn by experiment. I presented the editor this way. These keys
do something. See how many of them you can figure out what they do.
The emphasis is that computers are SUPPOSED to be mysterious and
undocumented. It is supposed to be puzzle to figure out. You are not
supposed to get it on your first try.
8. Let the kids teach each other. They have their own ways of
explaining things. They can do it in parallel much faster than I can.
All I have to do is give enough of a hint so that a few students
figure it out. It then ripples throughout the class by student to
student interaction.
9. On opening day I gave a little introductory speech where I said
something like. I have interviewed you all and it is clear you want
more than anything to learn to write your own computer games. I
promise I will not teach you ANYTHING that is not necessary to write
computer games. Unfortunately, sometimes it won't be clear why you
need to learn something, so you will just have to trust me.
10. Graph paper. One of the very first exercise I did was hand out
graph paper and ask each kid to draw a Pac Man or similar simple
figure, with polygons, and label all the vertices with the absolute
co-ordinates. As each kid (ages 7 to 15) completed the task they
brought it to me or one of my assistants for checking. If they had it
right they went off to another room where the computers were. There
they were shown how to type the polygon vertices into the computer
into a simple skeleton drawing program and see their creation
realised, usually in hideously garish colours. The unconscious lesson
the kids learned was the planning was hard, but the computers were
easy. The kids only had a few short sessions a day of computer
access. The rest of the time they were doing traditional summer camp
things. But the kids would carry about sheafs of graph paper to plot
out their masterpieces in ever spare moment.
11. I remember my entire childhood quite vividly. I recall adults
being so patronising. I tried hard not to do that.
Caveat. This style of teaching is utterly exhausting. You could not do
it full time or without an incredibly good support staff as I had.
Some kids are freaked by the pandemonium, or the competitive pressure
that develops even when I don't consciously foster it.
At UBC, teaching people slightly older than I was, I used different,
but unconventional techniques. There the problem is keeping students
awake.
So I banned note taking. I had contests, often with two teams, with
points for answering questions, solving problems at the board (done
say 5 from a team at a time).
The winning team would get chocolate bars (only a nickel back then),
or selections from the local bakery.
The idea here was even if the student did not care about the class he
did not want to let down his team.
On opening day I would say, "No student of mine has ever failed. So
you can relax. However, you would probably find you will spend more
time on this course than any other."
The class was supposed to be an hour, but often student would hang
around for 6 hours before the last one went home.
I spent lots of time on theme and variation of the fundamentals, which
panicked the students because we were "behind". But my students
thoroughly got them so they could write code in their sleep (or under
exam pressure). Then it was pretty easy to add the fancy stuff later
on that solid foundation.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
Luc The Perverse

|
Posted: 2005-12-25 14:10:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
"Roedy Green" <email***@***.com> wrote in
message news:email***@***.com...
>>Can you offer any insight into this matter? Into teaching children how
>>to
>>make games? What engine did you use (I suppose you were using Java).
>
> In the 90s I wrote a column for the Computer Paper on my theories
> based on my experiences as head instructor at a computer camp where
> the kids blew me away with how fast they learned.
*snip*
I've always known children's potential is mostly untapped.
I too hope to some day teach - though I know not how or when
:)
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-12-25 14:26:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
On Sat, 24 Dec 2005 23:09:46 -0700, "Luc The Perverse"
<email***@***.com> wrote, quoted or indirectly
quoted someone who said :
>I've always known children's potential is mostly untapped.
>
>I too hope to some day teach - though I know not how or when
It was one of the most fun things I ever did. To this day I run into
kids I taught then or at UBC who still remember those crazy times
fondly.
I am quite a ham and that sort of teaching is a great outlet for that.
The kids just lap it up after the grim regimentation that teachers
have to impose in order to teach classes of 40 single handed 5 hours a
day, week after week.
The assumption that many educators make is that kids don't want to
learn and you have to coerce them. My assumption is that they are
naturally curious, and your job is not to squash that wide-ranging
curiosity and encourage them to remain curious in the event of
frustration.. You are there to facilitate them. They are not there to
perform for you.
Whereever a child's curiosity leads, THAT'S the curriculum for now. So
much energy for learning is blunted by trying to control what a child
should learn when.
I have great hope for Internet based learning where it will be much
more feasible for each kid to go off in different directions.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
yakovfain

|
Posted: 2005-12-26 22:06:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
I was teaching my son Dave Java and these are some obsercarions:
Most of the programming tasks require minimal knowledge of arithmetic
and algebra skills. To start programming, a kid needs to understand
what x = y+2 means. Another important concept to understand is an if
statement.
Kids develop the abstract reasoning abilities by the fourth-fifth
grade, and they also easily perform such tasks as browsing the Web,
downloading and installing software. Dave have learned how to type,
compile and run Java programs in Eclipse IDE in no time.
Kids learn much faster than adults, but they do not have "previous
programming experience", which may actually be a good thing, because
they do not have to switch from a procedural to object-oriented way of
thinking. After learning about inheritance, Dave called my wife a
superclass.
Adults are responsible creatures, and they can keep doing boring
operations much longer that kids. Programming lessons with kids have to
be short. One or two 45-minute lessons per week is enough. High school
kids should be able to study more, but I do not have such experience
yet.
Anyway, I wrote an e-book on teaching kids Java. You can find a sample
chapter at
http://www.smartdataprocessing.com/java4kids.htm
One of the publishers is planning to release the printed version of
the book next year. I want it to be in color, but it's lot more
expensive for a publisher so we are still negotiating...
Happy New Year,
Yakov Fain
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-12-27 1:20:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
On 26 Dec 2005 06:06:18 -0800, email***@***.com wrote, quoted or
indirectly quoted someone who said :
>One or two 45-minute lessons per week is enough.
That is important. I is also important to keep things interactive.
Don't expect a kid to sit there and listen to you like some college
prof droning on an on. I like to keep it down to 2 sentence before the
kid either says something or does something.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
Luc The Perverse

|
Posted: 2005-12-27 2:52:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
<email***@***.com> wrote in message
news:email***@***.com...
> One or two 45-minute lessons per week is enough.
??
This goes very much against my intuition.
Do you mean only limiting any kind of formal instruction?
As a kid when I became fascinated with something I would spend countless
hours on it - that is what I believed made me progress and learn.
The same as an adult. When I want to learn a new foreign language (I have
not done so in a few years) I sit down for about eight 45 minute lessons a
day, alternating with exercise. Its annoying after I work my ass off to
hear someone who tried for 15 minutes to learn a foreign language to tell me
that I just have an aptitude for it.
I intend on teaching my daughter to start programming as soon as she learns
to read which should be in a few years.
Be sure and let me know when your book becomes available!
:)
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-12-27 4:43:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
On Mon, 26 Dec 2005 11:51:31 -0700, "Luc The Perverse"
<email***@***.com> wrote, quoted or indirectly
quoted someone who said :
>This goes very much against my intuition.
>
>Do you mean only limiting any kind of formal instruction?
The kids will go nuts on their own time. Ask Yakov about his
experience, but what I suggest limiting is formal class time.
I found that at summer camp, some kids would stalk me to pump me for
information outside of class hours. That does not count. The kid is
in control of when he wants to do that.
Kids around 10 to 12 love to build elaborate models with thousands of
parts, miniature cities, aircraft carriers etc. This instinct serves
them well to develop large computer programs. They have little trouble
keeping track of its many parts. So focus right from day one on how
to write LARGE programs -- encapsulation, reuse, naming.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
Mickey Segal

|
Posted: 2005-12-27 12:23:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
"Luc The Perverse" <email***@***.com> wrote in message
news:43b03bb1$0$7825$email***@***.com...
> Be sure and let me know when your book becomes available!
From the URL:
http://www.smartdataprocessing.com/java4kids.htm
it looks like it is available already as a $20 download. I will see if I
can interest my kids in the book; they are currently focused on Game Maker:
http://gamemaker.nl/
I'd prefer for them to learn a general purpose language, perhaps with a
special purpose game addition such as:
http://goldenstudios.or.id/products/GTGE/index.php
When we wrote a calculator program in the Game Maker language we spent a lot
of effort on dealing with the missing things in the Game Maker language such
as double precision math and arrays of newly defined objects. If the guts
of a game environment were Java it would be easier to help them and their
knowledge would be more generally useful.
What Roedy Green did in teaching kids about computers is the wave of the
future, but it is not likely to happen in many schools in the near future.
Camps, clubs, supplemental classes, home schooling and interested parents
will get kids to do terrific things before such approaches go mainstream in
most schools.
|
| |
|
| |
 |
Luc The Perverse

|
Posted: 2005-12-27 12:49:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
"Roedy Green" <email***@***.com> wrote in
message news:email***@***.com...
> The kids will go nuts on their own time. Ask Yakov about his
> experience, but what I suggest limiting is formal class time.
Ok - I was just misunderstanding - in that case then I would agree.
> Kids around 10 to 12 love to build elaborate models with thousands of
> parts, miniature cities, aircraft carriers etc. This instinct serves
> them well to develop large computer programs. They have little trouble
> keeping track of its many parts. So focus right from day one on how
> to write LARGE programs -- encapsulation, reuse, naming.
Having been a kid of 10 to 12 - I recall quite vividly. I had extensive
armies of different pieces. The lego armies and some other construction set
I don't know the name of - I had to rebuild them at the end of every war
since the battles would cause significant . . . disfigurement.
I wish I could find that construction set. The basic set was "connectors"
which were cubical with round pegs that the building pieces (oblong
rectangular prisms) could snap into. The basic set was grey pieces with
blue connectors, but I had several kits, so there were short pieces, long
pieces, some rounded pieces. Eventually they came up with the idea of a
much flatter swinging piece would spin instead of being fastened in place
(it was long and flat like a popsickle stick with hooks on each end.) My
grandma decided one day that I was too old for "toys" and threw away the
ship I'd had (although rebuilt many times) for over 12 years. I'm not mad
at her anymore, but I feel bad for her - she doesn't believe in sentimental
value of posessions.
--
LTP
:)
|
| |
|
| |
 |
David Segall

|
Posted: 2005-12-27 14:08:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
"Luc The Perverse" <email***@***.com> wrote:
>"Roedy Green" <email***@***.com> wrote in
>message news:email***@***.com...
>> I was lead counselor at a computer summer camp. I interviewed all the
>> kids and discovered most of them wanted more than anything to write
>> their own video games. There were programming novices. But within a
>> week nearly every kid had written a game or animation. I was utterly
>> blown away how fast they learned. In the breaks they DEMANDED to learn
>> trigonometry, which blew the mind of a math prof who was watching the
>> production.
>>
>> The other thing was the kids wrote nothing but commented/structured
>> code. They never saw anything else, so it never occurred to them to
>> do other wise.
>
>Now this I didn't realize.
>
>I had no idea you had experience in teaching children? I have been
>looking for ideas to teach and stimulate desire to learn logic and
>mathmatics in younger children. It is my belief that subjects which are
>typically reserved for higher education such as trig, calculus, discrete
>math, deductive logic could all be started before children ever leave
>elementary. The trick would only be to interest the children, and present
>the material in a way that it could be absorbed.
>
>Can you offer any insight into this matter? Into teaching children how to
>make games? What engine did you use (I suppose you were using Java).
I think that the only "insight" is realizing that it all depends on
the teacher. Skilled teachers can teach anything using any technique
but they need to have similar talents to good actors or court room
lawyers. They must love playing to the audience and be sensitive to
it. The are thrilled when they have the audience in rapt attention and
are able to detect and react when they are losing their attention.
Technical teaching skills and the use of teaching aids can be learned
but, as in any other profession, they are no substitute for talent.
and there a
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-12-27 17:46:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
On Tue, 27 Dec 2005 06:07:30 GMT, David Segall <email***@***.com>
wrote, quoted or indirectly quoted someone who said :
>I think that the only "insight" is realizing that it all depends on
>the teacher. Skilled teachers can teach anything using any technique
>but they need to have similar talents to good actors or court room
>lawyers.
I am such a ham in front of a big audience. I have spoken in front of
audiences thousands of times. There is no substitute for just doing
it over and over and learning what works with what sorts of audiences.
Once you get over the stage fright, it is one of the most fun things
you can do.
A kid's audience is tougher at first. They won't be polite, but on the
other hand, they are a lot easier to get rolling and they get totally
carried away.
.
I am working on an essay at http://mindprod.com/jgloss/teaching.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
yakovfain

|
Posted: 2005-12-27 20:21:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
Roedy, teaching in the summer camps is a great idea!
IMHO, kids should be learning programming not by solving some math
problems (booooooring...), but by implementing something they like.
Video games is a perfect example. Kids should get the message that
you do not have to be a nerd to become a computer programmer. So they
will not be afraid of selecting Computer science or Information Systems
as their college major in the future
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-12-27 21:38:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
On 27 Dec 2005 04:21:04 -0800, email***@***.com wrote, quoted or
indirectly quoted someone who said :
>IMHO, kids should be learning programming not by solving some math
>problems (booooooring...), but by implementing something they like.
Once they get into it, computer programming itself is interesting. At
least in the early days it was a key to let you in anywhere to satisfy
curiosity. I could walk into a bank who had hired me to write code,
and ask anyone anything and they would answer. Then I might be out at
a university learning some advanced math to study movement of
pollutants in soils, or I might query engineers on the fine points of
high voltage tower construction. It is like passport to let you have a
number of mini careers.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
zero

|
Posted: 2005-12-28 2:19:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
email***@***.com wrote in news:1135686063.972748.62340
@o13g2000cwo.googlegroups.com:
> IMHO, kids should be learning programming not by solving some math
> problems (booooooring...), but by implementing something they like.
> Video games is a perfect example
Great idea in theory, but it has a major drawback. Game programming is one
of the hardest subfields of programming. You could argue that there are
plenty of simple games that can be made (snake, tetris, ...) but those just
don't compare to the kind of games modern kids play on a daily basis.
Creating a snake game that is visually sufficiently appealing for a 12 year
old is not that easy. So more than anything, I think programming a game
may be a disappointment for many children.
I do think that they should be led to create interactive programs instead
of the traditional "hello world" or recursive combinations. Examples could
be a simple puzzle or a visual representation of the towers of hanoi. Also
a good idea is to tie the programs they make to other things they are
learning. If for example a kid is learning a second language, have him
create a program to store and look up words in a dictionary. If they are
learning basic summation, have them create a program that they can use to
check their exercises.
--
Beware the False Authority Syndrome
|
| |
|
| |
 |
Mickey Segal

|
Posted: 2005-12-28 2:31:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
"zero" <email***@***.com> wrote in message
news:email***@***.com...
> Creating a snake game that is visually sufficiently appealing for a 12
> year
> old is not that easy. So more than anything, I think programming a game
> may be a disappointment for many children.
Our kids are having a good time with the Game Maker environment
(http://gamemaker.nl/), which allows kids to create a visually-appealing
result with little fuss. They are not disappointed. The Game Maker
environment uses true object-oriented programming, but because the code is
in its own "Game Maker language" rather than C++ or Java the programming
experience does not allow an easy jump into standard programming. Also,
because many basic features of mature programming languages such as double
precision calculation are missing the kids get frustrated when they stray
away from games.
|
| |
|
| |
 |
Luc The Perverse

|
Posted: 2005-12-28 5:58:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
"Mickey Segal" <email***@***.com> wrote in message
news:email***@***.com...
> "zero" <email***@***.com> wrote in message
> news:email***@***.com...
>> Creating a snake game that is visually sufficiently appealing for a 12
>> year
>> old is not that easy. So more than anything, I think programming a game
>> may be a disappointment for many children.
A reply to "zero":
When teaching children to code, anything visual is going to be more
appealing than basic text. Children may have aspirations of making Doom
III, but it's not going to happen. I got excited about programming without
the prospect of making fun interactive games. Pictures, GUIs, sounds,
animation etc is what is appealing to the eye, no matter what form it comes
in.
> Also, because many basic features of mature programming languages such as
> double precision calculation are missing the kids get frustrated when they
> stray away from games.
You . . . aren't implying that this is a good thing are you?
While programming of any sort is useful, forcing kids to stay with games can
also be a problem.
--
LTP
:)
|
| |
|
| |
 |
Mickey Segal

|
Posted: 2005-12-28 8:22:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
"Luc The Perverse" <email***@***.com> wrote in message
news:43b1b8f9$0$7825$email***@***.com...
> You . . . aren't implying that this is a good thing are you?
It is not a good thing to trap kids in programming only games. It is
helpful to have them enticed into programming because of games but then they
should be able to discover all the useful features of a real language such
as double precision calculation and other features of real programming.
|
| |
|
| |
 |
zero

|
Posted: 2005-12-29 0:42:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
"Luc The Perverse" <email***@***.com> wrote in
news:43b1b8f9$0$7825$email***@***.com:
>
> When teaching children to code, anything visual is going to be more
> appealing than basic text. Children may have aspirations of making
> Doom III, but it's not going to happen. I got excited about
> programming without the prospect of making fun interactive games.
> Pictures, GUIs, sounds, animation etc is what is appealing to the eye,
> no matter what form it comes in.
>
Actually I think interaction is a lot more important than visually
appealing features. Most visual stuff is, certainly in the early stages,
going to be disappointing imo. However, if they can interact with programs
they made themselves, they'll find it more interesting. They will want to
make changes to the code and see how that affects the interaction. At
least that's what I found interesting. I could never see an example or
exercise without wanting to "improve" it.
For example I believe a program showing a static picture and playing a
sound file less appealing - and a lot harder to make - than a text-only
"guess the number" game. So interactivity is the key. And of course games
are interactive, but they shouldn't be presented as "computer games",
because that brings up visions of Doom and The Sims.
--
Beware the False Authority Syndrome
|
| |
|
| |
 |
Luc The Perverse

|
Posted: 2005-12-29 10:19:00 |
Top |
java-programmer >> Teaching Children (was Re: Help, where to start learning Java)
"zero" <email***@***.com> wrote in message
news:email***@***.com...
> "Luc The Perverse" <email***@***.com> wrote in
> news:43b1b8f9$0$7825$email***@***.com:
>
>>
>> When teaching children to code, anything visual is going to be more
>> appealing than basic text. Children may have aspirations of making
>> Doom III, but it's not going to happen. I got excited about
>> programming without the prospect of making fun interactive games.
>> Pictures, GUIs, sounds, animation etc is what is appealing to the eye,
>> no matter what form it comes in.
>>
>
> Actually I think interaction is a lot more important than visually
> appealing features. Most visual stuff is, certainly in the early stages,
> going to be disappointing imo. However, if they can interact with
> programs
> they made themselves, they'll find it more interesting. They will want to
> make changes to the code and see how that affects the interaction. At
> least that's what I found interesting. I could never see an example or
> exercise without wanting to "improve" it.
>
> For example I believe a program showing a static picture and playing a
> sound file less appealing - and a lot harder to make - than a text-only
> "guess the number" game. So interactivity is the key. And of course
> games
> are interactive, but they shouldn't be presented as "computer games",
> because that brings up visions of Doom and The Sims.
Perhaps you are right.
But there is a stigma attached to programs that run in the console window.
But it doesn't have to be one way or the other. The user interaction could
already be coded by the professor, and the students need only write the
interactive part. The coding part for the students would be approximately
the same difficulty, and may even be easier if the interaction function is
Play
But on the other hand - the instructor could provide a "guess the number
interface", and only require the students to provide the code which allows
them to make it run on the same order of complexity as if they had written a
text based game.
--
LTP
:)
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- jsp grid creationi want to use a grid in my front end using java. in this grid i want to
fetch the information from the database. can i make such a grid using
jsp.
if yes, can anybody tell me how?
ashutosh
- 2
- Getting images in appletI have an applet that reads jpg's. It works in AppletViewer but I get a
permission block for reading the file when I load it in my browser (all the
files in this case are local). How would I get permissions for it it to run
in a browser, and what would I need to do if I were to upload this to a
website?
- 3
- RedHat9 + Sun JDK 1.4.2_1 + NPTL = issuesThis is a multi-part message in MIME format.
Hi,
These 2 newsgroups (redhat.kernel.general, comp.lang.java.programmer)
seem like the apropriate place for my contemplations, if I'm at the
wrong place please direct me to the right one.
I'm trying to get as many Java threads as possible running on my Linux
box. Using RedHat 7.2 (2.4.18-24.7.xsmp) and with the right JVM (Sun
1.4.2_1) parameters (-Xss, -Xms, -Xmx) I have a fairly stable production
system that will scale up to 800 threads without significant problems.
This however is not enough for me on the long run.
I'm a loyal reader of The Volano Report [http://www.volano.com/report/]
and The C10K problem [http://www.kegel.com/c10k.html] for some time now
and after running across this victorious article about the latest JDK
and the NPTL in RedHat9
[http://developer.java.sun.com/developer/technicalArticles/JavaTechandLinux/RedHat/]
I thought that the scalability problem of Java on Linux was solved.
After some testing (see attached Test.java) I was disappointed to see
that after creating just a little under 3000 threads (that basically do
nothing) the JVM threw this dreaded "java.lang.OutOfMemoryError: unable
to create new native thread" exception again while 'free' still reports
loads of free memory. The -Xss, -Xms or -Xmx parameters to the JVM don't
seem to do anything for me (any parameter value still causes the
Exception at roughly 3000 threads).
What gives? The article about the new JVM with the new RedHat promises a
lot (eg. No limits on the number of threads), but when put into test
does not yet deliver. Do I need to tweak kernel parameters to allow for
more threads? If so, where do I do this?
For those that wonder why I need so many threads; I run a java HTTPD
where any request is a call to a servlet, each call needs a Thread. I
handle a lot of requests. For the CPU this is not an issue, the calls
are very thin. However, the Thread management in Linux does not seem to
be suitable for this kind of scaling (yet?).
I would be glad to come across someone with the same problem and other
views on this issue. I've been working with Java for more than 5 years,
starting on OS/2 and now using Linux as host OS. And my needs always
seem to just a tad ahead of the possibilities.
Sacha
- 4
- Dates in a sql StatementHello,
I have the following sql statement:
SELECT code,fname,lname FROM employee WHERE datestarted = '02/12/2001'
This works fine when executed through dbaccess, but when I use JDBC to get a
ResultSet nothing is returned.
I am using JDBC.2.21.JC5, my back end eis is Informix Universal server.
Also, the query executes fine when I remove the date part:
SELECT code,fname,lname FROM employee
Can any one tell me what am I doing wrong since I am new to JDBC.
Thanks in advance.
-r
- 5
- Eclipse Internal Web Browser option disabledI am using Eclipse 3.1.1 for some reason
Window->Preferences->General->Web Browser does not allow me to select
the "Use internal Web browser" option. Only "Use external Web browser"
underneath which nothing is listed. How do I enable or install the
internal web browser? The radio check box is currently disabled.
Thanks in advance.
JM
- 6
- Help with XtagsI am using jakarta's xtags library. I have put the xtags.tld file
unser /WEB-INF and the taglibs-xtags.jar in the /WEB-INF in the lib
directory. I am using
java version 1.4.2-b28 and tomcat 4.1. IN my jsp i use the following
tags
<xtags:style xml="/test.xml" xsl="/article-html.xsl"/>
when i run the jsp, i do not get anything ..blank page... Rethere some
file i am missing...
any help would be appreciated.
THanks
Mohit
- 7
- Mail APIi wrote program for sending mail from one server to another but while
comile time it shows an error like Mail API is not found.. i was
downloaded it from sun..but i dont know where to install this API..so,
can u please tell me...?
- 8
- 9
- Switch on StringsHello, I have code that looks like this:
switch(myColor){
case "blue":
{
this.setForeground(Color.blue);
break;
}
case "red":
{
this.setForeground(Color.red);
break;
}
case "green":
{
this.setForeground(Color.green);
break;
}
default:
{
this.setForeground(Color.blue);
}
}
myColor is a String being read in from an HTML file PARAM line.
The above code doesn't work, because switch doesn't work with strings.
So I was wondering how else I can do this...
ttyl
- 10
- Mono .netRecently I learned that Mono .net will run MS .net applications. This
came as a bit of a suprise to me because I thought Mono was a different
implenteation of .net and therefore incompatible.
So this raises some interesting questions. Since Microsoft still
retains copyrights and patents to .net is Mono .net governed by the
MSDN EULA. Or can Microsoft revoke the license to the ECMA at a future
date. If that were possible it would not seem inconcievable that
Microsoft could theaten to withdraw if they did not agree to adhere to
a MS EULA. On the otherhand Microsoft could demand a fee for each
transaction. Awhile back Bill Gates said that Microsoft was not making
enough money from the internet and wanted to use .NET as a chargeback
mechanism to force them to pay 1 penny for each transaction.
Alternatively speaking however Mono .NET could be used as a migration
platform to move people to Linux. One possible advanate to Mono .NET is
that SE Linux gives the administrator more granularity to lock down the
OS.
In any case there is a lot to ponder.
- 11
- 2d String in a BoxHi,
I want to draw a string of varying size inside a box.
g.drawString("........string....", x, y)
g.drawBox(x, y, w, h);
-------
|String| h
-------
w
Is there a good way to calculate the size of the box?
- 12
- How to make a s/w producthi,
I am having some JAVA Applets which will simulate a mechanical
Engineering Lab Set Up. I want to make this as a software Product which
is having some set up files and Register Variables etc.. I want to make
this as an evaluation copy for a particular period of time and a full
fledged software also. Can any one tell me how to make this and the
requirements for doing this.
Thanks in advance,
sarath
- 13
- Open File componentThe usual file open component on a form consists of a label describing
the file, a text field that accepts a file name and a command button
that brings up a file chooser.
Is there a "standard" component that does this preferably a bean that
can be added to NetBeans?
- 14
- getConnection in strutsHi,
I hope the question is addressed to the appropriate forum :)
First of all I'd like to say I'm new to struts. My question is how
should I getConnection to DB. I know how to read parameters for
connection but I'd like to make conections more robust. I mean I should
use ConnectionPool. I've some idea how to achieve it but..if I split my
application into tiers (presentation, conntroller, bo and dao) how can I
get Connection from DAO tier since I don't have access to server
context. I'm looking for some advice how to cope with such problems. Of
course I could pass in constructor these parameters but I don't think it
was good solution.
How did you solve problem with accessing db from your struts applications?
Rgs
- 15
- getBytes() returning too much dataHi,
I'm running postgreSQL 7.2.1 and java se version 1.4.0_01
I'm storing some images in the database as bytea. When I use
result.getBytes() to fetch the data back it ends up being a larger
size than that which is stored in the database. (I'm sure that the
value stored in the database is the correct size) I was testing it out
with a single entry in the table like this: -
rs = stmt.executeQuery("SELECT imageid, name, gender, image,
length(image) FROM images");
And tried this: -
System.out.println(rs.getInt(5));
byte[] imgBytes = new byte[rs.getInt(5)];
imgBytes = rs.getBytes(4);
System.out.println(imgBytes.length);
Even in this case where the first println displays the expected output
the imgBytes array somehow ends up being about 10k too big (the size
increase is consistent)
Does anyone have any idea whats going on and how I might fix it?
Thanks,
Conor
|
|
|