|
Hello!
Sadly, I can't remember where I read it, but...
...in C++ you can derive a class from a template parameter. Im pretty sure it was called
Feature Oriented Programming (FOP) and meant to be somehow useful.
It was something like:
template <class...
Started by ivan_ivanovich_ivanoff on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I doubt you....
The article I've linked goes into an example of Aspect Oriented Programming to try to make a similar effect in java .
So, the place I see that pattern most in c++ is the behavior of mixins ( link ), which I guess is an implementation of FOP .
|
|
Common Sense is Not So Common?
June 1, 2012 9:11 AM Subscribe Can you help me cultivate common sense? I am very book smart - gifted/high IQ, excel at work, etc. I am relatively street smart - no walking down dark alleys at night, etc. But I fail spectacularly...
Started by TestamentToGrace on
, 60 posts
by 51 people.
Answer Snippets (Read the full thread at metafilter):
Having to teach someone else common sense has GREATLY assisted common sense, you ....
Some of these are not common sense, but local in with both feet and 2) having kids.
And therefore have figured out a new trick no one's thought of .
|
|
Is it possible to uninstall the Sense UI developed by HTC on the new HTC Hero, and use the vanilla Android operating system?
Started by bjarkef on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at superuser):
Scroll down to where you can see "Launch by default" and click "Home" and "TouchFLO"/"....
Go to the "manage application" list of apps, open the TouchFlo "TouchFLO" or "Sense UI" and click on it.
Disable the Sense UI without uninstalling.
|
Ask your Facebook Friends
|
Duplicate of this question .
I'm learning C++ at the moment, and I'm coming across a lot of null-terminated strings. This has got me thinking, what makes more sense when declaring pointers:
char* string
or
char *string
? To me, the char* format makes ...
Started by Skilldrick on
, 14 posts
by 14 people.
Answer Snippets (Read the full thread at stackoverflow):
The only time I use the other format it makes sense to put the....
Given that you can make multiple declarations on a single line it makes more sense to me the char* foo makes more sense when declaring a single variable.
Are pointers.
|
|
Is there any sense to set custom object to null ( Nothing in VB.NET) in the Dispose() method? Could this prevent memory leaks or it's useless?!
Let's consider two examples:
public class Foo : IDisposable { private Bar bar; // standard custom .NET object...
Started by serhio on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
This can make sense if you NullReferenceException if you do not ....
Personally I tend to; for two reasons:
it means the unmanaged resource provides, not by setting the reference to "null" .
So it really makes sense.
In the dispose method.
|
|
Does it make sense to implement a copy method on an immutable type, returning a new instance? Or should it just be the current instance?
I thought the type doesn't change anyway so why copy? Like no one copies the number 5, right?
Started by Joan Venge on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Java strings idea, but it can be helpful in some cases... .
There are certain cases where it makes sense.
I'm just not sure when that would be...
:)
That said, making a copy of an immutable object doesn't make sense.
It is copied constantly.
|
|
For example, if I was doing a project at home, does it make sense to use version control in the event that I want to revert or whatever, or does the shadow copy feature of Vista (we'll assume I'm using Vista) accomplish the same thing?
Started by __ on
, 18 posts
by 18 people.
Answer Snippets (Read the full thread at stackoverflow):
I use git because I find it simply....
Yes it does make sense to use version control (I use Subversion), because you can always backtrack control? That's like breathing without oxygen!
Yes, it makes a lot of sense to use version control when way.
|
|
Does it make sense, having all of the C#-managed-bliss, to go back to Petzold's Programming Windows and try to produce code w/ pure WinAPI?
What can be learn from it? Isn't it just too outdated to be useful?
Started by Camilo Díaz on
, 22 posts
by 22 people.
Answer Snippets (Read the full thread at stackoverflow):
Learning C....
When nobody knows the low level, who will update and write the high level languages? Also, when you understand the low level stuff, you can write more efficient code in a higher level language, and also debug more efficiently .
Absolutely.
|
|
Or does it just make more sense to leave the optimization until you use the library, or is it when you link the library you are already past the point where the compiler can optimize the library?
Started by gmatt on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
So if you want your static library optimized, you ... .
Code optimization happens primarily at compile time.
If you want the code in the library optimised, you have to provide the optimisation flags when you compile the library, not when you link with it .
|
|
What is a proxy object in the Inversion of Control / Aspect-Oriented sense?
Any good articles on what a proxy object is ?
Why you would want to use one ?
And how to write one in C# ?
Started by tyndall on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Proxy objects are used for a variety of reasons.......
In general, a Proxy object is an object (instance of a class) that exposes the exact same public interface as a "real class" but simply forwards all calls made to it's members to the other real class .
|