This tag is for questions that aren't specific to a programming language or environment.
This tag is for questions that aren't specific to a programming language or environment. This tag is not a tag for opinion questions, rather for questions asking about code structuring and design that is applicable in any language, or, for books that do not relate to a specific langugage, rather to programming as a whole, I.E.: Pragmatic Programmers, Code Complete.
We have a lot of programming languages. Every language is parsed and syntax checked before being translated into code so an abstract syntax tree (AST) is built.
We have this abstract syntax tree, why don't we store this syntax tree instead of the…
By now I work with asp.net and C#. I have done a decent work in Java as well. I am planning my career in such a way I should be language-agnostic someday. What are the things that I need to learn?
First would OOP paradigms as its speaks about the…
I'm an Italian developer, but I have a good understanding of English.
Sometimes, when developing an application targeted for an Italian audience, I wonder whether it is correct to use the Italian language in my code or not.
By "Italian language in…
When I first started programming, I assumed that I would one day get to the point where I would start a project by sitting down and sketching a UML diagram of all the classes, then pretty much stick to that. I have now been programming for a couple…
I was under the impression that by now everyone agrees this maxim was a mistake. But I recently saw this answer which has a "be lenient" comment upvoted 137 times (as of today).
In my opinion, the leniency in what browsers accept was the direct…
I have a friend who has a slightly greater amount of programming experience as me. We were talking about all the different programming technologies we use and Interface Builder came up in conversation.
Being of no programming background except for…
I've always felt lucky to work in a small programming team. I think the most I've worked with is 11 programmers. What is it like working on a project with hundreds of developers? Thousands? What does scale and what doesn't?
EDIT: Thanks for all…
I usually leave my email address as a courtesy in case someone wants to ask me a question about it later. Do other people leave more or less information than that? Does anyone leave a phone number??
I am reading hibernate and I came across statements like "JDBC connections open across multiple requests is not a good thing because it is an expensive resource ".
What is meant by expensive resource ?
Edit : I am adding what user unknown has…
I was recently reading The Pragmatic Programmer for the first time and I came across the concept of Tracer Bullets. I realized that I had coded according to this model in the past and just kind of filed the way I was working away in my brain as…
I'm a self taught C# programmer and up to now I haven't really been making use of Debug and Trace and feel as though I should use them. I've been leaning more on TDD to understand and get feedback from my code.
The .Net Framework Developers Guide…
Basically in both cases you have:
a well defined vocabulary
a syntax to respect
they both can express a business logic
they can define semantics
I don't think that will be fair to say "A programming language is only useful for a PC" or something…
let's assume - regardless from technology and programming languages - you have a type and the type has an association to another type. This association has the complexity of 'at least one' (1..n). How would you specify the behavior, when removing…
The Wikipedia article for domain-specific languages seems only to refer to actual languages.
However, I've heard the term "DSL" used to refer to unique-looking coding paradigms encouraged by libraries in "standard" languages.
From Ruby on Rails, for…
I was doing a code review today and came across a change that, while it works, "smells" to me.
Original code:
if(itemStatus.equals(ItemStatus.Preparing)){
orderStatus = OrderStatus.NotReady;
}
and the modified code looks like this:
switch…