Annotated Posts

-1

How is H(P,P)==0 correct even though P(P) stops running? (a) The reason that P of int main(){ P(P); } it is construed as halting is that it reaches its final state. (b) The reason that it reaches its final state is that H(P,P) returns zero. (c) The reason that H(P,P) returns zero is that the correct pure simulation of its input can't possibly reach its ...


2
votes
1answer
137 views
+50

What is the most suitable data structure for IPv4 addresses with intersecting ranges?

Mostly in all routers and operating systems the Longest Prefix Match algorithm is used for searching the trie of IPv4 addresses. Packet filters like Iptables don't need some special data structure for ...
0
votes
0answers
114 views
+500

How to implement a rule-based decision maker for an agent-based model?

I have a hard time understanding how to combine a rule-based decision making approach for an agent in an agent-based model I try to develop. The interface of the agent is a very simple one. public ...
126
votes
16answers
11k views

Should I remove unreferenced code? [closed]

I'm working on a medium sized (100k lines) code base, it's all relatively recent code (less than a year old) and has good unit test coverage. I keep coming across methods which are either no longer ...
18
votes
2answers
9k views

Open Source License that prevents re-selling [closed]

I have an open source project that is a add-in to TFS (ie it is for developers and those using TFS.) It is currently using the GPL. But it occurs to me that the GPL does not really represent what I ...
53
votes
20answers
21k views

Does Object Oriented Programming Really Model The Real World? [closed]

I've seen it commonly repeated the object-oriented programming is based on modeling the real world but is it? It seems to me that is not true of anything outside of the business layer. My GUI classes/...
40
votes
9answers
4k views

Should Professional Development occur on company time? [closed]

As a first-time part-time software developer at a small consulting company, I'm struggling to organise time to further my own software development knowledge - whether that's reading a book, keeping up ...
127
votes
15answers
168k views

How is a “Software Developer” different from a “Software Consultant”? What makes a consultant? [closed]

I have seen a lot of people claiming themselves to be a "software consultant". These consultants do what a normal software developer does, write code, estimate tasks, fix bugs and attend meetings etc. ...
356
votes
19answers
56k views

How would you know if you've written readable and easily maintainable code? [closed]

How would one know if the code one has created is easily readable, understandable, and maintainable? Of course from the author's point of view, the code is readable and maintainable, because the ...
115
votes
17answers
23k views

Why should 'boneheaded' exceptions not be caught, especially in server code?

I am confused because in quite a few places I've already read that the so-called 'boneheaded' exceptions (ones that result from bugs in code) are not supposed to be caught. Instead, they must be ...
25
votes
2answers
5k views

When was the earliest time that the term “snake case” was used? [closed]

Many people use the term Snake Case to describe variables or other symbols with_the_form_of_underscores. In the past week, I've launched several broad searches. I can't find anything about the origin ...
33
votes
6answers
118k views

UUID collisions [closed]

Has anybody done any real research on the probability of UUID collisions, especially with version 4 (random) UUIDs, given that the random number generators we use aren't truly random and that we might ...
48
votes
11answers
10k views

The meaning of asynchronous vs synchronous [closed]

What is the meaning of the words asynchronous and synchronous in computer science? If you google the meaning of the words you will get the following: Asynchronous: not existing or occurring at the ...
78
votes
4answers
58k views

Are there any statistics that show the popularity of Git versus SVN? [closed]

I'm writing an essay, and would like to have some empiric evidence, perhaps longitudinal data where the popularity of these technologies is compared over a period of some years. Are there any ...
94
votes
7answers
452k views

What is the difference between these senior software engineer titles? [closed]

I'm currently a senior research software engineer at a large company and am being offered a "senior staff engineer" position somewhere else. I am not sure if the new position's title conveys a ...
20
votes
3answers
17k views

Why would I use Angular? [closed]

From the basic Angular tutorial, it seems like all it does is fetch some JSON from an API and display it. Also, there's its double binding magic. But why would I use it instead of a backend solution (...
81
votes
5answers
73k views

Are there pre-made commercial software licenses to choose from? [closed]

I currently have an open source project that is licensed under GPLv3. I'd like to dual license it, so I can offer it for commercial use. Are there any resources for choosing or creating a commercial ...
7
votes
3answers
23k views

An example of a beginner-level Algorithm, intermediate level Algorithm and a complex/expert level Algorithm? [closed]

I'd like to get a sense for the range of complexity that algorithms fall into. I think it would be interesting and helpful for those, like me, trying to better understand how algorithms are formulated ...
12
votes
2answers
37k views

Recommended reading for (Object Oriented) application design architecture? [duplicate]

Possible Duplicate: Best books on the theory and practice of software architecture? In life it doesnt matter if you do one thing for 15 years. You will end up waking one day and asking stuff that ...
302
votes
19answers
190k views

Should I return from a function early or use an if statement? [closed]

I've often written this sort of function in both formats, and I was wondering if one format is preferred over another, and why. public void SomeFunction(bool someCondition) { if (someCondition) ...
168
votes
28answers
62k views

How to be a zero-bug programmer? [closed]

My boss has always told me that a good programmer should be able to ensure that the code he or she changes is reliable, correct, and thoroughly self-verified; that you should completely understand all ...
98
votes
18answers
19k views

Are unit tests really that useful? [closed]

I just graduated with a degree in CS and I currently have a job as a Junior .NET Developer (C#, ASP.NET, and web forms). Back when I was still in university, the subject of unit testing did get ...
59
votes
25answers
5k views

How big of a team do you need to benefit from bug tracking software? [closed]

My development team just grew by 100% (from 1 developer to 2). My new cohort want to invest in bug tracking software. Is there benefits to such software for such a small team?
30
votes
5answers
2k views

Introducing “20% time” at a workplace [closed]

20% time it's the culture of an employer allowing it's employees to spend 20% of their time working on projects that they find interesting - it may be inventing a new app, or improving an existing ...
80
votes
2answers
19k views

Studies on how noise affects productivity of programmers [closed]

Does anyone have any links to studies that show how noise affects the productivity of programmers? Specifically I would like to see how/if productivity rises when noise levels decrease. As pointed in ...
0

Do they need all the data? If yes, what they can do is creating the database but empty, then add some data they need to be able to work. Like this, they save bandwidth and time. Or when you perform backups, you create one but you remove the unnecessary part. It will make your backup lightweight and faster to download.


28
votes
4answers
7k views

Is there an industry standard for gender model other than male and female?

I am modeling a database that should be used as generic non-functional requisite for all services of the startup company, like persons, users, services and commercial data like coupons, signature ...
26

Sometimes the term gender may be used when sex is meant. Sex is defined by a person's biological traits whereas gender is determined by identity. The standard for sex is codified by the ISO/IEC 5218 standard [download]. There are four available values 0 = not known, 1 = male, 2 = female, 9 = not applicable Similar values can be given for gender male ...


127
votes
14answers
39k views

Is there any technical reason why, in programming, the default date format is YYYYMMDD and not something else?

Is there any engineering reason why is it like that? I was wondering in the case of a RDBMS that it had something to do with performance, since a "YEAR" is more specific than a "MONTH", for instance: ...
71
votes
15answers
69k views

Is it ever ok to have an empty catch statement?

I thought about it and could not come up with an example. Why would somebody want to catch an exception and do nothing about it? Can you give an example? Maybe it is just something that should never ...
60
votes
18answers
30k views

Working on someone else's code [closed]

I have hardly a year's experience in coding. After I started working, most of the time I would be working on someone else's code, either adding new features over the existing ones or modifying the ...
109
votes
15answers
17k views

When to optimize for memory vs performance speed for a method?

I recently interviewed at Amazon. During a coding session, the interviewer asked why I declared a variable in a method. I explained my process and he challenged me to solve the same problem with fewer ...
-5
votes
2answers
361 views

How is “CURSES” a pun for “cursor optimization”? [closed]

I've begun implementing a support library for curses in Python. Along the way, I became curious why the project was called "curses" to begin with. According to one NCURSES documentation, the name is ...
60
votes
5answers
4k views

How to explain to a non-technical person why the task will take much longer than they think? [closed]

Almost every developer has to answer questions from business side like: Why is going to take 2 days to add this simple contact form? When a developer estimates this task, they may divide it into ...
18
votes
5answers
8k views

Are missed deadlines common in programming jobs? [closed]

It was my freelancer job at oDesk. I have done several jobs earlier in given time, but is was the first time I missed the deadline. It was a very lengthy job and I tried my best but I still missed the ...
140
votes
18answers
47k views

Is there an excuse for short variable names?

This has become a large frustration with the codebase I'm currently working in; many of our variable names are short and undescriptive. I'm the only developer left on the project, and there isn't ...
80
votes
11answers
14k views

Does programming in general become easier to read, write and understand as you gain experience? [closed]

I'm a beginner in programming and I've been reading books, studying, reading articles, and whatnot. I'm getting great results since I've started learning programming, and when I was a beginner I used ...
200
votes
17answers
59k views

What is meant by “Now you have two problems”?

There is a popular quote by Jamie Zawinski: Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. How is this quote supposed to be ...
31
votes
2answers
387k views

How to describe your skill levels in the CV? [closed]

What are possible/standard words to describe your skill levels in different programming languages in your CV? I currently use these three: expert advanced beginner I do not consider myself an expert ...
198
votes
9answers
295k views

What's the difference between Entry Level/Jr/Sr developers? [closed]

Other than title and pay, what is the difference? What different responsibilities do they have. How knowledgeable/experienced are they? What is the basic measure to determine where a developer fits ...
7
votes
1answer
26k views

Template for Knowledge Transfer [closed]

I have been working for more than a year for this company. Now they want me to create a KT Document for reference. Is there any template available for me to document the coding done by me..
135
votes
27answers
29k views

Is source code generation an anti-pattern?

If something can be generated, then that thing is data, not code. Given that, isn't this whole idea of source code generation a misunderstanding? That is, if there is a code generator for something, ...
13
votes
6answers
20k views

How to practice object oriented programming? [closed]

I've always programmed in procedural languages and currently I'm moving towards object orientation. The main problem I've faced is that I can't see a way to practice object orientation in an effective ...
50
votes
5answers
26k views

When you should NOT use Regular Expressions? [closed]

Regular expressions are powerful tool in programmer's arsenal, but - there are some cases when they are not a best choice, or even outright harmful. Simple example #1 is parsing HTML with regexp - a ...
15
votes
16answers
2k views

What Things are Most Conducive to a Productive Programming Environment? [closed]

Many of us have worked in multiple environments over the years, and have found that some are more productive than others. In many cases, it's not directly related to the abilities of the developers, ...
48
votes
7answers
18k views

How do you combat programming fatigue? [closed]

Not fatigue as in 'I need sleep' but fatigue as in 'I just can't be bothered anymore' which usually sets in when you hit roadblocks in whatever project you're working on, generally the closer you get ...
16
votes
10answers
2k views

Is outsourcing code more expensive in the long term? Does it harm code quality? [closed]

I am aware of a company that owns the intellectual property of a decent software product and makes an excellent income from licensing per annum. However, the director (non technical) complains about ...
22
votes
4answers
7k views

Are there any studies on the Efficiency/Effectiveness of Agile vs Waterfall [closed]

In a meeting the other day a claim was made that agile was only 60% as efficient in development time when compared to waterfall. I am not looking to validate or refute this claim. I am interesting ...
36
votes
3answers
220k views

What's the difference between junior, middle, and senior developers? [duplicate]

Possible Duplicate: Whats the difference between Entry Level/Jr/Sr developers? There seems to be three common java programmer qualification levels: Junior Middle Senior What makes a programmer ...
40
votes
9answers
53k views

What's the difference between a “developer” and a “programmer”? [duplicate]

What's the difference in this terminology? Is one considered more professional than the other?
1
2 3 4 5
12