204 karma · joined September 22, 2015
- Did you ever see any project finished ahead of time?
- How many project did you see where scope was shrinking during execution vs. expanding? sum(0) = 0
when n != 0: sum(n) = n + sum(n-1)
is kind of clearer. But quite often it is not that easy to give an recursive solution for an iterative problem. When you want to change every even number in an array/list from n to n+1 you can somehow do it recursively, but it is mor obvious to iterate over the elements (which in many functional languages can be expressed by "apply" or some similar function).When your read a program it puts cognitive load on your brain. How much is a bit depended on your education and experience on the subject, but what you have to do is to transfer what you are reading to your mental model what the program is actually doing. Your capacity of things you can process in your brain is limited so you can fairly assume that the more load is put on your brain the more of that capacity is used, and the nearer your are to your maximum capacity the more difficult and exhausting is the task to understand the program.
When you need to decode a "{" or a "@" in the program to a actual processing step. you can assume that
if (a) {
b;
}
else {
c;
}
is more difficult to decode compared to IF a
THEN b
ELSE c
ENDIF.
simply the latter one is nearer to your natural language (I actually think to replace "ELSE" with "OTHERWISE" would be even better) and the "ELSE" implies both the opening and the closing braces.You can argue if
a ? b : c;
is more readable, I would argue it is not.It's not like special characters are always bad. For example
a->b
works quite well when a is pointer and the arrow "->" symbolizes graphically where a is actually pointing at. But nowadays we languages which use "->" and "=>" for different things and for their similarity they interfere which each other when doing the decoding and adding to the cognitive load.When designing a language you have to trade of brevity or number of characters to type and readability. Most, if not all languages, nowadays opt for brevity because it appeals to the developers to type less and makes it more easy have more complex functionality in one statement. The price you pay is readability and finally maintainability of the program.
I think the first programming language which failed by its overuse of badly readable syntax was Perl, which was replaced by the much more easy to read Python.
I personally believe the psychology of programming is an under-researched subject
Disclosure: Alongside to CS I studied cognitive psychology when I attended university.
Likewise I used Thunderbird privately, and still use as my POP3 based mail archive, I find the UI not as bad as outlook, but still not really practical my everyday needs.
So I ended up with using Vivaldi in spite of not being a believer of integrating mail an browsing in one program.
I felt the meals were too much designed from the marketing department: Looked nice on the photos, but overly complicated to prepare for a daily dinner, and as my wife put it "Every meal taste somewhat similar".
What was missing was simplicity.
The set of functions will be a moduls resembling what you call an API.
I am not argue this can not be done on OOP, but I find it counter-intuitive and overly complex to do so.
And as you can see in the discussion arising, even this simple example is becoming a complex modelling problem in OOP.
Exactly contrary. I find modelling in objects classes counter-intuitive and thus not good to reason about.
When I paint a wall I apply a function (paint) to the object (wall), not the object is painting itself. I can apply the same function to a different type (aka class) of object e.g. I can paint my chair. Stays the same function.
So in my cognitive model of the world the objects are objects manipulated by me, not subjects executing "methods", but OOP is treating them as subjects.
I would be surprised if your app would have a "change your email/login" function implemented.
No, you don't have to. You want to.
The concept of tying email addresses to user accounts came Google to better track their users. Of course thankfully taken over from everybody in the industry.
Especially when you offer a "free" trial for your software you should not ask your users to pay with their data. Even first before they see what they'll get for in exchange.
You literally ask me to pay the price first before I see the product
(2) Whatever you consider annoying is most certainly different from what I would consider annoying
(3) I need to trust you which I don't because of (1)
Case closed.
While I can appreciate to have a good income and always had good paying jobs, I was never really interested in making a career and becoming filthy rich. Possibly because I can not imagine myself in this situation.
On the other hand I was always better then others on making long term strategic plans.
Ist's a procedure which takes a piece of food, a pan and an oven and produces a fried egg.
I happily use Vivaldi on Linux Mint for more than two years without any issues!?
I actually don't care about ads. I use an ad-blocker because I am concerned about everybody in the industry tries to track and profile me.
This is not correct. You have to understand that "money" at commercial banks is not money, but only a debt of that commercial bank with the account holder. Gas and other commodities are always paid in real money, which exists only in to flavors: Paper money and accounts directly at the respective central banks. This means you can have your real USD only on accounts at the FED and real Euros only at ECB etc. The West froze Russian accounts on EZB (the contracts are nominated to be paid in EUR) and at the same time wanted to pay the gas only on these accounts, which for obvious reasons was rejected by Russia. Russia requested to have their accounts unfrozen or paid in Rubels.
There was some face saving detours introduced into the payment process, but in the end the West pays now in Rubels.
Another example of self inflicted pain was when the West made it impossible for Russia to make debt payments. It was not Russia who suffered (they saved their payments), but the western creditors who lost their money.
I know a few investors who held Gazprom and Lukoil stocks over many years. They were factually expropriated because the brokers are refusing to process dividend payments or even selling the stock back to Russia. Again, not Russia was hit but citizens in the West.
It was Europe which decided not to by cheap Russian gas anymore and to ground their own economy. Instead Europa has to buy gas now on the spot market for about ten times the price. So Russia is more than happy by adhering to the contract and watching Europe to inflicting the damage themselves.
If the West would have decided to buy their NLG somewhere else 5 years ago, Russia would have invaded the Ukraine even with less considerations.
I use netvibes for reading.
[0] <https://twitter.com/internetofshit/status/986006653605687296...>