Search
Post Calendar
May 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Categories
Interesting blogs
References
Croatian Linux Portal
Meta
Category Archives: OOP
Decoupling
Someone asked me what can he do with interfaces and abstract classes. Plenty of fun there as we shall see now. I’ll use C++ and C# in this example, and I’ll present this on simple math operations. Interfaces and abstract … Continue reading
Posted in CSharp, OOP, Posts in English, Programming
Tagged abstract, base, c, c#, c++, class, constructor, cplusplus, cpp, csharp, delegate, derive, dispatch, event, function, implement, inheritance, interface, main, math, method, minus, number, operation, plus, programming, properties, property, pure, static, string, virtual, void
Leave a comment
Shoot yourself in the foot using c#
I’m drunk, way past the Ballmer peak, and now, I need to explain to you in detail how to shoot yourself in the foot with C#, following the concept “Program to an interface”. You can take me for granted or … Continue reading
Posted in CSharp, General, OOP, Posts in English, Programming
Tagged abstract, aim, alcohol, argument, ballmer, bullet, c, c#, c++. cpp, class, cplusplus, csharp, design, drunk, exception, feet, foot, funny, gun, implement, interface, null, nullargumentexception, patterns, peak, programming, sharp, shoot
1 Comment
Sending POST request in Silverlight 4
Scenario: You need to send some data picked up from a form using POST request. I’ll consider login situation here, using username and password. Let’s assume that you have a form already, added suitable event handler to your login button. … Continue reading
Posted in CSharp, OOP, Posts in English, Programming
Tagged absolute, async, begingetrequeststream, begingetresponse, callback, csharp, data, dispatch, endgetrequeststream, event, form, getresponsestream, handler, httpwebrequest, kind, login, method, new, object, oop, oriented, post, programming, reader, register, relative, request, retrieve, send, silverlight 4, stream, streamreader, streamwriter, uri, windows, writer
5 Comments
Namespaces in c++
Disecting namespaces What are namespaces? Why use namespaces? Namespaces are segments of code which contain grouped entities like classes, variable definitions and objects under one name in order to avoid some entities with the same name to collide, which results … Continue reading
Implementing stack in Cpp using classes
This post is about implementing stack data structure inside a class. Stack is based on LIFO structure (Last-In-First-Out), and of course it’s designed to be useful. LIFO means that whatever comes last onto stack must come out first. Stack data … Continue reading
Posted in Cpp, OOP, Posts in English, Programming
Tagged class, constructor, data, FIFO, inherit, LIFO, malloc, object, oop, operator, oriented, overload, peek, poke, pop, programming, push, stack, structure
Leave a comment