A programming language is an artificial language designed to express computations that can be performed by a machine, particularly a computer.

learn more… | top users | synonyms

0
votes
0answers
9 views

Multimethods vs Interfaces

Are there languages that idiomatically use both notions at the same time? When will that be necessary if ever? What are the pros and cons of each approach? Background to the question: I am a novice ...
0
votes
0answers
11 views

Razor view engine language specification

Is there a language specification for the Razor view engine used in the ASP.Net MVC framework? (I am interested in understanding more about how the Razor view engine syntax works from a programming ...
5
votes
1answer
94 views

Commutativity in operators

In C#, there is not in-built notion of commutativity in the language. That is if I define a simple Vector class for instance: public struct Vector { private readonly double x, y, z; ... ...
0
votes
3answers
29 views

checking/verifying python code

Python is a relatively new language for me and I already see some of the trouble areas of maintaining a scripting language based project. I am just wondering how the larger community , with a scenario ...
2
votes
1answer
154 views

Traits vs. Interfaces vs. Mixins? [closed]

What are the similarities & differences between traits, mixins and interfaces. I am trying to get a deeper understanding of these concepts but I don't know enough programming languages that ...
2
votes
2answers
53 views

When are Javascript events executed?

When I look at JS code like: socket = new WebSocket(server); socket.onopen = function (evt) { // STUFF }; Im always a little bit confused. If you ...
1
vote
0answers
67 views

Why do I need to write let to declare a variable?

In Haskell I don't need to write anything to declare a variable. In C++ I need to write auto, which as far as I know works in an analogous way to rust's let. Isn't it a step back to use let to ...
0
votes
1answer
16 views

moving human 3d model that was made in blender/sculptrist in java

I was doing a human 3d model in sculptris and blender and i wanna ask how do programmers make the 3d model run/move with in the java or other programming langauges. do they do it within the ...
0
votes
1answer
19 views

Redirection of stdout to stdin in other languages that BASH when you fork or execute a program

I need to code a program which execute several subprograms, using pipes and redirection. So since I need to use some data structures and functions I want to avoid use Bash for that matter. So far, I ...
2
votes
4answers
81 views

Difference between C and JAVA program

I have two examples of the same program. This program has a function which creates an array and returns the pointer to array. First program (in C): #include <stdio.h> #include <stdlib.h> ...
1
vote
1answer
73 views

Why size of void pointer is 4 on Windows 64-bit platform

I have the following program that prints 4. I am running this program on Windows 7 64-bit. Shouldn't it print 8 for 64-bit platform? Thanks in advance. #include <stdio.h> void main() { ...
1
vote
4answers
143 views

Is there a way to refer to the current function in python?

I want a function to refer to itself. e.g. to be recursive. So I do something like that: def fib(n): return n if n <= 1 else fib(n-1)+fib(n-2) This is fine most of the time, but fib does ...
5
votes
5answers
55 views

Is string “1a” an error for lexical analyser or not?

I am making a basic lexical analyser in Java for my semester project and I am at conflict on a concept with my subject teacher. My view is that in general if an input like "1a" is given to lexical ...
1
vote
1answer
27 views

Do all interpreted/dynamically typed languages store everything on the heap?

I first wondered why a language would store everything on the heap, when it has serious performance cost. For example, Java folks avoid creating unnecessary objects because the performance differences ...
-1
votes
1answer
24 views

How do you make things on your website not viewable on your mobile website?

I have a play game tab on my phone but I don't want it to be on the mobile view since there's no point since it won't work.... How can I take the tab off? I don't know anything about the mobile view ...

1 2 3 4 5 247
15 30 50 per page