programming-languages

When is calculating or variable-reading faster?

hi, to be honest, I don't really know what the "small green men" in my cpu and compiler do, so I sometimes would like to know :). Currently I would like to know what's faster, so that I can design my code in a more efficient way. So for example I want to calclate something at different points in my sourcecode, when will it be faster to...

What programming language is this?

We're trying to script a CAD program, and this is the example for controlling the date in our design slugs, but I don't even know what language it is to know what to do with it. ! LIBEDATE def &d$ &ret$ set &d$ = rstr(`/`,` `,#d$); set &ret$ = word(&d$,2),`/`,word(&d$,1),`/`,subs(word(&d$,3), -2, 2) ...

display records which exist in file2 but not in file1

log file1 contains records of customers(name,id,date) who visited yesterday log file2 contains records of customers(name,id,date) who visited today How would you display customers who visited yesterday but not today? Constraint is: Don't use auxiliary data structure because file contains millions of records. [So, no hashes] Is there a...

Help Me Make My Pascal Program Display Multiple Names Which Were Entered Plz.

Hey,Guys I'm having trouble displaying names using arrays in my Pascal program. But first heres the question I'm writing the program to answer : And here's what I've done so far(It's a bit messy): ...

get file path from svn diff file with PHP and C

hi i have a file having svn diff i wish to extract the filenames form the diff. How to write the parser for that.. Index: libs/constant.php =================================================================== --- libs/constant.php (revision 1243) +++ libs/constant.php (revision 1244) @@ -26,5 +26,5 @@ // changesss - +// test 2 ?> \...

Facebook Game Development - Which Programming languages?

Hi folks, I am going to develop a facebook game as topic for my thesis. I am wondering which programming languages i should choice. I am used to programming in .NET. But i am also comfortable in C++ and Java. I don't want to use Flash as the graphical frontend since i don't like it. So i guess i'll go with ASP.NET + Silverlight. Wha...

how to upload file using javascript

how to upload a file using javascript ...

How do the young start programming nowadays?

Back in the late 80s/early 90s I learned GWBasic on MS-DOS. Then Turbo Pascal. Then Turbo C/Asm. Later I stumbled into PHP and finally made a career out of Perl programming. I'm curious how actual under-25s found their way into programming. There is a lot of discussion about what path you would steer your children if you wanted them to ...

How to Design Programs: An Introduction to Programming and Computing -- teacher guide access

Hello -- I'm a biologist switching careers, and trying to learn programming as a result. I stumbled upon the aforementioned book on Amazon, which jived with my liberal arts background. Despite my great satisfaction with the didactic approach, I was frustrated to see that the answers to the exercises are restricted to teachers only. A...

Looking for Programming Language that allows you to change true and false.

For my curiosity sake I'm looking for a dynamic object oriented language that allows you to change true to false and vice versa. Something like this: true = false, false = true; This should also affect any conditional statements, therefore 42 == 42 should return False. Basically, with this premise, nothing in the language would be sa...

Programming for Multi core Processors

As far as I know, the multi-core architecture in a processor does not effect the program. The actual instruction execution is handled in a lower layer. my question is, Given that you have a multicore environment, Can I use any programming practices to utilize the available resources more effectively? How should I change my code to gai...

Using Cases to change background colour | Visual Studio 2008

I really need help working with cases, I'm only learning it so far, but just can't get a drop down menu to work that would change the background of a Textbox. Private Sub cbColours_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cbColours.SelectedIndexChanged Select Case colours Case...

Is there any Mathematical Model or Theory behind Programming Languages?

RDBMS are based on Relational Algebra as well as Codd's Model. Do we have something similar to that for Programming languages or OOP? ...

Do I need to release the temp Object from this example?

-(IBAction) testTemp: (id) sender{ id tempObj; tempObj = otherObject; //the otherObject will be released in dealloc method; [tempObj doSomething]; } As you can see, I use the tempObj for temp use. I won't use it after the user quit this method, should I need to release the tempObj? and why? ...

convert any language into PHP sourcecode

Update: This question is a duplicate of http://stackoverflow.com/questions/375542/ The answers given here appear to be disjoint from those given at the other node, so this question was not (yet) deleted. If possible, please merge the answers here into the other node. Question: Is there any such thing as a programming language (other ...

Python for a hobbyist programmer ( a few questions)

I'm a hobbyist programmer (only in TI-Basic before now), and after much, much, much debating with myself, I've decided to learn Python. I don't have a ton of free time to teach myself a hundred languages and all programming I do will be for personal use or for distributing to people who need them, so I decided that I needed one good, str...

Challenging yourself as a programmer?

We used to be a Coldfusion development shop before hopping over to PHP in 2008, now we primarily develop custom Drupal websites. I enjoyed going from CF to PHP, but I feel like I am getting a bit stale. I have been looking at different things like Ruby, Python, Obj C (iPhone). The problem is, there just isn't enough time in the day to ...

Are typed functional languages faster?

I heard the binary compiled from typed functional languages runs faster than otherwise. Is it true? If so, why is that? Normally, do typed languages produce faster binaries? ...

Primary language - C++/Qt, C#, Java?

I'm looking for some input, but let me start with a bit of background (for tl;dr skip to end). I'm an IT major with a concentration in networking. While I'm not a CS major nor do I want to program as a vocation, I do consider myself a programmer and do pretty well with the concepts involved. I've been programming since about 6th grade, s...

Why aren't return types considered in Java method overloads?

Why return type of a method is not considered in method overloading ? Can somebody explain , how compiler checks for overloaded methods ? ...