Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #37083

Re: A small challenge at beginner's level

X-Received by 10.31.161.4 with SMTP id k4mr2612699vke.36.1502204506412; Tue, 08 Aug 2017 08:01:46 -0700 (PDT)
X-Received by 10.31.142.14 with SMTP id q14mr24038vkd.19.1502204506359; Tue, 08 Aug 2017 08:01:46 -0700 (PDT)
Path csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!w51no1203282qtc.0!news-out.google.com!n39ni512qtf.1!nntp.google.com!w51no1203277qtc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Tue, 8 Aug 2017 08:01:45 -0700 (PDT)
In-Reply-To <slrnoo6aad.o2q.avl@logic.at>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=50.78.95.177; posting-account=2czF5goAAAD4GBMPIGV4KcD2K4PhoB_H
NNTP-Posting-Host 50.78.95.177
References <exercise-20170803112636@ram.dialup.fu-berlin.de> <slrnoo6aad.o2q.avl@logic.at>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <199fd5af-e4a2-4451-97bf-0e19ad9fc2d9@googlegroups.com> (permalink)
Subject Re: A small challenge at beginner's level
From Eric Douglas <e.d.programmer@gmail.com>
Injection-Date Tue, 08 Aug 2017 15:01:46 +0000
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
Lines 28
Xref csiph.com comp.lang.java.programmer:37083

Show key headers only | View raw


On Thursday, August 3, 2017 at 9:47:12 AM UTC-4, Andreas Leitgeb wrote:
> String.format("you have%5.5s.",String.format("%"+(1+4*Math.round(Math.random()))+".1s"," lost")+"won")
> 
> certainly newbie level ;-)

Stefan's posts don't show up in Google Groups, so I'd like to see the original full question.
The first simple beginner's challenge should of course be the FizzBuzz test.

I agree with the sentiment of this thread, beginner challenges should be practical.  Don't ask them to write obscure logic or syntax they'll likely never need in the real world.

I've only tried to teach programming to a couple people who were incapable of learning (to verify, had another developer also fail to teach them), so I'm not sure what a typical programmer needs to hear to get started on their first training of their first ever programming language.  My first language was BASIC in 8th grade, a few decades ago.

Now I already know more than a few languages myself, but when I teach myself a new language I like to copy and paste working code then start changing it to do something different.  I'm not sure how well this would translate to a class if each student would want to personalize their code to enjoy learning.  Maybe one wants to write a program that has to do with dogs, and another with cars.  Just in the end make sure they can code.  One guy I tried to teach was completely clueless and had a BS in programming from a college that apparently teaches programming theory with no hands on.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: A small challenge at beginner's level Andreas Leitgeb <avl@logic.at> - 2017-08-03 13:42 +0000
  Re: A small challenge at beginner's level Andreas Leitgeb <avl@logic.at> - 2017-08-03 14:02 +0000
  Re: A small challenge at beginner's level Martin Gregorie <martin@address-in-sig.invalid> - 2017-08-03 22:47 +0000
  Re: A small challenge at beginner's level Eric Douglas <e.d.programmer@gmail.com> - 2017-08-08 08:01 -0700
    Re: A small challenge at beginner's level Sebastian <nowhere@nirvana.org> - 2017-08-08 22:59 +0200
      Re: A small challenge at beginner's level Eric Douglas <e.d.programmer@gmail.com> - 2017-08-09 05:16 -0700
    Re: A small challenge at beginner's level Arne Vajhøj <arne@vajhoej.dk> - 2017-08-08 21:00 -0400

csiph-web