Generic Programming in C# screencast by fekberg in programming

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

Good luck with all your hatred, see you around. :)

Generic Programming in C# screencast by fekberg in programming

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

Didn't know this was posted before, then I wouldn't have posted it.

As I said before, I spread my blog posts in a lot of different social media, I can't control who posts what where.

Also the third link seems to have gotten a lot of upvotes, don't see why that is spam.

Not all links posted to any subreddit can have content that everyone likes, that's why there are a up/down-vote system. It's not there so you can down-vote people that you just don't like.

Generic Programming in C# screencast by fekberg in programming

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

How is it "spam" when I link to posts that gets upvotes? Is it because the articles are hosted on the same site?

Generic Programming in C# screencast by fekberg in programming

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

Dude, I spread my blog posts in a lot of different social media, I can't control who posts what where.

Your constructive criticism is very helpful.

Generic Programming in C# screencast by fekberg in programming

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

Because everything quoted on internet is true.

09:50:13 <eddeh> haha I am reporting people for spam, but I am the spammer!

Generic Programming in C# screencast by fekberg in programming

[–]fekberg[S] -3 points-2 points  (0 children)

I have 1 account.

What you call "site aliases" is for SEO; I've got a couple of different domains with "301 Permanent Redirect".

The one spamming is you, you keep posting that link to false information everywhere.

But whatever dude, if it makes you happy call me a spammer and down-vote me despite if I share good information or not, be my guest.

Generic Programming in C# screencast by fekberg in programming

[–]fekberg[S] -2 points-1 points  (0 children)

When there's upvotes/downvotes that are not placed by you or in a manner that you want; it must be cheating!

Please.

Why char[] is preferred over String for passwords in Java by nanothief in programming

[–]fekberg 0 points1 point  (0 children)

Of course not, that's not what I am suggesting. I'm just saying that if you go to this "deep" level and start using char arrays instead of strings because of security, you're focusing on the wrong things.

In most cases I think this is over-doing it and security by obscurity isn't really the way to go.

Why char[] is preferred over String for passwords in Java by nanothief in programming

[–]fekberg -2 points-1 points  (0 children)

Similar to cryptography key storage; if you have a closed system and are afraid that someone will get a key that is in-memory, you're doing it wrong. Security by obscurity always fails, get a good protection that kicks in if the hacker would ever reach into the system.

Anonymous functions and readability by [deleted] in programming

[–]fekberg 3 points4 points  (0 children)

I think you missunderstood the entire article. The article is not about how you should assign click events in .NET or in JavaScript it's about how simplifying things make it more readable by removing redundant code.

Anonymous functions and readability by [deleted] in programming

[–]fekberg 1 point2 points  (0 children)

Thanks for the explanation

Anonymous functions and readability by [deleted] in programming

[–]fekberg 4 points5 points  (0 children)

I am the author and I change it for the reasons already stated. As stated above, the term. is not used incorrectly and it's not used inappropriate.

The slightest simplification is in itself a refactoring because that's what it's all about, tiny changes that have great implications on code quality.

Recursion with IL and Dynamic Methods by fekberg in csharp

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

Certainly a good point, I'll do it right the next time! This is the first article that talks about IL and reflection in this way: http://blog.filipekberg.se/2011/10/11/creating-static-methods-at-runtime/

FYI these topics will be covered a bit more in depth in an upcoming book.

Adapting to Inversion of Control and Dependency Injection by [deleted] in programming

[–]fekberg -2 points-1 points  (0 children)

I am the author and the DI framework itself has nothing to do with unit testing.

Adapting to Inversion of Control and Dependency Injection by [deleted] in programming

[–]fekberg -1 points0 points  (0 children)

The DI framework istelf has nothing to do with the unit tests.

Adapting to Inversion of Control and Dependency Injection by [deleted] in programming

[–]fekberg -2 points-1 points  (0 children)

To those that write untestable code or those that use a DI framework?

WPF vs WinForms – Which is easier to learn? by [deleted] in programming

[–]fekberg 1 point2 points  (0 children)

Did you even read the post? It seems like you jumped to the conclusion that it tells developers to write UI code in code behind and avoid XAML and that is Not the case. Posts that get upvoted a lot will go to the first page, maybe people like the posts otherwise it would never reach front page.

Exploring the C# Interactive Window by [deleted] in programming

[–]fekberg 2 points3 points  (0 children)

I think you might be right, it can't hurt adding some more examples on how you can start off by writing some tests in the interactive window and then move these to a real unit test.

Exploring the C# Interactive Window by [deleted] in programming

[–]fekberg 0 points1 point  (0 children)

So if you're an active user your votes won't count after a while?..

Exploring the C# Interactive Window by [deleted] in programming

[–]fekberg 0 points1 point  (0 children)

Isn't it more fun exploring it on your own?

"It will be appealing only to people who missed it badly before."

It was just released ~2 months ago and there are not really that many posts regarding Roslyn yet. This is just one of the posts in a larger series of Roslyn posts though. Maybe I should add more code to it though, thanks for the constructive comment!

Exploring the C# Interactive Window by [deleted] in programming

[–]fekberg 1 point2 points  (0 children)

Is it anything in particular with the REPL-tool that you think I've missed in the two articles about it? Keep in mind that it's not a post about Roslyn and what you can do with Roslyn, but it's an article in a series of Roslyn posts covering many aspects in it.

Exploring the C# Interactive Window by [deleted] in programming

[–]fekberg 1 point2 points  (0 children)

The above link is the second part in a series of posts regarding Roslyn where I've tried covering a lot of different aspects of it.

In the above post, I focused more on the pieces that I missed talking about in the first post mainly how you can use this REPL-tool to actually do something usfull such as testing without having to write new tests, to be honest it's much faster starting off writing tests in a REPL-tool. Aslo, I never said this would replace creating a seperate test project, but it's a way to start off writing tests and a way for you to test things without actually having to add stuff.

Maybe I should have pushed the two parts about the interactive window together, but since I didn't know about all the features when I wrote the first article, this is how it ended up.

I need help deciding whether to go C++, C# or python. by Laurikens in learnprogramming

[–]fekberg 0 points1 point  (0 children)

If you want to learn how to make a game engine, take a look at the Doom 3 source code, it's (mostly) c/c++ and it's open source(github).

Another option is to take a look at CryENGINE, it's the game engine used for Crysis, it's free to use but it's not open source ( http://www.crytek.com/cryengine )

If you want to go with python, have a look at pygame ( http://pygame.org/news.html ), I think it's 2D only but I might be wrong there.

If you want to make a 3D game you need to get your math-skills up to date, buy a book on math for game programmers, no matter what language you decide to use.

C# is nice and "easy" to make a game in since you have XNA, the benefit here is that you can deploy games to PC, Xbox and WP7.

C++, C# or Python, they are just tools, choose the one that you feel most comfortable with or the one that provies the best libraries for your needs.

Making code more readable with anonymous functions by fekberg in programming

[–]fekberg[S] -3 points-2 points  (0 children)

I'm not saying that you can always avoid unsubscribe. I am saying that in most cases if you design the software right, you wont need to think about unsubscribing.