language-agnostic

How to define the version number of a software?

醉酒当歌 提交于 2019-12-21 18:15:12
问题 What is the best method to determine the version number I should use for a software or component? Is there a general rule to set version numbers? I'm pretty sure it is a basic question but I didn't find anything useful after searching a while. 回答1: I've been doing this as an interim until I find a better solution. I don't build many large applications, mostly reports and smaller macros, but it's still important for me to keep track of changes and versions. [Current year].[Current month].

How to define the version number of a software?

£可爱£侵袭症+ 提交于 2019-12-21 18:14:15
问题 What is the best method to determine the version number I should use for a software or component? Is there a general rule to set version numbers? I'm pretty sure it is a basic question but I didn't find anything useful after searching a while. 回答1: I've been doing this as an interim until I find a better solution. I don't build many large applications, mostly reports and smaller macros, but it's still important for me to keep track of changes and versions. [Current year].[Current month].

Multi-site login ala Google

旧街凉风 提交于 2019-12-21 18:01:21
问题 Not sure if the title is quite right for the question but I can't think of any other way to put it.. Suppose you wanted to create multiple different web apps, but you wanted a user who was logged into one app to be able to go straight to your other app without re-logging in (assuming they have perms to look at the other app as well). If I'm not mistaken, if you're logged into gmail you can go straight to your iGoogle, googleReader, etc without re-logging in (if you set it up right). How would

Does profile-guided optimization done by compiler notably hurt cases not covered with profiling dataset?

☆樱花仙子☆ 提交于 2019-12-21 17:42:05
问题 This question is not specific to C++, AFAIK certain runtimes like Java RE can do profiled-guided optimization on the fly, I'm interested in that too. MSDN describes PGO like this: I instrument my program and run it under profiler, then the compiler uses data gathered by profiler to automatically reorganize branching and loops in such way that branch misprediction is reduced and most often run code is placed compactly to improve its locality Now obviously profiling result will depend on a

Sorted list difference

 ̄綄美尐妖づ 提交于 2019-12-21 12:40:02
问题 I have the following problem. I have a set of elements that I can sort by a certain algorithm A . The sorting is good, but very expensive. There is also an algorithm B that can approximate the result of A. It is much faster, but the ordering will not be exactly the same. Taking the output of A as a 'golden standard' I need to get a meaningful estimate of the error resulting of the use of B on the same data. Could anyone please suggest any resource I could look at to solve my problem? Thanks

Regex - match a string without leading and trailing spaces

烂漫一生 提交于 2019-12-21 12:21:41
问题 Building an expression that will reject an untrimmed input string. Have a group of white-listed symbols, including whitespace . But it cannot be used at the first or at the last one position. However, it may be used between any leading and trimming white-listed symbol in any amount. Have a following expression: ^[^\s][A-Za-z0-9\s]*[^\s]$ ... but it doesn't work in several reasons, at least it still matches at leading and trailing position any non-whitespace symbol even if it's not white

what is meant by left most derivation?

淺唱寂寞╮ 提交于 2019-12-21 10:39:13
问题 Please help me understand what is meant by Left Most Derivation the second L in LL Parser . Explain it with a simplest example. I saw the following picture explaining Left most derivation but I do not understand it : 回答1: The grammar rules are displayed on the left with Nonterminal symbols and terminal symbols. Nonterminal symbols should be Capital letters, everything else is typically a terminal symbol. In the example N and D are nonterminal and 0-9 are terminals. A Left Most Derivation

Class member order in source code

笑着哭i 提交于 2019-12-21 10:18:13
问题 This has been asked before (question no. 308581), but that particular question and the answers are a bit C++ specific and a lot of things there are not really relevant in languages like Java or C#. The thing is, that even after refactorization, I find that there is a bit of mess in my source code files. I mean, the function bodies are alright, but I'm not quite happy with the way the functions themselves are ordered. Of course, in an IDE like Visual Studio it is relatively easy to find a

What are “High-level modules” and “low-level modules” (in the context of Dependency inversion principle)?

蹲街弑〆低调 提交于 2019-12-21 10:16:27
问题 I was reading Wikipedia's definition of Dependency inversion principle, and it uses two terms High-level modules and low-level modules , which I wasn't able to figure out. What are they and what does Dependency inversion principle have to do with them? 回答1: The definition of those are given in the introductory sentence: high level: policy setting low level: dependency modules. In laymen's terms: high level modules depend on low level modules, but shouldn't depend on their implementation. This

What are “High-level modules” and “low-level modules” (in the context of Dependency inversion principle)?

我只是一个虾纸丫 提交于 2019-12-21 10:16:16
问题 I was reading Wikipedia's definition of Dependency inversion principle, and it uses two terms High-level modules and low-level modules , which I wasn't able to figure out. What are they and what does Dependency inversion principle have to do with them? 回答1: The definition of those are given in the introductory sentence: high level: policy setting low level: dependency modules. In laymen's terms: high level modules depend on low level modules, but shouldn't depend on their implementation. This