Questions tagged [language-agnostic]

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.

Book list

549 questions
125
votes
14 answers

Why don't we store the syntax tree instead of the source code?

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…
Calmarius
  • 1,913
55
votes
4 answers

What should I do to be language-agnostic?

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…
Gopi
  • 3,123
41
votes
11 answers

When should the programmer's spoken language be used during development?

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…
Bobby
  • 549
39
votes
7 answers

Is it a bad sign that I am often redesigning as I develop a project?

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…
27
votes
11 answers

Should a server "be lenient" in what it accepts and "discard faulty input silently"?

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…
18
votes
8 answers

Should laying out a GUI graphically be considered "cheating?"

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…
esqew
  • 805
17
votes
8 answers

What's it like to work in a large programming team?

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…
15
votes
10 answers

Should we leave our contact details in source code?

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??
11
votes
4 answers

What makes resources "expensive"?

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…
8
votes
3 answers

What are some good criteria for using Tracer Bullets?

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…
5
votes
1 answer

How Do You Effectively Use Trace And Debug

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…
Grokodile
  • 203
5
votes
7 answers

if you were asked to answer to the question " what is the difference between the English language and a programming language" how you will respond?

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…
user827992
  • 1,175
4
votes
3 answers

Removing elements of an 'at least one' association

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…
Benni
  • 896
  • 2
  • 7
  • 15
2
votes
5 answers

Is there an accepted term for a DSL implemented in a "standard" programming language?

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…
2
votes
4 answers

Using a switch statement in place of multiple ORs in an if statement

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…
Kevin
  • 374
1
2