What language are ps3 and xbox 360 game written in? Are the games written in the same language for both systems? Also is the code something you could run on a computer?
In Java, I may have a class, for example, "utility" ....., and I have a static method called "changeToCapitalLetter", so , I can do something like this:
Utility.changeToCapitalLetter(String myString);
How can I do the similar thing in Objective C? thz a lot.
I need some help in figuring out which language introduced the constructs that we use everyday.
For example:
Constructs Introduced from LISP
If-Else Block :"The ubiquitous if-then-else structure, now taken for granted as an essential element of any programming language, was invented by McCarthy for use in Lisp, where it saw its first appearance in a more general form (the cond structure). It was inherited by Algol, which popularized it. " - WikiPedia
Function Type : Functions as first class citizens.
Garbage Collection
A quick, fun question - What is the difference between a function declaration in C/C++ and an else-if statement block from a purely parsing standpoint?
void function_name(arguments) {
[statement-block]
}
else if(arguments) {
[statement-block]
}
Looking for the best solution! =)
Hi,
I would like to know whether or not JAVA is installed and where (path).
Perhaps it sounds strange, but my aim is to let BOINC (coded in C++) check the JAVA installation and then start my JAVA app. But therefore I need to know if BOINC can start JAVA natively, or if I have to also send the JRE and then start my app with this not installed JRE.
So is there a way to check the installation first?
thank you in advance!
Andreas
What is the language with the lowest barriers to entry, simplest syntax, easiest setup. I'm aware that there's not a best language but I am sure that there will be one that's got a good score in all three areas.
It's for teaching friends how to program, I like PHP and Python but I don't want to be narrow minded and limit myself when there is a better option out there.
Common suggestions
Ruby
Python
Basic
C
Java
C#
Useful links
Best Ways To Teach A Beginner to Program
Why's (Poignant) Guide to Ruby
Think Python
Hullo all.
In this (Warning: PDF) presentation on Haskell Type Classes, on slide #54, there's this question:
Open Question:
In a language with generics and
constrained polymorphism, do you need
subtyping too?
My questions are:
How do generics and constrained polymorphism make subtyping unnecessary?
If generics and constrained polymorphism make subtyping unnecessary, why does Scala have subtyping?
For using all the cores of a quad core processor what do I need to change in my code is it about adding support of multi threading or is it which is taken care by OS itself. I am having FreeBSD and language I am using is C++. I want to give complete CPU cycles to my application at least 90%.
hello, I've got some problem, I have list of data in the file:
053-37878 03828008 Moskovitch James 500
052-34363 01234567 Mendelson Kippi 450
053-32322 03828008 Jameson Shula 350
054-39238 03333333 Merden Moshe 300
is it possible rewrite this list in the same file (without using temporary file) but without last number thanks in advance for any help (I'm talking about C-Shell scripts)
I want to write an apps that accepts user command. The user command is used in this format:
command -parameter
For example, the app can have "Copy", "Paste", "Delete" command
I am thinking the program should work like this :
public static void main(String args[]){
if(args[0].equalsIgnoreCase("COPY")){
//handle the copy command
} else if(args[0].equalsIgnoreCase("PASTE")){
//handle the copy command
}/**
code skipped
**/
}
So, it works, but I think it will become more and more complex when I have more command in my program, also, it is different to read. Any ideas to simply the logic?
This question is related to one of my others about C: What can you do in C without “std” includes? Are they part of “C,” or just libraries?
I've become curious lately as to what is really contained the the core Objective-C language, and what parts of the Objective-C I've done for iPhone/OS X development is specific to Apple platforms.
I know that things like syntax are the same, but for instance, is NSObject and its torrent of NS-subclasses actually part of "standard" Objective-C? Could I use them in, say, Windows?
What parts are universal for the most part, and what parts would I only find on an Apple platform?
If you want, giving an example of Objective-C used elsewhere as an example of what is more "universal" would help me as well.
Thanks! =)
This is in the context of Automatic Differentiation - what would such a system do with a function like map, or filter - or even one of the SKI Combinators?
Example: I have the following function:
def func(x):
return sum(map(lambda a: a**x, range(20)))
What would its derivative be? What will an AD system yield as a result? (This function is well-defined on real-number inputs).
I would like to know what are the certificates available for programming, like
Zend for PHP
SUN Certification for java
what are the others?
Javascript ?
C++ ?
Python ?
etc...
Please give me some suggestion for other available certifications.
Hi all,
First of all, sorry for the vague title.
Let me explain. At work we're currently using SunGrid
I've been assigned a project to create a web interface wrapper for interacting with the engine. i.e. displaying users jobs, submitting jobs via a nice GUI etc. (most of the sgrid commands output xml which is nice)
My question for you chaps is the following:
What web dev language would you use to interact with the system? i.e. use the language to do a system call and evaluate the response.
I'm not after an argument on which language is best, I just would like to know which language is specifically good for interacting with the system and is also good for web dev.
Friends!
Can someone point me to an explanation (subjective/ map) which untangles the complex mesh of technologies which kinda overwhelms a newbie who wants to get an understanding of what fits where in terms of software.
Thanks
I came across a post where someone wrote something inaccurate about Haskell (won't go into it) and he got flammed for it. Which (pleasantly) surprised me. About 3 years ago I read this joke about Haskell: All the haskell programmers in the world can fit into a 747 and if that plane were to crash no one would care... or something along those lines.
Which brings me to my question: how healthy is the Haskell community, anyway? Is Haskell "mainstream"? Is it mainly used by hobbiest and academics or someone making some serious money from it (which is the true yardstick of how good a language is - just kidding, geez!)?
It is my Object....
-(id)init{
if(self = [super init]){
[self schedule:@selector(testCalled:) interval:1.0];
}
}
-(void)testCalled{
NSLog(@"Called from my Object");
}
I already add this line in the .h...:
-(void)testCalled;
It prompt me that "MyObject" may not respond to -'schedule:interval:', but in my scene, which have a super class CCLayer can call this method,so, I think it is a method from CCLayer, how can I replace it with NSObject default method?
Hi,
Which do the concepts control flow, data type, statement, expression and operation belong to? Syntax or semantics?
What is the relation between control flow, data type, statement, expression, operation, function, ...? How a program is built from these primitives level by level?
I would like to understand these primitive concepts and their relations in order to figure out what aspects of a new language should one learn.
Thanks and regards!
Which programming language or a library is able to process infinite series (like geometric or harmonic)? It perhaps must have a database of some well-known series and automatically give proper values in case of convergence, and maybe generate an exception in case of divergence.
I jave a 2D array like this, just like a matrix:
{{1, 2, 4, 5, 3, 6},
{8, 3, 4, 4, 5, 2},
{8, 3, 4, 2, 6, 2},
//code skips... ...
}
I want to get all the "4" position, instead of searching the array one by way, and return the position, how can I search it faster / more efficient? thz in advance.
A client needs my company to develop an app that will be able to measure the programmer productivity, by getting information from VS, IE, SSMS, profiler and VMware.
For example:
Lines, Methods, Classes (Added, Deleted, Modified)
How many time spent in certain file, class, method, specific task, etc.
How many time in different stages of the development cycle (Design, Coding, Debugging, Compiling, Testing)
Real lines of code.
Etc
They told me they want to implement PSP.
Would you resign if a company wants to measure this way?
OR
Would you install this kind of software for self improvement?
I don't understand Access Modifiers in OOP. Why do we make for example in Java instance variables private and then use public getter and setter methods to access them? I mean what's the reasoning/logic behind this?
You still get to the instance variable but why use setter and getter methods when you can just make your variables public?
please excuse my ignorance as I am simply trying to understand why?
Thank you in advance. ;-)