Why do system objects like nil, true or false have a fixed object id in Ruby. Also I tried printing out the object ids of numbers, they are the same and follow an odd number sequence pattern. Any explanation for this?
[nil,true,false].each { |o| print o.object_id, ' '}
4 2 0 => [nil, true, false]
>> (0..50).each { |i| print i.object_id...
I am used to work with MSVS 2008 and 2010 for some time now. I did some projects using C# and C++ but I am still a rookie.
For my next project I have to develop using the PAWN language and would like to use MSVS as my IDE. I did some research on the subject but since PAWN is not that popular I didn't find any satisfying solution.
My qu...
I've got to the section on operators in The Ruby Programming Language, and it's made me think about operator associativity. This isn't a Ruby question by the way - it applies to all languages.
I know that operators have to associate one way or the other, and I can see why in some cases one way would be preferable to the other, but I'm s...
Of the object-oriented languages I know, pretty much all but C++ and Objective-C compile to bytecode running on some sort of virtual machine. Why have so many different languages settled on compiling to bytecode, as opposed to machine code? Is it possible in princible to have a high-level memory-managed OOP language that compiled to mach...
I recently graduated with a degree in Networking and Systems Administration, and I am currently waiting to start a job in that same field. I am a hobbyist programmer, but I enjoy it very much and would like to get more serious about it. What I am struggling with is hard for me to put into words exactly, but I will try.
During school, I...
I come from a C/Unix background, with a lot of experience in shell scripting, and some on Perl, elisp, etc. too. But now I'm getting into some work where I'll need to be developing interactive web-based interfaces, and I need to learn JavaScript. My problem is that all the resources I've found online for learning JavaScript seem to be ta...
When all you have is a pair of bolt cutters and a bottle of vodka, everything looks like the lock on the door of Wolf Blitzer's boathouse. (Replace that with a hammer and a nail if you don't read xkcd)
I currently program Clojure, Python, Java and PHP, so I am familiar with the C and LISP syntax as well as the whitespace thing. I know i...
hello all,
i have no idea about the nokia app all i know it is used the c++ and QT SDK correct me if I am wrong.
any references or book will be great.
Thanks
...
Possible Duplicate:
Simplest language to make an interpreter for
I'm wondering what the simplest programming languages are, excluding Basic and Brainf**k?
With that I mean a simple and easy to parse Syntax and a small standard library. I'm not looking at esoteric stuff, I assume "Turing completeness" is what I want.
(I'm ask...
Mostly out of curiosity: Which languages that are not solely functional (I'm also interested in multi-paradigm languages - I know that Ocaml and F# are ML dialects with OO added, so they inherit the algebraic data types from ML) have algebraic data types (or something similar) and pattern matching?
They can be kind-of emulated using enu...
I'm going to reveal my ignorance here, but in my defense, I'm an accounting major, and I've never taken a computer science class.
I'm about to start a new project, and I'm considering using Python instead of PHP, even though I am much more adept with PHP, because I have heard that Python is a more powerful language. That got me wonderin...
Hello everyone!
I feel like upgrading my programmig skills, but I don't know where to start.
I finished my Education as an IT Engineer in january this year. My primary programming skills are: .NET, java, umbraco and c/c++.
So what should I look into?
Any ideas will be appreciated!
...
Currently I am thinking and searching for the adequate programming languages for a project
(more than one programming language will be used).
Questions:
Is there a big mistake presented in my list (other than my belief of go as a suitable language)?
Any tipps before I start?
project:
opensource project with semantic web (including rdf/...
Possible Duplicate:
An Ideal Keyboard Layout for Programming
As a programmer I don't type as much human language as normal users. In fact, a lot of what I type are ASCII special characters such as $();:?=+-'"\[]{}<>. Needless to say, QWERTY is not good at programming.
function decode($t)
{
return preg_replace('/<(\/)?(...
I am doing a Neural Network project as my final year undergraduate project.
The idea of the project : A very simple robot with 2 motors, and two ir and bump sensors will traverse a environment with the use of a Neural Network which is in a computer.
The main requirement is to observe possibly with a suitable GUI the learning process an...
I am currently working on an application that generates code dynamically depending on the options wich select the final user. I'm looking for a disclaimer-warning text, that i can include in the header of the code generated by my application, ideally should also indicate that there is no liability for any damage or loss of data . someth...
What are some uses of the modulus operator? I know that it calculates the remainder in division so really I am asking what uses does the remainder have?
So far I have used it to check if a number was even and alternate colors on a table.
...
Hello,
I am software engineering student, and we have assignment to create a system, which should be cross-platform, and should be implemented as a desktop app, and moreover, same interface and capabilities should be ported to internet(though I can choose the we server's OS).
I have decent skills in python/django and ruby/rails, but pyth...
I have been searching through the website looking for the best language for beginner game development. Many people say a C based language, others suggest Python.
Normally I would just pick one, but this is my dilemma. I am not sure if this is correct, but I read from programmers on here that C is much faster at 3d render, whereas Python...
Sorry if a question like this was posted before, i searched but couldnt find anything.
I just finished college and im unemployed however im taking a year out to improve and become confident in my programming. My goal is to have a job by June of next year. I've learnt OOP with Java in college and im just starting to learn PHP with OOP. T...