I'm writing a light Unicode library, but I'm stuck as to whether to write it for C, or C++? C++ has the benefit of operator overloads and better class handling, but many programs are written in plain C and it would seem nice to be compatible with C. How should I decide what language to write this for?
By the way, I know that there are m...
In most modern OO languages chaining methods together is common, and IMHO elegant, practice. In jquery, for example, you often see code like:
$('div').addClass('container').css('color', 'white').length
Does writing your objects to allow this have a name?
...
I don't have much experience with statically typed languages (currently learning Scala and loving it!) but one thing I've noticed is that they don't ever seem to have anything like Ruby's method_missing or ColdFusion's onMissingMethod. Is there some inherent limitation in statically typed languages that prevent or make this difficult?
...
Hi!
I have often read that some programming languages are clear than others and I asked myself several times if there is an objective way to measure the clarity of a language in order to design, given an abstract syntax, a concrete syntax as clear and human friendly as possible. Perhaps exist some kind of designs patterns for that purpo...
I'll start by saying I'm self-taught, everything I know I've picked up from programmers in the family, self interest and trial and error.
I'm currently reading Cocoa Programming for Mac OS X from Aaron Hillegass, but I'm unable to stay interested. I think the main reason I'm losing interest is the absence of the main reason I like Java...
Why do all Scala classes inherit from ScalaObject although that trait is completely empty and has no (visible?) functionality compared to AnyRef, which does define additional methods?
Won't that slow down method calls like equals() or hashCode() because it will need to take another class into consideration (which might override the meth...
what is your faviorate langauge and why?
...
Suppose I would like to create a new programming language by only adding a new primitive datatype to C, say boolean. What would be needed to do this?
EDIT: I'm not making myself very clear here. I would like to design a new language, with the syntax being exactly like C, but with a bunch of new primitive datatypes. This language should ...
I'm working on converting a mathematical formula into a program. This formula is called as optimal pricing policy for perishable products. I've seen this in an article and it is called Karush-Kuhn-Tucker condition. Somehow I lost all my maths skills and unable to understand the formula explained in that. I'm able to understand how to com...
I frequently find myself writing small programs to parse text files (typically CSV files) and find that I always fall back on writing these parsers in Java simply because that's the language I'm most familiar with.
But since this sort of task keeps coming up, what language would people recommend I use for this kind of task? I'm happy to...
As an exercise my team is looking at learning functional programming. One of the factors to choose a language is its support in Eclipse. Any language with Eclipse plug-in is fine but what language offers the best free plug-in?
Bonus question: the best online/book tutorial for this language.
...
hello, I am new to UNIX programming and had the following problem with UNIX vi editor.
Can you please tell me the UNIX command required to delete text delimited by { and } where both characters occur after the current cursor position. Thanks.
...
I'm considering learning a new language as an alternative to PHP. I'm considering Python and Ruby. Which one is a better language based on the following four criteria, and any other qualifiers you may have?
Which is more stable?
Which is more scaleable?
Which is more secure?
Which is easier to learn?
EDIT:
Keeping the original quest...
Possible Duplicate:
Learning to write a compiler
I looked around trying to find out more about programming language development, but couldn't find a whole lot online. I have found some tutorial videos, but not much for text guides, FAQs, advice etc. I am really curious about how to build my own programming language. It brings ...
Hi,
I started my early days programming in a Macintosh 128k (I was 10) and I don't quite remember the programming languages used. Any one does?
I would like to know the different programming languages available at that time for that platform.
Thanks
...
I like recursion, but at Java you meet an dead end at some point. E.g. I had a case where recursion with ~100K iterations wouldn't work (StackOverflowError). Badly I had to switch to annoying "imperative looping" for this runtime stack-limit reasons.
I wonder how other (especially functional) languages bypass stack-overflowing during r...
I always thought that there was no real language class below type-3 grammars, but now I found the "Language identification in the limit" model which allows learning of pattern languages but not regular languages.
What exactly are pattern languages and what's their difference from regular languages?
...
Hey there,
What in your opinions, would be the best language to create a large (massive..) 3d voxel based grid in?
i.e. like Minecraft (http://www.minecraft.net/)
I note that Minecraft was created in Java, this obviously has it's disadvantages. Help me make a decision! :)
p.s. This is community wiki, so no points gained, just after ...
Test here: http://jsperf.com/test-for-speed-of-various-conditionals
I'm interested if others are getting the same results, and what people might think of why the results vary (esp. w/ Safari) across browsers. Interesting is how democratically Firefox handles the various cases.
Please inform if there is something terribly wrong with my ...
I want to make a coupon and i already have the name or email address of the user, i want to generate the link to a image (the coupon) plus the name and/or email so it's visible into the coupon.
This is for personalization and being able to control the coupons.
Thanks.
...