programming-languages

35000 ft. Overview of Software Technologies

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 Another way of asking the same question: "Can someone talk about the technology ecospace"? What are the set...

What is the difference between a strongly typed language and a statically typed language?

And does one imply the other? Thank you! ...

How can I make a static method in Objective C??I

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(myString); How can I do the similar thing in Objective C? Thanks a lot ...

Which MS technologies would be suited for a data intensive application?

I'm a junior VB.net developer with little application design knowledge. I've been reading a lot of material online regarding different design patterns, frameworks, and methodologies. It's become a bit confusing for me. Right now I'm trying to decide on what language would be best suited to convert an existing VB6 application (with SQL...

Appropriate high level language to deal with binary data

Hi, I need to write a small tool that parses a textual input and generates some binary encoded data. I would prefer to stay away from C and the like, in favour of a higher level, (optionally) safer, more expressive and faster to develop language. My language of choice for this kind of tasks usually is Python, but for this case dealing ...

How to create a dir in the context of application deployed on tomcat with Grails ?

I have a Grails application and I use the Config.groovy to add a directory configuration accessible in my controller with grailsApplicatin.config.files.location My directory is "files" to add files in the folder. So I would like that all uploaded files comes into /MyApp/files. I create it on Bootstrap if not exists During the dev it's ...

Are raw C++ pointers first class objects?

According to Wikipedia: An object is first-class when it: can be stored in variables and data structures can be passed as a parameter to a subroutine can be returned as the result of a subroutine can be constructed at runtime has intrinsic identity (independent of any given name) Somebody had once told me that raw pointers are not f...

For what reasons do some programmers vehemently hate languages where whitespace matters (e.g. Python)?

C++ is my first language, and as such I'm used to whitespace being ignored. However, I've been toying around with Python, and I don't find it too hard to get used to the whitespace rules. It seems, however, that a lot of programmers on the Internet can't get past the whitespace rules. From what I've seen, peoples' C++ programs tend to be...

book with good examples for each implementation?

i've read about design patterns and it seems that there are a lot of different design patterns to use. i wonder if there are some books that acts like a reference. "you want to build a framework, then consider this, this and this pattern". also giving some examples. then jumps to another implementation eg. search engine and gives some ...

Programming Jargon or Terms d'art (duck punching, etc)

monkey patching, duck typing, and even duck punching are common terms d'art in the ruby world. What other fun terms have you come across while discussing code with other programmers? I'm not aware of many outside the ruby space, except perhaps $foo (to mean any substituted idea, like "my current $boss is pissing me off" or some such). F...

Beginner question: What is binding?

Hi, I was trying to understand the difference between early and late binding, and in the process realized that the concept of binding is nebulous to me. I think I understand that it relates to the way data-as-a-word-of-memory is linked to type-as-a-set-of-language-features but I am not sure those are the right concepts. Also, how does...

Are Scala "continuations" just a funky syntax for defining and using Callback Functions?

And I mean that in the same sense that a C/Java for is just a funky syntax for a while loop. I still remember when first learning about the for loop in C, the mental effort that had to go into understanding the execution sequence of the three control expressions relative to the loop statement. Seems to me the same sort of effort has to ...

How do you learn a class hierarchy quickly?

Hi, Something I don't enjoy about programming is learning a new API. For example, right now I'm trying to learn Windows Identity Foundation. Its frustrating because I'm going to spend the bulk of the time learning how a few classes work and actually only write several lines of code. In .NET, there are so many types that I seem to spe...

Generics and Constrained Polymorphism versus Subtyping

In this PDF presentation on Haskell Type Classes, slide #54 has 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 subty...

How to check with program in other programming-language (C,C++, etc) whether Java is installed and where

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 inst...

Learning Objective-C. Using Xcode 3.2.1. What is error: Program received signal: “EXC_ARITHMETIC”.

I am learning Objective-C using Stephen Kochan's excellent book "Programming in Objective-C 2.0". I am new also to Xcode. So far all my exercises have worked fine, but when I run program 7.6 FractionTest on page 153 I get the console message "Program received signal: "EXC_ARITHMETIC". The status shows that the program succeeded, but I do...

C++ String manipulation isn't making sense to me...

This particular assignment has to do with removing substrings from strings; I am trying some of the Stanford SEE courses online to learn some new languages. What I've got so far is below, but if text = "hello hello" and remove ="el", it gets stuck in a loop, but if i change text to text = "hello hllo", it works, making me think I'm doi...

Easy way to convert c code to assembly?

Is there an easy way (like a free program) that can covert c/c++ code to x86 assembly? I know that any c compiler does something very similar and that I can just compile the c code and then disassemble the complied executable, but that's kind of an overkill, all I want is to convert a few lines of code. Does anyone know of some program...

Programming Constructs History

Let us research and trace back the origins of language constructs. 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 gener...

What programming language should I use to create small, native Windows Applications?

I want to develop an application that runs on any Windows platform (Windows XP, Vista, or Windows 7) but does not require a dependency like the .NET Framework or JVM. I have given the other requirements below: Runs in any windows platform Must have GUI libraries to create windows/primitive controls The output .exe should also be very...