Page 1 of 1

Post your tutorial code

Posted: Mon May 16, 2011 6:51 pm
by martijn1
Hi

I really like your tutorials, but maybe it would be a nice addition to add a section here where the members/users could have a quick look over the code again, from your tutorials.

I hope you could add this.

Thanks in advance

Martijn1

Re: Post your tutorial code

Posted: Mon May 16, 2011 6:55 pm
by Temor
I think this isn't necessary, you can always check your code during the tutorials to see if they function correctly. And having the code posted would just make people come here to copy-paste and not actually type the code themselves.

Re: Post your tutorial code

Posted: Mon May 16, 2011 6:59 pm
by jacek
I deliberately left this out as I don't want to have people just copy it.

I guess I could post some of the more useful code in the Code section ?

Re: Post your tutorial code

Posted: Mon May 16, 2011 7:02 pm
by martijn1
jacek wrote:I deliberately left this out as I don't want to have people just copy it.

I guess I could post some of the more useful code in the Code section ?
Yea, because I still don't get the pagination(bad sound), so that's why it would be handy just to look over the code how it goes.


Thanks

Re: Post your tutorial code

Posted: Mon May 16, 2011 7:06 pm
by jacek
What don't you get about it ?

Maybe post in the tutorial help section ;)

The problem with posting the code is that people will just copy it into their editor to fix any problems, by doing that and not solving the problem there is less learning.

Re: Post your tutorial code

Posted: Mon May 16, 2011 7:07 pm
by martijn1
jacek wrote:What don't you get about it ?

Maybe post in the tutorial help section ;)

The problem with posting the code is that people will just copy it into their editor to fix any problems, by doing that and not solving the problem there is less learning.
Yea ok, I will watch the tutorial again, but it sometimes is a pain to listen there is some kinda weird noise on the background of the [1] vid

Thanks

Re: Post your tutorial code

Posted: Mon May 16, 2011 7:32 pm
by jacek
martijn1 wrote:there is some kinda weird noise on the background of the [1] vid
http://betterphp.co.uk/board/viewtopic.php?f=11&t=56 ;)

you don't have to watch it again, post the problem you are having and we will try to help out :D

Re: Post your tutorial code

Posted: Thu May 19, 2011 2:57 pm
by martijn1
jacek wrote:
martijn1 wrote:there is some kinda weird noise on the background of the [1] vid
http://betterphp.co.uk/board/viewtopic.php?f=11&t=56 ;)

you don't have to watch it again, post the problem you are having and we will try to help out :D
But still I think it would be better to post the code, because after the tutorial, I want to check the code again the day after it, once I did this I will remember it forever :D

So I hope this could be done, there isn't any intention to copy paste it, I rather make my own.


Thanks for your great tutorials.

Re: Post your tutorial code

Posted: Thu May 19, 2011 3:01 pm
by jacek
martijn1 wrote:But still I think it would be better to post the code, because after the tutorial, I want to check the code again the day after it, once I did this I will remember it forever :D
If it works, they it is the same ;)
martijn1 wrote:So I hope this could be done, there isn't any intention to copy paste it, I rather make my own.
you may not, but others might.

If you have any problems, they can be posted in the forum and I will try to help. But I will not be providing any of the tutorial code.

you should try to understand why I wrote the code the way I do rather than just trying to commit it to memory.

Re: Post your tutorial code

Posted: Thu May 19, 2011 4:27 pm
by nyo
martijn1 wrote:Hi

I really like your tutorials, but maybe it would be a nice addition to add a section here where the members/users could have a quick look over the code again, from your tutorials.

I hope you could add this.

Thanks in advance

Martijn1
Martijn1, I can understand that, although all the code is in the video, sometimes my code doesn't work even if I think it is the same as the tutorial code. This is where this forum comes in handy and I got a lot of help about the points where I got stuck while following the tutorials.

Even if nobody has the intention to copy & paste, it is better to fail while trying to write your own code than succeed while copy & pasting ready-made code.

Re: Post your tutorial code

Posted: Thu May 19, 2011 4:32 pm
by jacek
nailyener wrote:Martijn1, I can understand that, although all the code is in the video, sometimes my code doesn't work even if I think it is the same as the tutorial code. This is where this forum comes in handy and I got a lot of help about the points where I got stuck while following the tutorials.
Exactly, and when you post in the forum you get an explanation of what was wrong, not just changing something and not knowing why ;)

Re: Post your tutorial code

Posted: Thu May 19, 2011 4:45 pm
by pasqo83
jacek wrote:Exactly, and when you post in the forum you get an explanation of what was wrong, not just changing something and not knowing why ;)
I can vouch for that to, I've always copied php coding but never understood it, now I am doing tutorials I am learning and Im making mistakes and have posted it on here and Jacek has been a real massive help and so has the team on here as well. I would love to just see code upon code on this site but I know I would never learn if I knew there was an easy way out like that (even though its not my intention), stick with the tutorial and you will get through this. :D

Re: Post your tutorial code

Posted: Thu May 19, 2011 5:59 pm
by bowersbros
A way to fix this could be to have the sourcecode as printscreens so that it isn't copiable, so that they still have to look at the code and write it?

So that you dont have to find that quick second in the tutorial where you showed up your code relating to the line they are stuck on, but instead can look at the source code image, compare and fix?

If you dont have the time to do it, i can do it all. But you'd need to like.. open a section or tell me where to post it all?

Re: Post your tutorial code

Posted: Thu May 19, 2011 6:09 pm
by jacek
Problems should be posted in the forum, no code will be posted.

Re: Post your tutorial code

Posted: Thu May 19, 2011 6:48 pm
by Tino
A way to fix this could be to have the sourcecode as printscreens so that it isn't copiable, so that they still have to look at the code and write it?
That still wouldn't give people an explanation as to why what they did was wrong. They're still essentially copying the code. They just can't copy it directly. The point of those videos and these forums is to get help and proper explanations on why things work the way they do. Just copying code, either by copy/paste or just looking at the code and writing it, just doesn't teach you a whole lot.

Re: Post your tutorial code

Posted: Fri May 20, 2011 10:39 am
by ashwood
jacek wrote:I deliberately left this out as I don't want to have people just copy it.

I guess I could post some of the more useful code in the Code section ?
A better idea would just but sample code.. or maybe all the code just in a order where it WONT work unless you watch the tutorials and work it out? Help the user to learn how to place things for them to work aswell as reading over the code and viewing what does what.. it's a long shot but its a idea.

Re: Post your tutorial code

Posted: Fri May 20, 2011 11:19 am
by pasqo83
If we keep it simple, the idea behind tutorials is to learn from it, so if you need the whole code written out, the chances are your not learning it.

Stick with the video tutorial and forum troubleshoot as the tutorial one works so the error is in the user error and not the actual tutorial. :)

Re: Post your tutorial code

Posted: Fri May 20, 2011 3:09 pm
by jacek
jacek wrote:Problems should be posted in the forum, no code will be posted.
you can ask all you like ;)

Re: Post your tutorial code

Posted: Fri May 20, 2011 4:02 pm
by pasqo83
Im going to have trouble combining the mailing list tutorial and the HTML email together :( Any chance you can help on this once I writ out the code for this?

Im not sure how to edit so I can put the HTML one in there, I have an idea of where it goes but not 100%. :(

Re: Post your tutorial code

Posted: Fri May 20, 2011 4:05 pm
by jacek
pasqo83 wrote:Im going to have trouble combining the mailing list tutorial and the HTML email together :( Any chance you can help on this once I writ out the code for this?

Im not sure how to edit so I can put the HTML one in there, I have an idea of where it goes but not 100%. :(
This should be posted in the help section.

Have a go, then post if you have any problems.

Re: Post your tutorial code

Posted: Fri May 20, 2011 4:07 pm
by pasqo83
jacek wrote:This should be posted in the help section.
Sorry Jacek, :cry: I didnt want to create a new thread just yet and we was talking about tutorial code but thought i'd mention it because it was relevent as I was talking about ur tutorial... and coding.. :cry: