programming-languages

Why we need to set the variable private / public?

Why don't make all variable private? All the variables must give a getter, setter to modify/read. Why leave the "public" keyword here? Except for convenient, any another reason for that? ...

How does the choice of programming languages affect the success of software products?

When evaluating the success of products such as the iPhone, iPad, Google, Twitter, YouTube, etc. are there objective criteria for determining the importance of the programming language(s) used to construct them? ...

Parsing a website

I want to make a program that takes as user input a website address. The program then goes to that website, downloads it, and then parses the information inside. It outputs a new html file using the information from the website. Specifically, what this program will do is take certain links from the website, and put the links in the ou...

correct function parameters designation

Every time i pass some parameters to a JavasScript or jQuery functon, i use some random letters. What are the correct letters for the corresponding variable types? function(o){} for example is for a object. But what are the other letters? Do someone have a list of those? ...

What efforts exist to use programming languages to model legal code?

Legalese can be considered an extremely inefficient language, and it certainly has ambiguities. What attempts exist out there to use programming languages (or any symbolic logic approaches, for that matter) to model legal code (such as laws and contracts)? ...

Presentation to under privileged students about what programming is. How? Any ideas.

Next week I have to give a presentation to a group of under privileged college students about the possibilities of a career in software development. These students have no exposure to programming what-so-ever. I have a good idea of how to tackle the non-technical, general portion of the presentation. However, notwithstanding my decade o...

Can you help me think of problems for my programming language?

I've created an experimental toy programming language with a (now) working interpreter. It is turing-complete and has a pretty low-level instruction set. Even if everything takes four to six times more code and time than in PHP, Python or Ruby I still love programming all kinds of things in it. So I got the "basic" things that are writ...

What can I do using awk that I cannot do in Perl?

I had read somewhere about one specific feature that is present in awk but not in Perl. I have failed in locating it again. I would appreciate it if anyone here can point it out. This might be a useless trivia, but I am still curious to know. ...

What is the most concise programming language?

What is the most concise programming language? in case a criteria is needed for conciseness: on balance requires the least amount of characters to create any given program. ...

Platform independent languages

Hello, I was searching a bit for another platform independent language like Java. Are there other P.I. languages? Thanks ...

Which languages do not have Global Vars?

Due to a wave of criticism to use Global Vars in my Java post, I want to use a language without global vars. One suggestion per answer, thank you. ...

Installing Python Script, Maintaining Reference to Python 2.6

Hi, I am trying to distribute my Python program. The program relies on version 2.6. I went through the distribution documentation: http://docs.python.org/distutils/index.html and what I have figured out so far is that I basically need to write a setup.py script. Something like: setup(name='Distutils', version='1.0', description='Py...

What does the C++ output of the HipHop PHP compiler look like?

Is it clean enough that you can discard the PHP and hand-optimize the C++ code? ...

Language Agnostic Basic Programming Question

This is very basic question from programming point of view but as I am in learning phase, I thought I would better ask this question rather than having a misunderstanding or narrow knowledge about the topic. So do excuse me if somehow I mess it up. Question: Let's say I have class A,B,C and D now class A has some piece of code which...

Specification, modeling and programming are principially the same, right?

In formal specifications based on abstract algebraic types and equational theory you use formulas of equational theory to specify theory. System which will satisfy those constraints is called in formal logic a model. Modeling is process of creating a model, which abstracts of some aspects, which are unnecessary details for a specific ca...

How to counter the "one true language" perspective?

How do you work with someone when they haven't been able to see that there is a range of other languages out there beyond "The One True Path"? I mean someone who hasn't realised that the modern software professional has a range of tools in his toolbox. The person whose knee jerk reaction is, for example, "We must do this is C++!" "Ever...

Can a program assign the memory directly?

Is there any really low level programming language that can get access the memory variable directly? For example, if I have a program have a variable i. Can anyone access the memory to change my program variable i to another value? ...

с# string analysis

I have a string for example like " :)text :)text:) :-) word :-( " i need append it in textbox(or somewhere else), with condition: Instead of ':)' ,':-(', etc. need to call function which enter specific symbol I thinck exists solution with Finite-state machine, but how implement it don't know. Waiting for advises. update: " :)text :)t...

key programming concepts and terminology in a variety of languages

i've been programming for a while, but have never had a formal computer science education. i would like to know if there is a resource that goes over the key programming concepts like construct, polymorphism etc, that would be applicable to different languages. also it would be highly helpful if the resource would give examples. ...

Pros and Cons of programming languages for XML & string manipulation

I don't mean this to be opinionated. What are serious pros/cons of various server-side languages in regards to creating/modifying xml. I'm currently researching new platform/language direction and we deal with a lot of xml. We also do a lot of string manipulation, what advantages/disadvantages do different languages have in regards to...