Completely web-based web development for students?

Status
Not open for further replies.

mudboy

Ars Legatus Legionis
17,501
Subscriptor
I teach middle school (6-8) computer applications. MS Word, Excel, PowerPoint, Photoshop, that sort of thing. I want to add CompSci curriculum for programming-oriented 8th graders. Java and Unity are NBD since they can be done on the file system, but I want to do a unit on web development, too - HTML, CSS, some .JS libraries, PHP, and MySQL. I don't have a server that I can run PHP and MySQL on. Are there any completely web-based development tools/sites that allow PHP editing within the browser, creation of MySQL databases/tables within the browser, etc.?

Thanks,

Pete
 

ramases

Ars Tribunus Angusticlavius
9,024
Subscriptor++
For the love of FSM's noodly appendages, please teach your students something other than php. Python, Ruby, ASP.net, I do not care; anything. (afaik cloud9 does support python as well)

Please lets cut out arguments like '[big project] is written in php' or 'yeah, some historical parts of php sucks, but modern php is much better'. They are irrelevant to the matter: Successful [big project] was successful because good programmers can write decent software regardless (or in spite, if you are the sarcastic type) of the language; after all Fortran is a flaming pile of suck as well, but there still is some Fortran software that is faster (by orders of magnitude, and in that part of the world where Fortran is still used, fast == good) than their next equivalent.

Likewise, a good php programmer may know enough of the language to know that it would have been better if certain language constructs and functions still in the stdlib never had existed; and while all languages do have this sort of legacy cruft, the cruft list for php is unfortunately very, very long.

The common ground those points share, and the reason why they are not relevant for the discussion, is that they involve judgement calls by experienced programmers. Students by definition are not experienced programmers, and it would be a gross dis-service to them to expect that they would be able to navigate themselves through this without more help and assistance than a single instructor can provide a group of 5 (or more. I have no clue how big your classes are) people.
 

Ardax

Ars Legatus Legionis
19,795
Subscriptor
For the love of FSM's noodly appendages, please teach your students something other than php.
Yeah, this.

Honestly, if you're going down the rabbit hole of teaching them enough JS to be useful, use it on the backend with Node.js too.

HTML, CSS, and JS are quite enough to be covering, and it's a really small jump toward administrative concerns for things like web servers, language implementations, DBMS configuration. It's really a lot of knobs to be messing with.

How long is the course going to be? Will there be enough time to make a compelling small project with the available time?
 

mudboy

Ars Legatus Legionis
17,501
Subscriptor
Thanks for the suggestions. I am in no way married to PHP, I was never a PHP developer, and every time I messed with PHP I felt dirty. Node.js would probably be a good option. I'm 10 years out of full time web dev, and even then, I worked with a language that most here would shit on, and the rest would ask "what's that?".

Because of the way minor classes are scheduled, and the other stuff that I would need to cover, I will probably have about 30 class periods (~45 minutes each) to teach CS topics - right now, I am planning on using Java as the core language and get students to the point where they can create a simple command line app or applet (so, perhaps 10 periods), then cover some web design fundamentals (5 periods), and then the rest for simple web app development. The app I have in mind is basically a very scaled back twitter.
 

ramases

Ars Tribunus Angusticlavius
9,024
Subscriptor++
Three languages plus css/html sound quite ambitious for 30x45 minutes.

Suggestion: Ditch Java completely in favour of Python, its a reasonably clean language and doesn't require students to learn & type what for them would be, at that time, completely pointless boiler plate (whats a class? why does this need to be static? ...). They'd still need to learn some of that later, but the point is they can write their simple hello world cli application without it.

For GUI, you can probably use PyGUI. PyQt would also be an option, but while I personally like Qt it kinda feels like bringing a nuke to a pillow fight. If you've got some multi-touch enabled devices lying around, perhaps look into Kivy as well.

Then you could have a progression like roughly the following:

0) All the intro things, putzing around with command line apps, simple GUIs.
1) Toy-twitter with just the local GUI, first against some sort of simple object store you provide a library for, then against a proper database. (perhaps make the "simple object store library" something that just wraps the database behind, so if students progress to that point they still have all their old conversations)
2) Add a simple web front end to toy-twitter. No JS, just static html generation and form submission.
3) Replace some form static page/form submission/static page cycles with JS.

This gives a clear logical progression, and even if you are cut short in the middle somewhere, there's still something they built and can be used for something.

Its also possible that some students won't be able to make much headway into the 3. (or 2.) item, but that would be okay as well: They would still have something working, even though it would be less fancy than what perhaps some other students cooked up. And if you arrange it so their setup outlasts your class, those so inclined would still have the chance to tinker with their toy until it is as fancy as the others. ;)
 

Ardax

Ars Legatus Legionis
19,795
Subscriptor
My gut says that feels like an aggressive schedule for 8th graders, but that's not my area of skill.

Unless the Java is essential to the app, I'd say jettison it in favor of evolving the web app more. For students that aren't already into programming, you're just adding yet more concepts to deal with and spending 1/3 of your time on something that's never going to be touched again.

Sticking with the single project also means it's easy to define stretch goals for students that take to it better by just continuing to layer on the features. I'm not sure if a single project would be too boring or not. That might depend on what kind of timeframe we're talking (is this a daily class for an entire quarter or a weekly class for the entire academic year), if out of class access is available, is there homework?

What about something like Kodu Game Lab?

(Aside: You were a CFML guy, right?)
 

mudboy

Ars Legatus Legionis
17,501
Subscriptor
I already use Kodu. And, yes, I was a CF developer. I still appreciate the language for what it is and think it had a bad rap because people didn't just sit down and try it.

And, to be clear, I taught HS CompSci for 6 years before changing jobs (and giving myself a 20% pay increase and cutting my commute in half), so the teaching a language part will not be the challenge.

Anotehr option might be to allow students to work collaboratively.

Thanks again,

Pete
 

Ardax

Ars Legatus Legionis
19,795
Subscriptor
Any drawbacks to using SQLite as the database?
You don't have to teach your students how to be DBAs too? :) Seriously, SQLite is an excellent first choice.

Also, to teach a framework or not to teach a framework for beginners?
I'd say do it. You're not teaching Data Structures or Algorithms here -- frameworks accelerate getting to the interesting stuff. Students that want to go on to CompSci can learn all about the plumbing underneath later.
 
Status
Not open for further replies.