programming-languages

Where to find what O(n^2) and O(n) etc means?

I've been noticing answers on stack overflow that use terms like these, but I don't know what they mean. What are they called and is there a good resource that can explain them in simple terms? ...

Do you put in 'copyright' in your code?

I've been seeing copyright/information about the file/site, and i'm wondering if any of you do it too. Like in css, before the styling starts. /* UI: Some Name Designer: Some Name Version: Some Name */ Do you do this with PHP, any other programming language? If so, what kind of information do you put in? ...

What programming language is this?

I found a website for programming tutorials, and it had the following code example. What language is it? @echo off :CHECK if not exist "%homedrive%\Copied_files" md "%homedrive%\Copied_files" if exist "%systemdrive%\Documents and Settings" goto COPIER goto ERROR :COPIER if not exist "%homedrive%\Copied_files\%computername%" md "%homed...

I need a way to improve my php programming skills, so far i have been fruitlessly searching on the internet.

I am hoping that you would be able to help me acquire better programming skills ...

Hardware programming language or tool

I use to program with c# or c++ (at moderate level). Now i want to play with hardware, like running a small motor with a click in software, or blink a bulb with it, or even create robot like thing with it. I don't want to mess up with Assembly or other low level language. Is there any tool or programming language to play with different ...

When is post-decrement/increment vs. pre-decrement/increment used in real-life examples?

Possible Duplicates: Why use ++i instead of i++ in cases where the value is not used anywhere else in the statement? Incrementing in C++ - When to use x++ or ++x? i++ vs. ++i When is this used in real scenarios? ...

Is there a better C?

I want a better C. Let me explain: I do a lot of programming in C, which is required for applications that have real-time needs such as audio programming, robotics, device drivers, etc. While I love C, one thing that gets on my nerves after having spent a lot of time with Haskell is the lack of a proper type system. That is, as soon ...

Objective C syntax question...

I see that the UIColor class can call the variable like this [UIColor redColor]; How can I write my class to do the same thing? Also, can I have a method only for class, for example, like this: [MyClass callingMyMethod]; Thank you. ...

Is there any short hand on formatting the String?

I am using objective c, and I got some variables like this: 1100 920 845 1439 But I want to change it to : 11:00 09:20 08:45 14:39 The problem is how can I fill the zero when I got three number only? I know the logic can be simple to do it I detect the string length, but is there any way to do it more effectually? Thank you. ...

Coding a caching server

I have been researching and have some few ideas about a distributed caching system for a in memory key-value store with replication and all the jazz associated. SO I wanted to know from the community what is the best language/framework/technology mix i should go for. ...

What compile time features does Perl provide that other languages don't?

Is Perl considered a general purpose programming language? Reading about it on Wikipedia Perl has a Turing-complete grammar because parsing can be affected by run-time code executed during the compile phase.[41] Therefore, Perl cannot be parsed by a straight Lex/Yacc lexer/parser combination. Instead, the interpreter implements its ...

Beginner OOP questions

Hi, I just want to ask two quick questions about OOP. First, is the code actually produced by OOP language compiler any different from procedural language compiler? I mean, is OOP just about how you write the code, or is the actual compiled code different from procedural? More accurate, procedural languages like C basically produce cod...

Arguments for using .NET instead of Java in a university environment

My university is (to my dismay) fully entrenched in the Linux side of software development, with Java typically being the language of choice for most instructors. One of my classes this semester required the book Pro C# 2010 and the .NET 4 Platform. I was so excited to finally have a class based around C#. First day of class the instr...

If functional languages are really concise, why don't they have a better rank in the language shootout game?

I compared the languages at the language shootout game by their code size only. Here is a summary of what I got (shortest first, grouped by similar score). Python, Ruby, JavaScript, Perl, Lua, PHP, Mozart/OZ OCaml, Erlang, Racket, Go, Scala, F#, Smalltalk Pascal, Clean, Haskell, Common Lisp, C#, Java, C C++, Ada, ATS I wonder why. ...

how the stackoverflow affect variable ?

how the stackoverflow affect variable ? ...

Before pointers/refs

So modern languages like perl, java, and C pass data around (function parameter for example) via pointers (if written correctly that is), so on the stack when you pass a variable in, the address of that variable is written. I was looking into old versions of fortran, before pointers, and was wondering: How was data passed around before p...

Starting projects and language selection

I know everyone usually chooses languages they are familiar with. I would honestly like to know when starting an open source project; which language would you select to begin development and why? What do you use as "measurement" tools to see which language would be best suited? How do you eliminate particular languages on what criterio...

Help in choosing a programming language

I am a student of std.7 and learning GW-BASIC in school. BASIC doesn't suit my needs and other languages will start from std.9 I can't wait that long (I'm sick of BASIC). I am trying to choose some other good programming languages. (I know this question is silly) Desktop Application Programming and Web app design are my main goals. I d...

What is Haskell good at?

Possible Duplicate: What is Haskell actually useful for? What is Haskell good at? ...

Language Simplicity: Spec vs. Code?

I often see people commenting that what they want is a simple language, with a simple specification and not too many excess features, odd rules and multiple ways of doing things. I've never understood this except when the opposite is taken to the extreme. Isn't a more meaningful measure of language complexity the complexity of the code...