programming-languages

How to avoid if... else and switch cases

Hi guys, I have been programming for alot of time. Generally i program in some languages like PHP, ASP.net, Java, JavaScript and others. In all languages i have to use alot of if else statments . Like if value= 10 then ... if i review my code then i find alot of if conditions. So i would like to minimise them but how not sure. one poi...

Underscore is a valid identifier in c#.

Just wanted to share a piece of code with you guys that look odd but it perfectly valid in c#. class _________ { static void Main(string[] args) { int _ = 1; int __ = 2; int ___ = 3; int ____ = 4; int _____ = 5; int ______ = 6; int[] _______ = new int[]{ _,__,___...

What is the differences between the term 'object' and 'instance' in a programming language?

I cannot distinguish the two terms. How about you? ...

Is there an authorative programming language feature list?

I'm looking for things like Dynamic typing, Static Typing, Weak Typing, and Strong Typing. As well as OO features like polymorphism, inheritance, nested classes, inner classes, abstract classes, pure virtual functions. Also, things like reflection, static binding, dynamic binding, etc. However, I'm not really looking for things like ...

What is the best practice to work in unmanaged programming pattern

I have a query UPDATE dbo.M_Room SET //do something WHERE PK_RoomId= @RoomId AND IsActive=1 AND FK_DepartmentId =@DepartmentId Now suppose PK_RoomId is my Pk of M_Room and is autoincremented field. So according to this I could have used WHERE PK_RoomId= @RoomId rather than WHERE PK_RoomId= @RoomId AND IsActive=1 AND FK_Departme...

What is the best way for a programmer to approach learning a new language?

I know that this is quite subjective, but is it something that I have struggled with quite a bit. I have even been hesitant to try to learn a new language because of the reason I will outline below. If this gets closed I guess I will just grin and bear it but this is something I would like to have addressed. When I go to learn a new lan...

Programming Books on the Kindle

I recently graduated, as a learn in pick up new things in the workspace, I find myself constantly buying more and more reference books for learning. Which can be a hassle to carry around. How is the selection of technical books on the amazon kindle? If not do you recommend any other book reader? I am sorry if it isn't appropriate place...

Explain C++ SFINAE to a Python Guy

What is SFINAE in C++? Can you please explain it in words understandable to a Python programmer? Also, what concept in Python does SFINAE in C++ correspond to? ...

What features must a language have?

I've been playing with Clojure recently and it got me thinking... What are you looking for from a programming language before you will consider using it out of choice? What is it about a language that will make you take notice and look into it? Things that immediately sprang to my mind are the tools available. I find having a very good...

How to start building a new social network ?

I have an idea of a social network website and I will be working on it alone on my free time. My goals are : get introduced to web development to improve my skills (programming languages, frameworks, scalable architectures, ...) for my personal pleasure and to improve my CV transform the project into a startup if I realize it can be s...

Programming / scripting language aimed at non-programmers.

Does anyone know of any scripting / programming languages that are targeted at (or would be suitable for) use by non-techies? I have an application that I want non-technical users to be able to extend with simple scripts, however I'm struggling to find a suitable language to use, in particular: It should be forgiving to users (for exa...

What languages should I learn?

Possible Duplicate: What would be a good second language to learn (for a C# programmer) Which languages should I learn to diversify my knowledge base. I want to become a better coder and figure I should know some different langauges, different ways to tackle problems etc. I currently know C#, Vb.net, SQL fairly well and have e...

Connecting 2 Different JFrames with a Button

Hi there I would like to allow an existing JFrame (Calculating application) to print out a pre made JFrame (Error Shown = Textbox shows "Warning Wrong number entered") when I hit the calculating button and there is alphanumeric entered as a calculating value instead of just numeric numbers. I do not want to create a new JFrame within the...

How to validate if Text entered is a numeric number?

Hi there I have a calculation application which I need to validate the fields to check if the values entered are numeric numbers and not alphanumeric. I have some ideas about the codes: Please guide me if I have done anything wrong or seem noob as this is my first time trying out Swing. private void jTextField1ActionPerformed(java.aw...

Typed Dataset, Linq-To-Sql, Entity Framework, MVC are new to me. What among them to start with on new project

I am from a world where people dont want to come out of there comfort zone to learn new technologies and I am among them as an exception looking for something different. Since I am not getting any learning opportunities and hence decided to create an application. Here are my details. I have to create a new web application for personnel ...

A Good Book About the C Programming Language

Possible Duplicates: Best book to learn C from the beginning? The Definitive C Book Guide and List (Surely this has been asked here before? But I cannot find any question...) I am an experienced Delphi programmer, but would like to learn C and C++ (good and fun to know, even if I will stick to Delphi). I know what C++ books...

I suffer from programming language indecision

Possible Duplicate: How to select a programming language for a project? I'm in the process of starting a new programming project. It is not a large project, it's a rather an academic one. However, all my life, I've suffered from programming-language indecision. And I truly believe this is a pathological condition. I know two t...

Where to test my skills?

Is there a webpage whith good level where I can test my skills in this languages: Actionscript php c++ java ruby ruby on rails python pl/sql sql I'm looking for a multiplechooice page with question in language with the same or more skill level as it would be this one for an algorithm test: What is the time complexity of calculatin...

Which backend languages should my compiler target?

I've written a compiler for a general-purpose programming language that produces an optimised parse tree of its input. This intermediate format is then run through a preprocessor to translate it into a target language for subsequent compilation to a native executable. At present the only target language is C++, but I'd like to offer oth...

Would it be okay to learn Ruby On Rails?

I know HTML&Css, Little Javascript & Little PHP. I really want to get in the world of programming languages and I think Ruby looks way better then PHP. But I might be wrong. Should I stick learning PHP? Or should I go along with Ruby On Rails? ...