|
Thank those lighrs aren't!
|
|
|
|
|
RPC/COM days had this word busy. I heard a mate discussing something as a stub, was just wondering what in today's tech could mean a stub.
|
|
|
|
|
I've stubbed routines but it's not common in my code these days. People just aren't into global interfaces that much anymore.
Most common stub of mine is System.Collections.IEnumerator.Reset() in .NET and even then that's not that common (although C# generates these stubs when you declare iterator methods)
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
The only time I use "stub" is to describe a dummy function that is generally used for simplifying development. So if you are writing a client and that client calls a service which does many things, or takes time, or needs annoying conditions to be true, you can write a stub that has the same method signature but simply returns a hard-coded result. That lets you continue testing the client without needing a working service.
|
|
|
|
|
As I understood the concept, it's to leave a deliberate opening for a future addition (to the code).
Planning for likely expansion. Sort of plan-ahead feature creep - a space is already reserved.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
I stub methods all the time, usually because I fully intend to implement them. My stubbed methods usually throw a NotImplemented exception. If I end up with any of these stubbed methods after the code is finished, I simply delete them (they're easy to find with a simple Find in Files search.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
In the last month and a hlaf I saw extensive usage of stubs in the following scenarios:
* Interfaces towards modules which are called by those modules but not yet implemented by us;
* The actual code of IPC Interfaces (Legato/dBus...) when the implementation is to be done but clients (or servers) are developed concurrently;
* Most of the autogenerated code by AutoSAR tools contains stubs to be implemented by the actual ECU software developers.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
I'm convincing the commentariat over at Going Postal[^] to #learnToCode
I need an army for the upcoming AI wars.
You all started an arms race with your neural net projects.
It's on.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
honey the codewitch wrote: I need an army for the upcoming AI wars.
It'll be upon us sooner than you think.
Rather than training noobs, hire a gang of mercenaries.
|
|
|
|
|
Nah. I remember the lessons of Papua New Guinea - mercenaries stage coups!
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
honey the codewitch wrote: the upcoming AI wars
Too late - we've already given away our advantage:
xkcd: Machine Learning Captcha[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
hahahaha!
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
whats the best way to blend with co-workers(especially boss) at a new workplace,
I am quiet introverted,
my boss thinks that I am just sitting around
I have recently joined a company in malaysia
I am first time out of my country india
|
|
|
|
|
Depends on a whole load of things: there is no "one solution" that fits everybody and every company.
Suggest a drink after work? Doesn't have to be a "get drunk" session - a quiet beer or two off premises can lower barriers and make it easier to talk about non-work stuff. Take money, expect to buy a round!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: Suggest a drink after work?
May not work in Malaysia,as most people follow Islam, but going out to eat together can be an option.
|
|
|
|
|
A drink doesn't have to be alcoholic, you might go out to have a tea or a coffee.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I agree with you here but, OG was implying that.
I am also aware of the fact that many people who follow Islam don't necessarily follow the no drinks suit, however assuming that they do is still a safer option, especially if you're new.
I am of the belief, that having a few drinks together is one of the best ways to befriend someone, along with offering helping hand.
|
|
|
|
|
GKP1992 wrote: I am of the belief, that having a few drinks together is one of the best ways to befriend someone, along with offering helping hand. That or going out to pinch a bit / have lunch or dinner or all at once.
Main thing is go out of with them and do something together
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I recently read many Muslims drink alcohol.
Some groups just drink it because why not.
But it seems many Muslims have a long tradition with wine and still drink it.
Sometimes because there are just a lot of grapes in the area, other times even for religious reasons, blood of Christ and all that.
And the younger generation doesn't mind the strict rules all that much.
But those that don't drink alcohol, for whatever reason, can drink something else.
Personally, as an atheist, I'd prefer an Ice Tea
|
|
|
|
|
I prefer whatever I have brewing and fermenting in my cauldron that day.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Little kids and puppies? (it's only sad because of the puppies)
|
|
|
|
|
puppies grow into dogs. I'm sparing them that fate.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Man's best friend, of course you wouldn't know that being a woman and all
|
|
|
|
|
Anyone who hates dogs and kids can't be all bad. - W.C. Fields
|
|
|
|
|
Agreed on the kids, I love dogs though (although I'm a cat person)
|
|
|
|