-
Job definitions and titles
Whilst we are working in a client - server environment, I dont really see the confusion at all really... client devs work on client side development - HTML, CSS, javascript (if the organization allows, this could be split into a web designer vs client developer) vs server side devs working on server side code... php, java, nodejs etc
-
-
Buy and sell sites-how do they work?
Language is almost irrelevant at this stage, you should first get to grips of how a dynamic / database driven web application works. Follow some simple tutorials, then it should be a lot easier for you to understand how classified sites works.
-
A reliable method for styling a select element.
Nice post, just one thing, I know this is only a prototype but more for other that may want to use this, in your select on change function, I would update the val and Spanwidth(lowercase 's' maybe?) variables to have a function scope instead of global scope
-
Javascript & JQuery
php and javascript are unrelated, php being a server side scripting language, javascript primarily a browser scripting language, both do different things, however both have similarities as with any programming language. Take a look at Javascript : The Good Parts by O'Reilly, its probably a good starting point. I find it really useful to really dig into javascript properly from the start and understand the language and its functional programming capabilities, it will really help you to write good javascript in a lot let less, but more concise code. Once you get to grips with using javascript, then start playing about with libraries etc, personally, and this is really because its what I am used to do, is if I only need some light javascript work with some fluffy UI work I would use jquery as its nice and simple to use out of the box. If im working on a larger web app that relies on a lot of client coding for example a Web 2.0 application, I would use Dojo, simply for its AMD way of implementing a more OO style of coding. But hey, each to their own.
-
Question about SASS
Dont agree with it being unmanagable, its only unmanagable if the developer writes their CSS to make it unmanageable. I use SASS daily in a huge web app that has hundreds of CSS files, mostly partials, and if structured correctly, I can make the change I need in a matter of minutes, with no doubt that the change is in the correct place and can be easily found again if needbe
-
Javascript & JQuery
This is not a dig at the OP, as you only learn by asking questions, so fair play. But I am truely amazed at the responses above... its possible to learn Jquery and not javascript?! That makes absolutely no sense, jquery IS javascript.. Jay - give stuck into plain old javascript first and find your feet with that, then if you need to, enhance it with libraries/toolkits like jquery or dojo
-
Object oriented javascript help
Try this function Article(storyId, header, story) { this.storyId = storyId; this.header = header; this.story = story; } function init() { var myArticle = new Article("1","The latest ne.","The lwqdqqwd ewecew3 3332edew") console.log(myArticle); } A few things.. Classes, i.e. Article, should have a capital as the first character, and drop the 'my', so myArticle -> Article By all means, when you create an instance of that object, by all means call it myArticle, see above for an example. Maybe its just been my experience but I would rewrite var newNum = document.createElement("i"); as var newNum = function(){document.createElement("i");} and call it via myArticle.newNum() This should get you started, constructing the object was your first, main problem
-
-
Need Help on Creating a Forum Site Using Phpmysql
Does it HAVE to be written in php? If the answer is no, I would recommend having a look at Grails, why?... Topic- only user can create new topics - With the Shiro plugin, you have instant user login system with enterprise level of security. On top of that you easily create permissions for topics to be created only by logged in users. Cartegory - only user can create new cartegory - same as above user can also view, add and post comment - same as above if you are not user you can only view post.... - same as above i also want it to be user friendly.... - The forum to be user friendly to the end user, thats your job, for you development tools/language be user friendly for the developer, well that why I said Grails for example : You mention Users and Comments - so you would create domains for these, ie a User domain and a Comment domain, just like you would create a Java/Groovy class class User{ def username //provided by shiro def passwordHash //provided by shiro def name def email ...etc } then create your Comment domain class Comment{ def comment def timestamp ...etc } create your relationships class User{ def name def email ...etc static hasMany = [comments : Comment] } ie a User object can have may comments. there you have a system that already controls users, their login, comments and Hibernate under the covers will manage your relationships between the two domains. If you want all the comments created by User, all you need is Comment.findAllByUser(theUser) etc Grails is very user friendly for the developer, dynamic finders like the above make queries seemless and as close to the english language as you will get
-
Debugging website on a mobile device
I have been working on the site www.invictusstrength.net, which I have uploaded to the web server in order to test it on a mobile device as I know it needs a lot of tidying up for non desktop devices, and I wanted to make sure there was no unexpected behavior on mobile. I am glad I tried it out on the live site as it seems to crash my Samsung Galaxy Nexus default browser, but is OK on my girlfriends galaxy S3's default browser and chrome running on both our phones. Is there any tools out there that will help me to see what is happening to the site on my mobile browser, or if anyone has any advice on what may be causing the crashing? Some sidenotes if it makes a difference.. Its running : wordpress, bootstrap and Jquery as the main frameworks/tools incase they are playing any part in it? Thanks in advance
-
Responsive Guide
start off with twitter bootstrap - loads of tuts online including youtube to get you started
-
- Hows my CV?
-
My 1st website...thoughts on what you like and dislike
My first initial thought is ... is this a template? Looks like some sort of dreamweaver template is being used as the base, based on looking at the source code - if so... don't kid yourself, learn by starting from scratch
-
Javascript. Frameworks vs writing script from scratch.
Procedural is different from Functional - Javascript can be classed as a functional programming language as it uses Functions as first-class citizens. The types of things I am talking about is being able to pass anonymous functions like so etc var myFunc = function(myVar, function(anotherVar){//..do something}){//..do another thing}
-
Javascript. Frameworks vs writing script from scratch.
What I would recommend doing is, if you wanting to learn javascript - then learn it the right way first, being plain old Javascript and get to grips with how to change from the OOP mindframe to a more hybrid version of Functional programming and OOP. Once you have your head around the functional programming side of Javascript, you will thank yourself in the long run, then enhance your code with a library/framework such as Dojo / Jquery etc.
-
- Hows my CV?