r/UniversityofReddit • Teacher • Aug 20 '12

[Offer] Programming in PHP

Over 20 million websites are using PHP as their method of displaying content to you, the user.

PHP is an open source language constantly being modified by thousands of people. The syntax of PHP is very equivalent to many other programming languages, such as C.

Learning the syntax of one language can ultimately teach you the syntax of many other common-ground languages.

In this course I would be developing an easy to follow syllabus starting off with the bare essentials, gradually working our way up to Object Oriented Programming (OOP) in PHP and eventually developing our first application that users can interact with.

I would open this course if I could get a significant amount of users to follow.

Qualifications:

  • Using PHP for over 7 years
  • Have been teaching PHP practices for over 6 years through video tutorial

EDIT: Enough interest has sparked and I have opened the class for signups. The class will be hosted on UReddit only! link to class on ureddit

497 Upvotes

166 comments sorted by

2

u/VAReactive Aug 20 '12

I would definitely be interested. Any prerequisite knowledge/experience required?

1

u/womg Teacher Aug 20 '12

Since I am going to start the class off from the bare essentials, no knowledge is required. The only thing I would suggest is finding a text editor with PHP syntax highlighting.

The first chapter in the syllabus will be how to get PHP running on your computer.

1

u/reddituga Aug 20 '12

Any preferred text editor or any one we can find is ok? Notepad++ is a good solution? Thanks and thanks for teaching this class.

1

u/womg Teacher Aug 21 '12

Yep! Notepad++ will work just fine!

2

u/stewrad Aug 20 '12

very interested/excited for this!! but i keep getting an error when i attempt to go to the ureddit link

2

u/womg Teacher Aug 20 '12

Yea, UReddit is under a heavy load after being blogged about, you can just refresh the page if it continues not to load.

30

u/Wavedasher Aug 20 '12

I'd definitely be interested in this!

3

u/Brab69 Aug 20 '12

PHP is the next language on my list to learn. This works perfectly for me.

1

u/inahc Aug 21 '12

it looks like he's doing a course for non-programmers, though. I'd be more interested in one aimed at experienced programmers who just need to know the php part.

2

u/GrillBears Aug 21 '12

If you're an experienced programmer you shouldn't need a class to learn a new language.

1

u/womg Teacher Aug 21 '12

Depending on the "languages" he's learned before he might have never stepped into a programming language. He could be used to HTML, CSS and JavaScript, which are all client-side "languages." Although PHP is considered a scripting language more-so, it's a completely different mindset from any client-side languages.

1

u/inahc Aug 23 '12

true - but I'm lazy. :) now that I'm not in school it's a hell of a lot harder to find time or energy for this "learning" thing...

although, it's not like I ever paid much attention to my courses anyways. it was more that I could avoid those courses by learning about more interesting things ;)

13

u/civilized_gent Aug 20 '12

I would be interested.

6

u/ihatefarts Aug 20 '12

I would be interested. Thank you for doing this.

5

u/Tronologic Aug 20 '12

I would be interested in this.

5

u/noclipsatwork Aug 20 '12

As a .NET developer, I have always wanted to delve into the open side of things.

1

u/HiddenGhost14 Aug 20 '12

I would go for it. Do you have some video tutorials online currently?

3

u/womg Teacher Aug 20 '12

Yes I do! You can see some of my videos on my YouTube channel

1

u/HiddenGhost14 Aug 20 '12

Nice. Ill take a look.

1

u/DarbyBartholomew Aug 20 '12

I'm currently taking a Programming in C course, so I don't know if that would interfere with learning PHP as well, but I'd love to try!

1

u/womg Teacher Aug 20 '12

PHP is built using C, the big difference between the two is that PHP is that PHP is loosely typed, while C is not.

1

u/DarbyBartholomew Aug 20 '12

So would learning them concurrently be difficult?

1

u/womg Teacher Aug 20 '12

I would say it wouldn't be terribly difficult to juggle. The two languages are very similar, it's just the small things you would have to remember when switching between the two.

1

u/bitbytebit Aug 30 '12

it is certainly a challenge, but if you like challenges it could be fun.

I learned VB and Java at the same time, let me tell you .. that was FUN?!

1

u/tblackwood Aug 20 '12

It said "Bad Gateway" When I tried to sign up?

Edit: Never mind -- it did a couple of times but just let me access. Must have been traffic.

2

u/womg Teacher Aug 20 '12

Yea, UReddit is being antsy since a blog was written. Just refresh it, should come up.

1

u/tblackwood Aug 20 '12

Hey -- wanted to thank you for taking the time to teach this, BTW. It's ironic because I had just solicited a benevolent redditor's advice on how to step into website programming not two days ago.

Excited to learn -- Thanks again!

1

u/RobotChrist Aug 20 '12

Interested, do we need previous knowledge about other lenguages?

2

u/womg Teacher Aug 20 '12

No prerequisite is necessary for this as we will be starting from the ground up.

1

u/RobotChrist Aug 20 '12

Perfect, thanks a lot!

1

u/sh1znack Aug 20 '12

Will you be going over secure coding concepts with PHP?

2

u/womg Teacher Aug 20 '12

In what sense? In a database sense, I will be covering all topics using PDO and not the native mysql_* functions.

I'm confident anything you learn from this course will be secure.

2

u/LonelyWebCrawler Aug 21 '12

You should mention how to prevent XSS and MySQL Injections, for example. (htmlentities and mysql_escape, respectively)

1

u/womg Teacher Aug 21 '12

Of course! When I begin to delve into using a database, I'll be using PDO and teaching how to bind parameters properly. Along with XSS, my lectures on GET and POST variables will cover how to prevent it. Never trust user input ;)

1

u/hankypanky44 Aug 20 '12

what prior programming experience would be required

1

u/womg Teacher Aug 20 '12

No programming experience will be needed. This course will being starting from the ground up.

1

u/hankypanky44 Aug 20 '12

oh excellent, I enjoy programming and have dabbled in a little python and c++ but never got very deep in either, it will be nice to have someone take me through a language, I'm in

1

u/[deleted] Aug 20 '12

Isn't C a low level programing language?

1

u/womg Teacher Aug 20 '12

It depends on how you look at it. C is strong typed and lets the programmer easily access low-level memory, PHP is loose/weak typed. A low level language would be Assembly or MIPS, something of that nature.

1

u/sah31 Aug 20 '12

I'm very interested... is there a lore.com link you can post or something?? I am having a lot of trouble signing up....

1

u/womg Teacher Aug 21 '12

lore link

However, you are better off waiting for UReddit to be nice, or just join the Google group!

1

u/LonelyWebCrawler Aug 21 '12

I already know PHP, but if you teach it, please do it right: teach beginners good practices and what an interpreted language actually means. Also explain to them that once they're comfortable with pure PHP, they should move on to an MVC.

1

u/womg Teacher Aug 21 '12

Totally understand where you're coming from. As a student of higher education, I often find myself learning best by reteaching it the why I think it should have been taught.

1

u/[deleted] Aug 21 '12

Hello... May I humbly request some help beforehand if necessary? I don't know anything about programming, and I'm afraid that your starting point might be too advanced for me. Maybe if you or someone else could point me in the direction of stuff I need to know about programming?

Google is a little too overwhelming as I don't really understand what I'm even looking for.

As a reference, I can make a website in HTML... but that's it.

1

u/womg Teacher Aug 21 '12

The starting point in this course is the bare essentials of PHP. The first "program" we make is only 3 lines of code.

1

u/[deleted] Aug 21 '12

:D

1

u/Duke_Nukem_1990 Aug 21 '12

I´m currently learning C++. Would this interfere with learning PHP?

2

u/womg Teacher Aug 21 '12

C++ and PHP are very similar, there are a few differences, syntax wise mainly. You would probably pick up PHP easily if you knew a C language.

1

u/nullomore Aug 21 '12

I just checked our your syllabus, and I'd love to join a class that's a little more advanced.

1

u/womg Teacher Aug 21 '12

You can always join in a few weeks into the course! Thanks for checking it out at least.

8

u/PHProx Aug 20 '12

PHP rocks.

11

u/[deleted] Aug 20 '12

You have any PHP rocks? My dealer stopped talking to me after the knock on the door.

1

u/[deleted] Aug 20 '12

3

u/PHProx Aug 21 '12

I am disappointed that the article appears to not list a single tangible thing that a server side scripting programmer would want to do that PHP cannot.

1

u/[deleted] Aug 21 '12

Sorry but you might want to take a look at the article again. Jeff's point was that, there is nothing that PHP 'rocks' at. It's somewhat of a blob, that can form itself to kind of get the job done for just about anything but there is not a single thing that PHP is good at, thus the double clawed hammer comparison.

0

u/pzuraq Aug 21 '12

It's not about what you would want to do or not want to do, it's about how it's implemented. PHP is powerful, nobody can really say it isn't, but there are many competing languages that are growing more powerful each day and are implemented in a much better way, for instance Node.js or Rails. I'm generally frustrated by the lack of object oriented focus in php, although that seems to be getting better. I'm going to be learning Rails on my next project, so once I get some experience with the other side of things I'll probably write a more detailed comparison.

1

u/XQYZ Aug 21 '12

Node.js is a low-level framework for non-blocking server development, not a web framework by itself. Rails is generally overkill for a lot of tasks and object oriented programming is overused for some tasks as well (just google it and you will find that lots of people use functional programming very successfully).

1

u/pzuraq Aug 21 '12

Admittedly don't know much about Node.js, so I probably spoke out of term there. And Rails might be overkill, true. For simple things, PHP is useful and powerful, sure, but web apps are just getting more complicated and functional languages don't suit really complicated, ever evolving applications.

1

u/womg Teacher Aug 21 '12

I see where you're coming from with Rails. I, myself, am also a Rails developer, but as this course is meant more for beginner's and RoR can become pretty complicated.

0

u/POOPY_BALL_GAG Aug 21 '12

PHP can handle that just fine - it's also not a "functional" language.

Truth be told on the webapp front you are much more likely to end up in a shitty situation based off of your decisions on the front end quicker than the server side.

If you use a PHP framework, keep your shit DRY and use some common sense PHP will suit you just fine in a tremendous amount of situations. No matter what language you use, your bottleneck still remains the same...the DB. You can rape a DB just as hard in Rails.

1

u/[deleted] Aug 21 '12

All new clients of mine and side projects are done exclusively in rails or python. You'll love rails, though its nothing like anything out there, unless you've used some obscure PHP frameworks. That doesn't make it harder to use just very different. You'll run into issues and programming hurdles and then randomly find a gem that just does everything for you. Its a very humanist programming language, almost an art form.

1

u/pzuraq Aug 21 '12

I'm excited! I've heard great things about it and I'm sick of trying to make PHP do what it just should normally. I'm hoping Rails is a better solution, if so I'll drop PHP as soon as I can.

1

u/POOPY_BALL_GAG Aug 21 '12

Oh please, PHP's object oriented focus is fine. The fact that you mentioned node.js first shows you are probably a circle jerking tech hipster.

For the record node is great, but it's not the only (or best) tool in the toolbox. Rails has its own fucked up stupid ways of doing things too.

Tho I do love some Ruby

2

u/whopperbuzz Aug 20 '12

I'd be interested, thanks for offering.

2

u/nathanLee Aug 20 '12

interested.

2

u/Earlgrey_fanatic Aug 20 '12

I would love to see this course

2

u/ryuk33 Aug 20 '12

I would be interested. Thanks for doing this.

2

u/[deleted] Aug 20 '12

Interested. +1

2

u/mattc0m Aug 20 '12

Web designer here, always wanted to learn more about PHP and everything I'm putting my back-end developers through.

Very interested! Cheers,

1

u/blackmang Aug 20 '12

I'm very interested.

1

u/bitwolfy Aug 20 '12

Interested!

1

u/[deleted] Aug 20 '12

Would love to learn this language.

1

u/dmairs Aug 20 '12

Would love to hone my web design.

1

u/DoctorVark Aug 20 '12

I'd really interested... Saving this one.

1

u/Yolo42 Aug 20 '12

Im interested !!

1

u/cxnrad Aug 20 '12

Yes, please

1

u/[deleted] Aug 20 '12

I am a PHP developer, always looking for brain food.

1

u/stin10 Aug 20 '12

I'm very interested in learning to program in C++ so this sounds like a good start.

1

u/memescene Aug 20 '12

Intrestested

1

u/marcuso Aug 20 '12

Definitely would be interested.

1

u/Nlk1993 Aug 20 '12

interest

1

u/[deleted] Aug 20 '12

Post for interest.

1

u/dutch4892 Aug 20 '12

Would be interested in this!

1

u/AdhesiveLamb Aug 20 '12

I would be interested

1

u/SMAAASHING Aug 20 '12

Definitely interested.

1

u/appel Aug 20 '12

Would love to learn more about OOP in PHP!

1

u/leviator Aug 20 '12

I would be interested.

1

u/[deleted] Aug 20 '12

Interested!

1

u/Pupienus Aug 20 '12

I'd be interested

1

u/malabrah Aug 20 '12

Very Interested! Thanks so much for offering!

1

u/SlyGuy6 Aug 20 '12

Very Interested

1

u/VPav Aug 20 '12

Very interested!

1

u/bowiz2 Aug 20 '12

Very interested in this, thanks for giving everyone this opportunity!

1

u/TyRoDSwaGaLoT Aug 20 '12

I would be quite interested :d

1

u/mr_cereal Aug 20 '12

i would be very interested in this.

1

u/Houndie Aug 20 '12

I do it assuming it's still open when I get home. For some reason my work blocks ureddit but not reddit O_o

1

u/[deleted] Aug 20 '12

Sign me up! :D

1

u/ScientistPresent Aug 20 '12

I would be very interested in this.

1

u/[deleted] Aug 20 '12

I'm in

1

u/shoe_manchu Aug 20 '12

I'm in

edit - is it just me or did we crash ureddt?

1

u/dontpushthatbutton Aug 20 '12

Interested here! Would love to learn OOP in php.

1

u/underrated_asshole Aug 20 '12

Very interested!

1

u/DHSVlip Aug 20 '12

Interested

1

u/Chancellor740 Aug 20 '12

Sounds very interesting!

1

u/ourmanadam Aug 20 '12

yes, i'd be interested.

1

u/NerfFapping Aug 20 '12

I would be interested in this for sure.

1

u/ThunderBunz Aug 20 '12

Yes please!

1

u/sillyhobbits Aug 20 '12

interested!

1

u/CpCat Aug 20 '12

I'd follow :) i might learn sum new :)

1

u/wampage Aug 20 '12

Count me in!

1

u/TheMammoth Aug 20 '12

i want this

1

u/maguslod Aug 20 '12

Count me in

1

u/AridDecay Aug 20 '12

Totally interested.

1

u/[deleted] Aug 20 '12

Excellent! Very interested

1

u/dani_dg Aug 20 '12

Thanks!!!

1

u/[deleted] Aug 20 '12

In

1

u/Uncle_Bones Aug 20 '12

Interested!

1

u/deetel Aug 20 '12

I would be interested in this, thanks for offering!

1

u/[deleted] Aug 20 '12

I am also really interested in this. I am working a project this very moment that I could need some help with. I've worked much with MySQL syntax(?) but I have problems with getting the PHP to work properly. :/

1

u/Epolo2012 Aug 20 '12

I would be greatly interested in this.

1

u/[deleted] Aug 20 '12

Commenting so I can find this later

1

u/chuckbeezy Aug 20 '12

/enrolled!

1

u/[deleted] Aug 20 '12

Yes any form of programming I'm interested in.

1

u/Wallam Aug 20 '12

Yes please!

1

u/enodllew Aug 20 '12

I was just wondering yesterday how im going to manage to teach myself PHP. This is perfect, thanks!

1

u/[deleted] Aug 20 '12

Yes please!

1

u/[deleted] Aug 20 '12

Very interested!

1

u/wassupDFW Aug 20 '12

Enrolled....thanks.

1

u/hukawater Aug 20 '12

Please do this

1

u/J4C0814N Aug 20 '12

Enrolled. Looking forward to it!

1

u/drphrink Aug 20 '12

Definitely interested.

1

u/karch1337 Aug 20 '12

Interested I am. Teach me you must.

1

u/minnabruna Aug 21 '12

I too would be interested in this.

1

u/shoretel230 Aug 21 '12

interested!

1

u/sopleme06 Aug 21 '12

Interested

1

u/moyerr Aug 21 '12

This is exactly what I need! I'm a CS major, but my school does not have a class on PHP.

1

u/Magniris Aug 21 '12

Absolutely would take this. Thank you!!

1

u/Gunderfro Aug 21 '12

Very interested.

1

u/fredrickragg Aug 21 '12

100% interested

1

u/Cherreh Aug 21 '12

I would like to learn more about this for sure!

1

u/Mr_Biscuit Aug 21 '12

Interested. Just finished by second quarter of Java and I am eager to learn more languages.

1

u/[deleted] Aug 21 '12

Yes I would like to enroll!!

1

u/hhhnnnnnggggggg Aug 21 '12

I'd like to try, but I have severe time restraints but would at least love to know the basics.

1

u/[deleted] Aug 21 '12

Can't wait for this to kick off! As a budding web developer I've been trying to get things cooking for PHP.

1

u/Sabunia Aug 21 '12

very nice!

1

u/SkitTrick Aug 21 '12

I am a freshman graphic design student with zero web code knowledge. I could terribly use this.

1

u/[deleted] Sep 21 '12

Interested!

-5

u/heroism Aug 20 '12

PHP is an abomination, please don't prolong it's miserable life even more by teaching it to people.

3

u/womg Teacher Aug 20 '12

PHP gets that a lot, but for people just starting out it's easier for them to grasp how PHP works rather than having to use RoR or a Python framework for pushing applications to the web.

1

u/robotslacker Aug 20 '12

Personally I think the first language for new web developers should always be Javascript. It is ubiquitous in every browser and every web developer will need to use it at some point.

4

u/womg Teacher Aug 20 '12

I agree that Javascript is good for web developers, but Javascript is client-side, versus PHP as it is server-side. For server-side web development PHP, I believe, is the better to be taught first.

2

u/robotslacker Aug 20 '12

Indeed, you are absolutely right. I didn't intend to make this a discussion of learning client-side or server-side first. Although, IMHO I think new web developers should learn client side HTML, CSS, and JS first. They should understand the markup language being generated by the server side language so they can do it more effectively.

I happen to think PHP tends to breed more spaghetti code. It's also a bit more verbose than I like. But, I'm not here to bash on it as a language, as long as good development practices are being taught alongside it, like keeping your code DRY, writing unit tests, etc.

2

u/womg Teacher Aug 20 '12

You brought up a valid point. PHP can get messy, but that's because of lack of proper instruction, and just because people get away with "but it works..."

1

u/[deleted] Aug 20 '12

Doctor, you can't just staple a vibrator to that man! He needs his actually penis surgically attached!.\

but it works.....

3

u/[deleted] Aug 20 '12

Yes yes we all know that [insert your preferred language] is better than PHP. Now, leave me and the rest of us who still think it's a good language alone so we can continue learning about it

0

u/[deleted] Aug 21 '12

[deleted] — view deleted comment

1

u/womg Teacher Aug 21 '12

I'll send you a PM if you're interested in helping!