Alex M.

Cluj-Napoca, Romania

careers.stackoverflow.com/alexm

Age: 22

I very often play games; you can find my Steam profile here.

Feb
3
answered Haskell - how to access lists within lists
Feb
2
comment Why is chaining setters unconventional?
You can also abstract this creation in a builder for a more readable result. myCustomDTO = DTOBuilder.defaultDTO().withFoo("foo").withBar("bar").Build(); I'd do that, so as to not conflict with the general idea that setters are voids.
Jan
30
comment How to iterate two vectors in one loop in C++11?
What you're doing there can be rewritten as a zip until the shortest of the two collections ends, and then on each resulting tuple you can perform the add. ZipShortest(coll_1, coll_2).ForEach(tup => tup.First.Add(tup.Second)) in pseudo-C#. No idea what could provide this in C++ and how much work it would be.
Jan
30
answered What's wrong with this tree implementation in C#?
Jan
29
awarded Pundit
Jan
29
comment How to learn mac coding by ourselves?
How many of you are there?
Jan
26
comment How to check if bytes array contains another array
Do you want them to show up in the same order? If order doesn't matter, then you can probably sort your initial array and then binary search for candidates. If the order matters, then there are various algorithms that can help you out. Off the top of my head Aho Corasick might be the fastest in your case.
Jan
24
awarded Pundit
Jan
23
comment How to encrypt Save Files without using a key?
(assuming this is for single player) Don't try to prevent cheating in a single player game, it's annoying both for you and for the player. And is ultimately useless.
Jan
11
comment C++: How to get rid of lazy initialization
Explicitly call a method that clears the existing log when you start your program?
Dec
31
awarded Yearling
Dec
31
awarded Yearling
Dec
15
awarded Famous Question
Dec
8
comment Compile time template instantiation check
@GuillaumeRacicot it's Templatemancy.
Nov
28
awarded Famous Question
Nov
21
awarded Caucus
Nov
21
awarded Constituent
Nov
13
awarded Civic Duty
Nov
12
revised Sum of digits in Clojure
added 13 characters in body
Nov
12
answered Sum of digits in Clojure
1 2 3 4 5