maskaler

- friends
185 link karma
596 comment karma
send messageredditor for
what's this?

TROPHY CASE

Please criticize my app! I'm submitting this code to get job interviews, it'd be great for some feedback. by msghmrin rails

[–]maskaler 0 points1 point ago

Nowhere near as detailed as Nitrodist, but at a high level I'd maybe include a few more gems, use the latest version of rails and try to leverage some of the new features in that version to exhibit that you've read, understood and reproduced the latest features, and perhaps upload it to a public-facing live environment (preferably a VPS you've configured yourself). For bonus points you could use Capistrano and this proves a nice end-to-end understanding of the app lifecycle from inception to deployment.

ELI5: Israel and Palestine by no_directionin explainlikeimfive

[–]maskaler 0 points1 point ago

This is excellent. More people need to see this

Brighton is on the bing by unoriginal42in brighton

[–]maskaler 0 points1 point ago

It was in honour of Brighton SEO that was on at the dome yesterday.

My friend works on a fishing boat in Alaska, he caught this today! by stickyricciin WTF

[–]maskaler 1 point2 points ago

Looks like a giant chorizo. That fish would fuckin' rule.

I've been running a website on .NET and haven't had to use Visual Studio up until this point... by speedballoonin dotnet

[–]maskaler 4 points5 points ago

If you have the site running in IIS:

  • "File"
  • "Open"
  • "Web Site"
  • Choose "Local IIS"
  • Find your site

If not, you can still locate it on your file system and use the development server that comes with VS to compile and run it.

ASP .NET Webforms vs ASP .NET MVC by BewareOfTheTripein dotnet

[–]maskaler 7 points8 points ago

It sounds like you're trying to transport a broken model and fit it into MVC, rather than starting fresh and unlearning the guff you'd learned before.

The shirt I get to wear once every four years! by ero79in pics

[–]maskaler 0 points1 point ago

Is it quite lucky that it came to a figure that slots so nicely into 1? If it'd been .32 we'd have to wait 8 years and 8 days (probably bad maths there)

Code First vs Model(Database) First by Saberrein dotnet

[–]maskaler 0 points1 point ago

We started our latest, large project with CF but switched to model-driven to avoid the code becoming littered with database-specific attributes. We use the POCO generator and keep business logic away from the domain too.

I think the model-driven enforces a cleaner, more thoughtful design from the outset, especially in a fast-paced agile project where time is key.

We took our existing CF domain and directly ported it to the model-driven style and realised our database was in a pretty bad state, with circular references and unconstrained relationships. That said, you can generate an EDMX from the Code First model afaik, so I guess it's of little consequence really - it's what works best for you. That said, having an EDMX allows dev to get the DBA involved and palm off the boring bits to them :)

An exquisite squirrel shot by David Walker by tomhasleftin photos

[–]maskaler 0 points1 point ago

That is rather an exquisite squirrel.

My teacher lost a bet with a student. This was what he had to do. by Thor_inhighschoolin funny

[–]maskaler -4 points-3 points ago

All I seem to do now is come into the comments to say "Came here to say this" :|

Underwater dog photography by Jerglingsin pics

[–]maskaler 0 points1 point ago

Pheaudography?

Gabriel and Dresden - Tracking Treasure Down [2006] by siscorskiyin trance

[–]maskaler 0 points1 point ago

Gabriel & Dresden rock - their first studio album was brilliant.

I first heard this on the way to Slinky in Bournemouth on a Ferry Corsten mix CD. Three friends and I were going to see Ferry Corsten so we just looped this CD for the entire journey. Then, at about 3am, Ferry dropped it and we completely lost it!

Great memories of this one! Love it!

To all the haters by anonym0osein funny

[–]maskaler -1 points0 points ago

The start of 'Getting Jiggy With It' by Will Smith came on the radio while I was looking at this (with the record scratching). The leg movements appeared to go in time to the music and it was epic.

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 28 points29 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 9 points10 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 10 points11 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

view more: next