I am learning about design patterns in C# specifically the Bridge pattern. The GoF definition for the pattern states "Seerates an objects interface from its implementation". I have a question: Isnt an implementation of the interface always seperate from the interface itself? What exactly does the definition mean? Thankyou

Member Avatar
Member Avatar
+0 forum 1

we were given a task to create a for loop with where the user gives a number and became this output and we dont know if there is a sequence or an algorithm to it like fibonacci anyone recognize this pattern? input: 3 0|2 --- 0|2 Nice window. Thanks! input: 4 01|0 1 |0 ---- 01|0 Nice window. Thanks! input: 5 01|01 0 | 0 ----- 0 | 0 01|01 Nice window. Thanks! input: 6 012|12 1 | 0 1 | 0 ------ 1 | 0 012|12 Nice window. Thanks!

Member Avatar
Member Avatar
+0 forum 1

# Introduction # The subject of this tutorial is a bit more advanced than the subjects I have tackled in the past, but I hope this will find some interested readers. From time to time in C++, programmers find themselves torn apart between using a *Generic Programming* style which primarily involves the use of templates and compile-time mechanisms (e.g., STL), and using a *Object-Oriented Programming* style that often favors inheritance and run-time dispatching mechanisms (e.g., Qt). As it is so often the case, there is no obvious "winner", i.e., there is no paradigm that should always be preferred, even within …

Member Avatar
+2 forum 0

var pattern =/^([0-9]{2})\/([0-9]{2})\/([0-9]{4})$/;

Member Avatar
Member Avatar
+0 forum 1

Hello. I am looking into mining API Usage Patterns for a project I am trying to work on. I would like if possible to avoid going through the trouble of building the (whole) tool from scratch as it will take quite some time. What I would like to avoid if possible is the creation of the whole crawler/fetcher combo. If anyone has ideas of tools that can do all or part of the work for me I would really like to hear them... And a bit of background on what I want. I want to basically create graphs out of …

Member Avatar
+0 forum 0

What's with the current trend in weirdly patterned avatars? Seems like a lot of members now have them. Is this DW, Gravatar or what? e.g. Examples here: http://www.daniweb.com/members/120589/diafol/endorsements And is it me or are they constantly evolving? Doing my head in :)

Member Avatar
Member Avatar
+1 forum 11

Here is the code: var Circle = function( radius ) { var _radius = radius, _area = function() { return Math.PI * _radius * _radius; }, _perimeter = function() { return 2 * Math.PI * _radius; }; this.radius = _radius; this.area = "Area" + _area(); this.perimeter = "Perimeter" + _perimeter(); this.setRadius = function( radius ) { _radius = radius; }; }; However I cannot get the this.setRadius() function to successfully mutate the private properties. For instance, I run this: var circle = new Circle(5); alert(circle.area); circle.setRadius(10); alert(circle.radius); And it outputs 78.blah which is correct, then it outputs a radius of …

Member Avatar
Member Avatar
+0 forum 1

Hello dear community, I have a problem which I have no idea how to walk around, see I have a really large database, with france zip codes, I imported this data from excel. the thing is that when it imported all the zip codes starting by 0 are not starting with 0 any more. so for example: zip code 01000 is now 1000, zip codes must have allways 5 digits, how can I do yo insert a 0 at the begining to all the zip codes with 4 digits? your help is must appreciated. I've already looked at the MySQL …

Member Avatar
Member Avatar
+0 forum 1

Hello all, I am currently developing a new website in asp.net, C#. I first designed the master page in Photoshop. I used a really cool pattern that I imported into Photoshop. I want to be able to put this on my website as a repeated image. My question is; How do I do this without having to use one image for the whole background? Any input helps :)

Member Avatar
Member Avatar
+0 forum 6

I am trying to get consecutive words in a document using flex. Normally the forward slash should work, but for some reason it is not. Also I need to account for spaces. So I can't seem to use that regex character for this, how do I account for consecutive words in flex C++ programming.

Member Avatar
+0 forum 0

i am having this problem , i have 8 strings say ( boy,topped,pens,remotes ,boted ,toyed, car,house) but i am looking for 3 strings having substrings ending with a (ed,s,s ) for exapmle topp[COLOR="Red"]ed[/COLOR],pen[COLOR="Red"]s[/COLOR],remote[COLOR="Red"]s[/COLOR] however i have to check by first checking the first string boy and i throw it away and go to the next and i find that it ens with the ed so i keep it in the array or any data structure i check the next work if it has s if the next word in the sequency has s then i continue with the third and …

Member Avatar
Member Avatar
+0 forum 3

Hi Guys I am a Computer Science student at University and am looking for some ideas on a project that I have to complete. I have to come up with an hypothetical Software engineering problem in Java , I have to create a bad way of solving it and then create a good way using Java design patterns. Any Ideas ?? I am finding this really hard to come up with an idea that is hard enough to get me noticed but not so hard that I cant complete it,.

Member Avatar
Member Avatar
+0 forum 2

Hey y'all, I was just curious about which idiom you prefer or use very often.. and why? Please vote on the poll! I understand that there are a lot of choices but you can vote for multiples, but try to pick only the ones you think are the best, or most useful, or most elegant to use, i.e., the ones you value most and/or recommend the most. - Resource Allocation Is Initialization - Non-copyable - Factory Functions - PImpl (Cheshire Cat) - Singleton - Lazy construction or evaluation - Type Traits - Smart Pointers - Curiously Recurring Template Pattern - …

Member Avatar
Member Avatar
+0 forum 3

The End.