maskaler

- friends
181 link karma
589 comment karma
send messageredditor for
what's this?

TROPHY CASE

If you didn't realize how large whales were already... by timz45in pics

[–]maskaler 0 points1 point ago

Were? How large are they now!? Ahhhhhh

Float like a butterfly, sting like a hadouken. by elenoin pics

[–]maskaler 0 points1 point ago

"Float like a butterfly, sting like Chun Li" would've been more appropriate..

Reddit, this is the man who killed my father. He was just sentenced to life in prison. by Madonkadonkin pics

[–]maskaler 29 points30 points ago

I'm intrigued as to how you really felt. Crying then laughing fascinates me.

When did he do it? Why? How do/did you feel? Why did it happen? Have you settled this in your mind? If not, what is it that might settle this or is this good enough?

Caching - What Do You Use? by hlthybodysckmndin dotnet

[–]maskaler 0 points1 point ago

We opted to redesign our db model at a point at which we felt we fully understood the domain (having built the previous one over several sprints creating a mess). With that we don't have the need for caching as responses are small and speedy as a result.

A side note is that we built the new service using the OData / WCF Data Services stack and get some benefits from browser caching as a result.

50 HOT Clothing Accidents (NSFW) by ijustupvotein promos

[–]maskaler 4 points5 points ago

Gave up after about 10 'cause of the constantly moving right arrow. Really annoying UX!

Beginner - Where to next? by Cazallumin csharp

[–]maskaler 12 points13 points ago

Personally I would look at MVC.Net and start learning the web stack and understanding how that hangs together.

Alternatively, take a look at WPF and try converting one of your Winforms apps into a WPF app. You know the domain, so it will be about learning WPF and little else. Try coding it using modern, up-to-date patterns (I'm thinking MVVM here) and see how you get on.

Visual Studio crashing without error message when opening a certain WinForm [xpost from /r/csharp] by work__accountin dotnet

[–]maskaler 0 points1 point ago

Try rebuilding the resx file

Failing that, if you have code in the default constructor then that could be killing it. If you do, try wrapping it in an if (!DesignMode) block (I think that's right)

Things Every Senior .NET Developer Should Know, Part 1 - Object-Oriented Programming by mycallin dotnet

[–]maskaler 0 points1 point ago

Totally! If all you know is 4 paragraphs on OO you're not going to get very far

Washed up dogfish on Brighton Beach by AlbinoEatpodin brighton

[–]maskaler 0 points1 point ago

Looks like it's been filleted?!

Finished making a simple palindrome checker, need recommendations/comments. by Elusivelyin csharp

[–]maskaler 1 point2 points ago

It's because

string.Compare(reversedString, phrase) == 0

is an expression and equates to either true or false.

So instead of having an "if(true) return true else return false" type statement you can just return the result of the expression you're checking in the first if, because you're saying 'if this is true, then set something else to true, if it's false set that thing to false.

You could also have

bool result = string.Compare(reversedString, phrase) == 0; // this resolves to either true or false
return result;

and the shorthand for that would be

return string.Compare(reversedString, phrase) == 0;

Finished making a simple palindrome checker, need recommendations/comments. by Elusivelyin csharp

[–]maskaler 0 points1 point ago

I'd replace

bool result;
if(string.Compare(reversedString, phrase) == 0)
{
    result = true; 
}
else
{
    result = false;
}

return result;

with:

 return string.Compare(reversedString, phrase) == 0;

Other than that, what everyone else has said really: use a regex with ToLower

Also with the code:

if (output == true)
{
    Console.WriteLine("Your phrase is a Palindrome, press enter to continue.");
    Console.ReadLine();
    Console.Clear();                   
}

if (output == false)
{
    Console.WriteLine("Your phrase is not a Palindrome, press enter to continue.");
    Console.ReadLine();
    Console.Clear();                   
}

the only difference is the word 'not', so think about a way to trim that code down.

Also, you do not need to use

if (output == true)

you can you

if (output)

and

if (!output) 

for a negative check

Help a Brighton Redditor out :) by paters936in brighton

[–]maskaler 0 points1 point ago

Have you tried various agencies around town? Find out who places staff in the big employers in B&H, namely American Express and EDF, and get yourself in there. Companies like that have a high turnover.

Also, if you're not averse to it, try agencies like Manpower as there is always a truck that needs packing somewhere or a bin that need emptying (they're two of the jobs I got from manpower many, many years ago)

I need help everyone. How do I compile my .net programs to ARM architecture? by mattdahackin dotnet

[–]maskaler 0 points1 point ago

Could it be a separate project type, therefore one that the standard .Net libraries don't support?

I did some work on Windows CE and had to use the .Net Compact libraries, perhaps the same thing holds try for ARM.

Hey everyone, I've just done lots of things to our CSS so please let me know about issues that you notice. by vwllssin photography

[–]maskaler 3 points4 points ago

The main subreddit looks a bit skewed with the reddit enhancement suite's extra links at the top http://i.imgur.com/a2H3A.png

Seems strangely familiar... by daysofstaticin funny

[–]maskaler 1 point2 points ago

Assange == NPH?

Brighton Beach & The Donut. Not bad for a camera phone. by profgunningtonin brighton

[–]maskaler 0 points1 point ago

Nice shot.

Sadly the only thing I'm thinking is 'which camera phone?'

Just out for a drive by canipaybycheckin WTF

[–]maskaler 0 points1 point ago

Right so it's a lack of it being bought/manufactured. IED just seems to have come into the public domain as a term thanks to roadside bombs in Iraq/Afghanistan, and I for some reason decided that since it wasn't roadside then the I got dropped. Not sure why.

Just out for a drive by canipaybycheckin WTF

[–]maskaler -10 points-9 points ago

Is it still an IED if it's buried? Wouldn't that just be an ED/Bomb?

Can you guys recommend me some restaurants in Brighton? by neildrawsin brighton

[–]maskaler 1 point2 points ago

Oh yeh +1 Pompoko

Can you guys recommend me some restaurants in Brighton? by neildrawsin brighton

[–]maskaler 0 points1 point ago

  • The Hop Poles
  • Jade
  • The Good Companions
  • Donatellos

All decently priced...

Michael Owen ಠ_ಠ by stumac85in soccer

[–]maskaler 4 points5 points ago

He should get an 8 game ban and a £40k fine for that.

This comment was on the Hobbit trailer. by Richardohyeahin WTF

[–]maskaler -1 points0 points ago

I think the person complaining about the lack of views and high number of likes has a point... not sure how this is top of my homepage with 1192 points...

view more: next