953 reputation
1518
bio website careers.stackoverflow.com/…
location Belgium
age 21
visits member for 1 year, 6 months
seen 3 hours ago

Currently a student enrolled at the University College of Ghent. Open to any studentjob offers and internships across the globe.

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


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 suggested edit on windows-runtime tag wiki
Jul
9
suggested suggested edit on windows-runtime tag wiki excerpt
Jul
9
asked How are composite tables generally handled when there is no ORM tool available?
Jun
27
comment How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
Actual TDD (red, green refactor) might be a little much. Once you have the basis of your architecture set up (controllers with some hierarchy, a public API, a few persistance classes) then all you will be doing is add models and test whether they can be saved. I would just write those models and their annotations first and afterwards a test to see if they communicate correctly with the database. You're not really testing for invalid input as you often do in unit testing; you're testing whether parts of your system can communicate correctly with eachother.
Jun
27
comment How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations?
Unit Testing is not a universal approach for each project. I happen to be in a similar situation at work where a big part of the library I write is interacting with an API. There are very little aspects to unit test in an application where you translate responses, but integration tests are all the more valuable. Keep the unit tests for certain things that are easy to isolate. Since the biggest part of your application's logic is interacting with a database you should focus on integration tests.
Jun
13
awarded  Popular Question