JavaScript On Double 'if'

by Ants, August 26, 2010 18:23

@Robert: Good job factoring...

F9a9ba6663645458aa8630157ed5e71e Talk

JavaScript On Double 'if'

by Ants, August 23, 2010 21:14

@Adam: Your refactoring cha...

F9a9ba6663645458aa8630157ed5e71e Talk

C# On help on refactoring this code

by Ants, August 23, 2010 10:53

Why don't you copy the answ...

F9a9ba6663645458aa8630157ed5e71e Talk

C# On ASP.NET MVC List Helper

by Ants, August 23, 2010 10:46

@Wolfbyte: Thanks. I was gu...

F9a9ba6663645458aa8630157ed5e71e Talk

C# On ASP.NET MVC List Helper

by Ants, August 20, 2010 18:13

@Wolfbyte: Nice conversion ...

F9a9ba6663645458aa8630157ed5e71e Talk
1
2
3
4
    public static class ListExtensions
    {
        public static string RenderList<T>(this HtmlHelper helper, IEnumerable<T> list,
...

C# On ASP.NET MVC List Helper

by Ants, August 19, 2010 03:02

Why not take advantage of t...

F9a9ba6663645458aa8630157ed5e71e Talk

C# On How can i shorter my linq c...

by Ants, August 16, 2010 05:28

@AnonaMoose: AutoMapper loo...

F9a9ba6663645458aa8630157ed5e71e Talk
1
2
3
4
    class MyTask
    {
        Task _task;
...

C# On How can i shorter my linq c...

by Ants, August 12, 2010 19:26

In your other post "How can...

F9a9ba6663645458aa8630157ed5e71e Talk

ActionScript On AndroidManifest

by Ants, August 12, 2010 19:12

And this doesn't look like ...

F9a9ba6663645458aa8630157ed5e71e Talk

PHP On Sanitizing a submitted Foru...

by Ants, August 10, 2010 19:34

You also need to prevent SQ...

F9a9ba6663645458aa8630157ed5e71e Talk
1
2
3
4
class TimesheetItemCompressor : IEqualityComparer<TimesheetItemObject>
{
    public bool Equals(TimesheetItemObject x, TimesheetItemObject y)
...

C# On Merging similar objects

by Ants, August 08, 2010 06:36 Star_fullStar_fullStar_fullStar_fullStar_full

I would have made something...

F9a9ba6663645458aa8630157ed5e71e Talk

C On Extracting directory, filen...

by Ants, July 06, 2010 10:32

You're welcome, @Navaneeth....

F9a9ba6663645458aa8630157ed5e71e Talk
1
2
3
4
typedef struct
{
    char * directory;
...

C On Extracting directory, filen...

by Ants, July 05, 2010 11:25 Star_fullStar_fullStar_fullStar_fullStar_full

The same way you found the ...

F9a9ba6663645458aa8630157ed5e71e Talk

C On Extracting directory, filen...

by Ants, July 05, 2010 08:00

In general, I agree with he...

F9a9ba6663645458aa8630157ed5e71e Talk
1
2
3
4
                Base = char.Parse(((Console.ReadLine()).ToLower()).Substring(0, 1));
                switch (Base)
                {
...

C# On HELP: How to use a try-catc...

by Ants, June 30, 2010 17:11 Star_fullStar_fullStar_fullStar_fullStar_full

Doing that makes things rea...

F9a9ba6663645458aa8630157ed5e71e Talk

Ruby On Fizz Buzz

by Ants, June 13, 2010 02:49

Are we playing code golf? h...

F9a9ba6663645458aa8630157ed5e71e Talk

C++ On Copy-Paste code with intern...

by Ants, June 13, 2010 02:47

I liked you idea of the fun...

F9a9ba6663645458aa8630157ed5e71e Talk
1
2
3
4
bool compatibleNICodes(const Rule& rule, const std::vector<std::string> &nicodes) {
    static const struct RulePair {
        typedef std::string (Rule::*const RuleFunction)() const;
...

C++ On Copy-Paste code with intern...

by Ants, June 12, 2010 22:32

Nice, strager! Here's a min...

F9a9ba6663645458aa8630157ed5e71e Talk
1
2
3
4
<html>
    <head>
        <script>
...

JavaScript On delayer

by Ants, June 12, 2010 17:50 Star_fullStar_fullStar_fullStar_fullStar_full

Actually, I thinking of act...

F9a9ba6663645458aa8630157ed5e71e Talk

JavaScript On delayer

by Ants, June 11, 2010 20:47

Yes, I understand that the ...

F9a9ba6663645458aa8630157ed5e71e Talk
1
2
3
4
    bool IsIncluded(std::string flag, bool & included)
    {
        if(flag == "INCLUDE")
...

C++ On Copy-Paste code with intern...

by Ants, June 10, 2010 11:46

Alternate without needing t...

F9a9ba6663645458aa8630157ed5e71e Talk
1
2
3
4
    bool IsIncluded(bool match, std::string flag, bool & included)
    {
        if(match)
...

C++ On Copy-Paste code with intern...

by Ants, June 10, 2010 11:28

You can't do it with a sing...

F9a9ba6663645458aa8630157ed5e71e Talk

JavaScript On delayer

by Ants, June 10, 2010 11:23

Since I'm just a dilettante...

F9a9ba6663645458aa8630157ed5e71e Talk

JavaScript On Format Numbers With Commas

by Ants, June 08, 2010 03:06

Sort of on tangent, I hope ...

F9a9ba6663645458aa8630157ed5e71e Talk
1
<a href="http://a.link.he.re" target="blank">Rick Roll</a>

JavaScript On Regex: Remove all HTML tags...

by Ants, June 07, 2010 15:35

I recommend reading:

http:...

F9a9ba6663645458aa8630157ed5e71e Talk