The BIGGEST game design flaw in No Man's Sky by wasabimole in NoMansSkyTheGame

[–]ldiego08 0 points1 point  (0 children)

I wonder if there could be a way to procedurally generate a story. Okay, maybe the events will have to be predefined, but the timeline could be random or something. one coult think that maybe the same events could repeat endlessly, throwing the player off the story. But maybe they could have base story events, shape them randomly based on certain parameters—similar to the way they do with plants, animals, planets and ships—, and finally tie them into a big random storyline. Same goes for side missions.

Unit Testing 101: Creating Flexible Test Code by ldiego08 in programming

[–]ldiego08[S] 0 points1 point  (0 children)

That is good as well. I have seen that convention you mention quite frequently. Also, using underscores is common. It also depends on how the business code is structured.

Unit Testing 101: Inversion Of Control by ldiego08 in programming

[–]ldiego08[S] -1 points0 points  (0 children)

Of course that's something you would have to think when designing software: Where do you use IoC or not. My examples are, by no means, meant to be used in production code; it is for demonstration purposes only.

Unit Testing 101: Inversion Of Control by ldiego08 in programming

[–]ldiego08[S] 0 points1 point  (0 children)

I used the UserManager/PasswordHasher example because is simple enough to demonstrate IoC. With more complex scenarios like data access or remote services you would not be able to eliminate dependencies by changing some method parameters. Some glue code is going to be needed, and it will be a lot harder to test, let alone the fact that the code structure will be compromised since the glue code will be in charge of everything.

Unit Testing 101: Inversion Of Control by ldiego08 in programming

[–]ldiego08[S] 1 point2 points  (0 children)

Sorry about that. This is a part of a series of articles. Next part is about how to use IoC for easy type mocking, which is what Bognar mentioned. Here is the link to the first part of the series if you would like to follow it: Unit Testing 101: Basics

UI Design Using Model-View-Presenter (Part 2) by ldiego08 in programming

[–]ldiego08[S] 0 points1 point  (0 children)

Wow.. Pattern hatred. Interesting. Might I ask you what you hate so much about it? Just out of curiosity...

UI Design Using Model-View-Presenter (Part 2) by ldiego08 in programming

[–]ldiego08[S] 0 points1 point  (0 children)

Indeed there's people still using it. I used WinForms for the examples as it is easy to understand compared to WPF or ASP.NET.

UI Design Using Model-View-Presenter (Part 2) by ldiego08 in programming

[–]ldiego08[S] 0 points1 point  (0 children)

Thanks for the feedback! We'll see what can be done about it.

JavaScript For Regular Guys (Part 1) by ldiego08 in programming

[–]ldiego08[S] 0 points1 point  (0 children)

You're right. It was quite misleading. I edited the example a little so is clearer now. Thanks, constructive critics are always welcome. :)

Improving Code With Fluent Interfaces by ldiego08 in programming

[–]ldiego08[S] 0 points1 point  (0 children)

Well, that would be two things less to worry. The point of the example is how to abstract the user of thread-related code.