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

Actually, I thinking of act...

F9a9ba6663645458aa8630157ed5e71e Talk

JavaScript On delayer

by Ants, June 11, 2010 20:47 Star_fullStar_fullStar_fullStar_full

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

C# On How can i load dataset via ...

by Ants, June 03, 2010 00:36

Take advantage of the 'usin...

F9a9ba6663645458aa8630157ed5e71e Talk
1
2
3
4
using System;

namespace ProtectedSınıflar
...

C# On How can i SRP princible in ...

by Ants, May 30, 2010 22:26

The problem is that interfa...

F9a9ba6663645458aa8630157ed5e71e Talk

Python On Poker sequence

by Ants, May 13, 2010 18:10

Is get_combinations() reall...

F9a9ba6663645458aa8630157ed5e71e Talk

C# On New to refactoring: is my d...

by Ants, May 11, 2010 20:36

Yes, prefer composition ove...

F9a9ba6663645458aa8630157ed5e71e Talk

C# On Firts time refactoring

by Ants, May 05, 2010 05:39

I'm a fan of xUnit: http://...

F9a9ba6663645458aa8630157ed5e71e Talk

C# On Firts time refactoring

by Ants, May 04, 2010 20:53 Star_fullStar_fullStar_fullStar_fullStar_full

The code smell I started of...

F9a9ba6663645458aa8630157ed5e71e Talk
1
2
3
using System;
using System.Collections.Generic;
...

C# On Firts time refactoring

by Ants, May 03, 2010 10:16 Star_fullStar_fullStar_fullStar_fullStar_full

This is my first pass refac...

F9a9ba6663645458aa8630157ed5e71e Talk

C# On Firts time refactoring

by Ants, May 03, 2010 10:00 Star_fullStar_fullStar_fullStar_fullStar_full

I highly recommend reading ...

F9a9ba6663645458aa8630157ed5e71e Talk

VB.NET On CreateXML

by Ants, April 29, 2010 09:14

Your original question was ...

F9a9ba6663645458aa8630157ed5e71e Talk

VB.NET On CreateXML

by Ants, April 27, 2010 23:12

Why instantiate a whole DOM...

F9a9ba6663645458aa8630157ed5e71e Talk
1
2
3
4
    public class AntsController
    {
        public object CreateByEnum(DataModelType modeltype)
...

C# On GenoTipController must pro...

by Ants, April 20, 2010 01:07

I hope that you realize wit...

F9a9ba6663645458aa8630157ed5e71e Talk