ALL

Our first tutorial on JavaScript arrays covered the basics: creating arrays, accessing the contents of arrays, array lengths, and looping through arrays.
In this tutorial, you explore arrays in more depth, and learn how to use various methods of the Array object to manipulate arrays.
Extracting sections of an array with slice()
You're not limited to accessing single array elements at a time. Thanks to the slice() method, you can grab a whole section of an array at once. slice() has the follow...

In PHP MySQL mannual. There are three functions which need to be clarified for some users who may get confused when choosing which one to use to get the result.
mysql_fetch_array() : by seeting the different parameters, there are three ways to return the result set. MYSQL_ASSOC(Result set with field names as the associative indexs.It means you can use the field name as the index to get value of the specified cell). MYSQL_NUM(Result set with field names as the number indices). Or MYSQL_BOTH(...

The beauty of any code lies not only in finding the solution to a given problem but is in its simplicity, effectiveness, compactness and efficiency( memory ). Designing the code is harder than actually implementing it. Hence every programmer should keep a couple of basic things in mind while programming in C. Here we introduce you to such 10 ways of standardizing your C code.
1. Avoid unwarranted function calls
Consider the following two functions:
view source
print?
1
void str_print( c...

After few years on Warsztat (a Polish gamedev site) I’ve noticed an interesting phenomenon. Every now and then there are Compos (programming competitions) organized in two different flavours. Some compos are single-run events that last only few hours, others are long-term (several days/weeks). And as an extra catch, the former are usually restricted to basic APIs (SDL, OpenGL etc) while the latter are free-for-all (all sorts of engines, UDK/Unity allowed).
Now, results are somewhat shocking. M...

In JavaScript, we have functions and we
have arguments that we pass into those functions. But how JavaScript handles
what you’re passing in is not always clear. When you start getting into
object-oriented development, you may find yourself perplexed over why you have
access to values sometimes but not other times.
When passing in a primitive type variable
like a string or a number, the value is passed in by value. This means that any
changes to that variable while in the function are complete...

This post lists several benefits of taking a break during programming.
You work smarter, not harder. Once, I worked really hard
on a feature. For two weeks, 12 hours a day, I put in a lot of effort.
After those two weeks, I took a break and came up with several ideas
that made much of the work unnecessary.You think more clearly. Being tired has a similar effect
as being drunk. At the end of a day, I often kid myself that I’ll just
get this one thing finished quickly to have a fresh start...

Peter Knego states something interesting: “It's official: developers get better with age. And scarcer.”. He uses reputation and other metrics from StackOverflow to corroborate his point.
His summary is:
Number of coders drops significantly with age. Top developer numbers, at age 27, drop by half every 6-7 years.Developers in their 40s answer roughly twice as much and ask half
the questions compared to colleagues in their 20s. It seems younger
generation learns and older generation teache...

This post is part of our ReadWriteHack channel, which is a resource and guide for developers. The channel is sponsored by the Intel AppUp Developer Program. As you're exploring these resources, check out this helpful resource from our sponsors: AIR for AppUp: What You Need To Know
Rackspace recently published a nice infographic on the evolution of programming languages. It starts with FORTRAN and COBOL and runs through Ruby on Rails (which, yes, is a framework and not a language).
Unfo...