1,036 reputation
2519
bio website careers.stackoverflow.com/…
location Belgium
age 22
visits member for 1 year, 10 months
seen 7 hours ago

Currently a student enrolled at the University College of Ghent.

Curriculum Vitae

Refer to my Careers profile for a more thorough overview, my LinkedIn profile should you wish to stay in contact or my Github account for an overview of my personal projects.

Programming is the art of telling another human what one wants the computer to do. ~Donald Knuth


Dec
7
comment Adding non distinct elements to a dictionary
Do you have performance issues related to those two lines? Don't sacrifice readability for performance without doing so for a very good reason.
Dec
4
comment Should an event listener be called if attached after the event has already fired?
Seems to me like events can be interpreted as something that occurs once to change the state. This means they are very shortlived, practically a single moment. A state on the other hand is longerlived and consists of multiple moments. load isn't an event nor a state. loadingStarted is an event and loading is a state.
Nov
22
comment WebAPI authorisation for other apps
You could do this as simple as passing an apikey in the url/header and checking that against a list of allowed keys in a database.
Oct
7
awarded  Famous Question
Sep
30
awarded  Explainer
Aug
3
asked Should an Animal be abstract or allow for instantiation to represent a “general” instance?
Aug
1
comment Uses for System.gc() in Java
Since it isn't guaranteed when the GC does its magic, how would this be reliable? It might make the GC run in the middle of your execution or it might not, but won't it impair the performance of your tests if you, say, have 5 tests which usually won't trigger a GC but now it gets executed twice because you call System.gc() each time? I understand it's somewhat random in both situations but then I'd rather have it be random in the way I expect: after many tests there will be GC's; this could let me take that into account.
Jul
11
comment Programming for future use of interfaces
I think it's also important to consider how likely this feature is to appear in the future. If you know for certain it will be added but not right now because of whatever reason then I'd say that's a good argument to keep in mind since it's not just a "in case" feature.
Jul
9
accepted How are composite tables generally handled when there is no ORM tool available?
Jul
9
comment How are composite tables generally handled when there is no ORM tool available?
The way I have it in mind right now for the create table queries is to use the sqlite-net attributes like [Primary Key], [Unique] etc and add my own [Composite] one. Then I'll just pass the type to some factory that will use reflection to create the query with all basic variables and use the PK of the current type and the type inside the collection of a [Composite] field to construct an extra table with those two PKs. Unless I am overlooking something this should be fairly straightforward.
Jul
9
comment How are composite tables generally handled when there is no ORM tool available?
It looks like I'll be going this way indeed. Could you clarify what you mean with "real class definitions" as opposed to "naked ones" though? What will be the difference between both?
Jul
9
comment How are composite tables generally handled when there is no ORM tool available?
@AndrewHoffman: I will test it later tonight but this post explicitly says that it is not compatible with WinRT. Am I misinterpreting anything wrong about it?
Jul
9
comment How are composite tables generally handled when there is no ORM tool available?
@DocBrown: I did not but I don't think it is a possibility (sqlite-net doesn't use any IDbConnection). I assume this is because it isn't available in WinRT.
Jul
9
awarded  Tag Editor
Jul
9
revised windows-runtime wiki description
added 1357 characters in body
Jul
9
revised windows-runtime wiki excerpt
added 257 characters in body
Jul
9
comment How are composite tables generally handled when there is no ORM tool available?
@RobertHarvey: the actual model (with basic types left out) is along the lines of this. I could write out all the SQL queries myself but if I have to account for all CRUD actions and all other models that should be persisted, then that seems like a huge time allotment. Perhaps this is normal but I'd rather be sure about that beforehand. I'll take a look at System.Data.SQLite and see if it works on WinRT (although I doubt it considering this).
Jul
9
wiki created windows-runtime description
Jul
9
wiki created windows-runtime excerpt
Jul
9
suggested approved edit on windows-runtime tag wiki