SyntaxError: non-default argument follows default argument

Let me clarify two points here : Firstly non-default argument should not follow the default argument, it means you can’t define (a = ‘b’,c) in function. The correct order of defining parameter in function are : positional parameter or non-default parameter i.e (a,b,c) keyword parameter or default parameter i.e (a = ‘b’,r= ‘j’) keyword-only parameter i.e (*args) var-keyword parameter i.e (**kwargs) … Read more

BehaviorSubject vs Observable?

BehaviorSubject is a type of subject, a subject is a special type of observable so you can subscribe to messages like any other observable. The unique features of BehaviorSubject are: It needs an initial value as it must always return a value on subscription even if it hasn’t received a next() Upon subscription, it returns the last … Read more

What is the C version of RMI

Is this type of scenario that CORBA was intended for and if so, is this still the best technology to use or are there better options out there. Yes, this is what CORBA was intended to solve. Whether it’s “best” is subjective and argumentative. 🙂 I can say, from my personal experience, I don’t miss … Read more

You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)

Update: I now have a very detailed step-by-step tutorial for setting up a proper Ruby development environment on a Mac, including a Homebrew troubleshooting section with the most common issues people run into. Although my step-by-step tutorial is guaranteed to work, I also have a script that will save you a lot of time. My tutorial uses a … Read more