In computer science, polymorphism is a programming language feature that allows values of different data types to be handled using a uniform interface.

learn more… | top users | synonyms

3
votes
1answer
245 views

Text-based Tetris game with CRTP - follow-up

Previous question: Text-based Tetris game - follow-up - final Summary of improvements: Implementation of a Drawable class Separate functionality, input moves to ...
9
votes
1answer
2k views

Variadic templates and pointers to member functions to achieve a named-parameters interface in C++

I studied a bit and packed all the suggestions that I received here: Fluent interface and polymorphism and I came up with this: ...
8
votes
1answer
566 views

Static Multilevel Inheritance with CRTP (Fast Intrusive Pointers)

I wanted to have a way to be able to static_cast to the proper derived type pointer of a base class to simulate a virtual call. Here the virtual call is for a ...
6
votes
2answers
61 views

Google reCAPTCHA Validator: Iteration II

This is a follow-up to the other post I made (less than an hour ago) about my Google reCAPTCHA C# implementation: Google reCAPTCHA Validator This adds support for error messages, so that you can ...
11
votes
2answers
140 views

Implementing Dynamic Network Message Handling

I'm trying to handle network messages in a dynamic, and effective way, though I feel I've overthought it again. As of now, I have a very structured approach, but it feels as if it's a lot of overhead ...
9
votes
6answers
1k views

Fluent interface and polymorphism

I would like to improve the interfaces of some polymorphic classes going from positional to named parameters and I came up with the fluent interface. The following is the most clean, compact and ...
3
votes
1answer
51 views

Google reCAPTCHA Validator

This entire class came out of a chat discussion, and I'm curious on how it looks. (This is like literally 30 minutes of development time.) The idea is to allow very easy, quick implementations of ...