I can't help but remember how I enjoyed the silence when all aircraft were grounded during the pandemic. Aircraft engines are _still_ very loud.
xtofl
Posts
-
A greener aviation alternative -
do any of you others have little coding mantras that save your behind?* How would I explain this code to the cleaning personnel * If you can explain how it's done, you can script it
-
Units of MeasurementSince all these prefixes are from ancient Greek, I presume the 32-core would be called a triacontakaiduo-core (cf. [Greek Numbers and Numerals (Ancient and Modern](http://www.foundalis.com/lan/grknum.htm)). But honestly... if you want people to understand you, go for "thirtytwo-core" :)
-
I hate JavaScriptReally? No syntax hilighting? `function` is blue and `funtion` is grey. Or you're using the wrong editor. Otherwise, prepend this to all your javascript:
var funtion = function(){ throw new Error("you typed _funtion_ instead of _function_"); };
var x = funtion() {}; -
Github AtomThe '...' probably meant 'even though' :)
-
Python, Good or Snake in the grass??'Industrial Strength': if you refer to performance, I wouldn't worry so much. Python is compiled to pretty fast code (take a look at http://stackoverflow.com/questions/672857/is-python-slower-than-java-c[^]). If you want to compare C# to Python, take a look here: http://onstartups.com/tabid/3339/bid/128/Python-vs-C-Business-and-Technology-Tradeoffs.aspx[^]. Python is way more than a pet language for sure. It's been there for ages, it has a huge community to support you, and a 'batteries included' standard library (including serialization, metaprogramming, async programming, ...).
-
Embarrassing code admission of the day (or why C.S. is good for you)From the msdn (msdn entry on List.RemoveAt) "This method is an O(n) operation, where n is (Count - index)." Keeping Count as close as possible to index may improve performance with a factor O(n^2) :)
-
i have a question about for_eachThis is called 'generic' programming. The term 'generic' means that the definition of the
for_each
function does not assume anything else from the template argument than that it has anoperator()( T )
. If they would have implemented it using a function pointer, # they would have needed to specify the function pointer's type (e.g. void (*) (int)) and thus would have disallowed any other type of function (remember C) # they would have disallowed the use of stateful functions (e.g. accumulators), like often needed for thealgorithms
Also, the usage of templates greatly improves the optimizer's chances: it knows _at compile time_ what the body of thefor_each
block is going to be, so it can often skip parameter pushing etc..., hence reducing function call overhead. -
Object Oriented c++ Visual Studio Problem.An often ocurring syntax error: a class declaration should end with a semicolumn.
// -> no semi column => compiler sees this:
class C {
} void f(){
}
// which is invalid syntax.