Downfall - "Droppin bombs since '04"

  • home
  • forums
  • calendar
  • gallery
  • handbook
  • raid hub
  • epgp
Home › Forums › World of Warcraft General › Everything Else

code golf (nerd stuff)

Vitriola's picture

Vitriola — Tue, 08/04/2009 - 12:50

Here is something where it is elegance that is the goal.  Write a function/method that will return a string of random alpha-numeric values of an arbitrary length.  Here is a way to do it in ruby:

def gen_random_string(len)
  (0...len).collect{rand(36).to_s(36)}.join
end

# and calling it and displaying the results is done like this:
puts gen_random_string(100)

Lets see the C# version.  :)

‹ Open Office 3.1. What can it do/not doGraduation / Out of town ›
  • Everything Else
garreth's picture

 This is pretty cool, I like

garreth — Thu, 08/06/2009 - 09:32

 This is pretty cool, I like these new examples. Now, time for both of you (and Carno) to step outside of your comfort zones:

Using the Ace3 libraries and Lua, write me an addon that let's me poll the entire guild (guildies who have the addon) and see all RAID IDs, possibly with indications of who is locked out of my raid IDs.

A new instance difficulty system was introduced in 3.2 so this would be a tremendously helpful addition!

carno's picture

UI stuff seems is a pita

carno — Fri, 08/07/2009 - 14:04

UI stuff seems is a pita because it's a forest of possible ways of building the UI. I think I'm going to build it with the studio application and just bring in the XML it generates. Guess I should bring my Windows7 laptop home this weekend.

I think I've got everything together to do offline instance polling support. I'm skipping Ace3 until I find a need for it. Binding to events and inter-guild/party/raid addon communication is built-in. All of the data consists of player names and identifiers so unlike recount or grid or something else, I don't have to worry about data sets for 100s of events.

I'm going for a caching system so I can later add crafting support. I haven't actually checked yet, but I wonder if linking professions works when the other player is offline - I suspect it might because it's not distance-limited like gear inspection. Anyways, whether it's simply storing profession IDs or the item IDs themselves, it's not a lot of data. If I need it, I found a library that does simple compression which I could use for bulk updates between guildies.

Vit: Wow addon data files are kind of like the windows registry - it only saves data to disk when you exit wow. The CombatLog is an exception. I don't know, maybe if you pushed enough data to an addon save file it'd save to disk more often but it's not something that could be relied upon.

For Garreth

Knoppix (not verified) — Fri, 08/07/2009 - 12:20

Link to the thread:

/node/7023

Vitriola's picture

Is this possible?

Vitriola — Thu, 08/06/2009 - 11:22

I have not investigated this but I suspect that it is impossible.  Such searches are probably only possible with people that are online.  Also, I will need to see if it can be done with people you are not already grouped with.  But I am thinking about it!

saedo's picture

According to the mod

saedo — Thu, 08/06/2009 - 11:40

According to the mod description, it is not possible to simply ask others for raid id.   It is possible to query your own id, and send that to sync with others with the mod.     Likely can keep a memory of it after you found it once (til reset).   

Vitriola's picture

Interesting idea

Vitriola — Thu, 08/06/2009 - 11:08

I have never programmed in LUA but this seems a worthy project.  Still, I would have to program in something that says that I have everything in perfect order and that I rule the universe, or something like that.  I will look into it.  :)

saedo's picture

Could see if this still

saedo — Thu, 08/06/2009 - 10:20

Could see if this still works, or at least rip code off them as a start:  http://wow.curse.com/downloads/wow-addons/details/griq.aspx

I will look into this, should

Knoppix (not verified) — Thu, 08/06/2009 - 10:57

I will look into this, should be doable in a weekend pending learning all the new UI hooks and refreshing my lua experience.

Might take longer since I have to put chair moulding up this weekend, cant make it to LA G :/.

Heh maybe this weekend, I

Knoppix (not verified) — Thu, 08/06/2009 - 09:50

Heh maybe this weekend, I have not made an addon since early BC and alot of UI hooks have changed.

To be honest I think we

Knoppix (not verified) — Thu, 08/06/2009 - 00:46

To be honest I think we should have a little programming competition, to compare languages and their functionality and we all might learn something new about the technology each other uses in our jobs.

If you are intrested let me know, if not that is fine too.  It's just more fun to me to have a little competition and learn rather than so called code golf.

I guess try to refrain from bashing code but rather embrace the power of technology and respect it instead of assuming it is shit.  I don't assume anything is shit (some stuff is shit, but yeah) but I usually do quite a bit of analysis before selecting a language to program a project in.

Vitriola's picture

Well, we can try.

Vitriola — Thu, 08/06/2009 - 06:14

I must confess that I am seeing mixed signals here.  I would remind you of what I said in the other thread, "C# has a good deal going for it.  Having Anders Hejlsberg in the lead makes a huge difference.  I worked with him when I was an engineer at Borland.  C# has, therefore, a LOT in common with Delphi, which makes it a good thing."  I meant that then and still believe it now.  fwiw

 

Each language has bits that are better than other languages and which bits are better also vary.  Still, there is no reason not to have an opinion, and I will consider that I am allowed mine as others are allowed theirs.  I am including a memo that I wrote here at work.  In it, I advocate ruby over java.

 

Note:  This does not represent even half of the reasons I have for preferring ruby.  It is aimed at answering specific questions that were asked when I spoke with bosses on the subject.

 

Disclaimer:  I have tried to get rid of all the extra lines that the website keeps adding to this post.  After about 20 minutes of trying just to do that, I give up and will let the extra lines have their way rather than just delete the post in disgust.  Sorry about how long it is to read.  I tried to make it simple.

 

We use several languages for our website development.  Java, Java script, cold fusion, Delphi, PERL and even smalltalk and some fortran.  For what do we really want our programming language?  

 

1.  Well, it will have to perform well.  If it is too slow, too clunky or bug prone then it is useless.  

 

2.  It will need to be cost effective.  There are many very expensive website development solutions.  In my experience, off the shelf are sold as “one size fits all” which translates to a huge and monolithic system which has mounds of features which look cool in a sales demo but are rarely needed.  I have seen demos of such things right here at Vought.

 

3.  It should enough of an industry wide standard that we can find people who are skilled in its use.

 

4.  It should be simple enough that people that will be changing to it can master it without an oppressive learning curve.

 

5.  It should be well documented.  Preferably it should be well documented enough that there are several quality third party books teaching it from various angles.  

 

Each programming language has its devotees and detractors.  Here are my opinions on major languages.

 

1.  Java:  This is a workable and reliable language.  Its downfall is that it is verbose.  You need to write a lot of code to get things done.  

 

I think that we should use Ruby on Rails.

 

The language is more terse than Java and much more understandable.

 

Java:

 

new Date(new Date().getTime() - 20 * 60 * 1000)

 

Ruby:

 

20.minutes.ago

 

While being fluent in Java makes it much easier to figure out what is going on, even non programmers can see what the ruby is doing at a glance.  This very readable approach which makes going over unfamiliar code go much faster and easier.  It also is a large part of what makes ruby a language so beloved by its practitioners.

 

Now, here is the declaration of an empty class in both languages:

 

Java:

 

Class Circle

 

  private Coordinate center, float radius;

 

  public void setCenter(Coordinate center)

 

  {

 

    this.center = center;

 

  }

 

  public Coordinate getCenter()

 

  {

 

    return center;

 

  }

 

  public void setRadius(float radius)

 

  {

 

    this.radius = radius;

 

  }

 

  public Coordinate getRadius()

 

  {

 

    return radius;

 

  }

 

end;

 

Ruby:

 

class Circle

 

  attr_accessor :center, :radius

 

end

 

Believe it or not, the two code snippets are absolutely equal.  The getter and setter methods in Ruby code are generated automatically, so not only you do not have to write them, but they are not even there to clutter the code.  I have seen arguments from Java guys that stuff like this (i.e. the public static void main … thing, getters/setters and other boilerplate code) can be generated with any decent GUI like Eclipse (or by tools like XDoclet etc) is a non-issue. Well, as for their generation, let us say this is true. But for the readability of code it is absolutely not!

 

Now, let’s see a demonstration on the following task: Open the file ‘test.txt’ and write all the sentences to the console (one sentence per line) which contain the word ‘Ruby’. First, the Java solution:

 

Java

 

import java.io.BufferedReader;

 

import java.io.FileReader;

 

import java.io.IOException;

 

import java.util.regex.Matcher;

 

import java.util.regex.Pattern;

 

public class Test

 

{

 

    public static void main(String[] args)

 

    {

 

        try {

 

            BufferedReader in = new BufferedReader(new FileReader("test.txt"));

 

            StringBuffer sb = new StringBuffer();

 

            String str;

 

            while ((str = in.readLine()) != null)

 

              { sb.append(str + "\n"); }            

 

            in.close();

 

            String result = sb.toString();

 

            Pattern sentencePattern = Pattern.compile("(.*?\\.)\\s+?");

 

            Pattern javaPattern = Pattern.compile("Ruby");

 

            Matcher matcher = sentencePattern.matcher(result);

 

            while (matcher.find()) {

 

                String match = matcher.group();

 

                Matcher matcher2 = javaPattern.matcher(match);

 

                if (matcher2.find())

 

                    System.err.println(match);

 

            }

 

        } catch (IOException e)

 

          {

 

            e.printStackTrace();

 

          }     

 

    }

 

}

 

It is quite straightforward what this relatively simple code snippet doing - but if this is straightforward, what should I say about the Ruby version?

 

Ruby

 

File.read('test.txt').scan(/.*?\. /).each { |s| puts s if s =~ /Ruby/ }

 

I read this in a thread about converting an Excel date to java date:

 

java.util.GregorianCalendar(1900, java.util.Calendar.JANUARY,1).add(java.util.Calendar.DATE, java.lang.Integer.parseInt(row3.DeliveryAttributSetDate)-1);

 

This is why people program in Ruby!

 

 

 

 

just examples in C#:

Knoppix (not verified) — Thu, 08/06/2009 - 10:53

just examples in C#:

and FFS put you code snippets in between [pre][/pre] tags. Hint change the [ or ] to < or > and change to plain text editor.  Also with the input format as full html.

//--Example #1
DateTime.Now.AddMinutes(-20);

//--Example #2, auto creates the private variables :P
public class Circle
{
    public float GetRadius { get; set; }
    public Coordinate GetCenter { get; set; }
}

//--Example #3, with no RegX necessary, as well as showing off the power 
//--of try, catch, finally.  Also checks to make sure the file exists instead
//--of bowing up on a non existant file.  Small amount of code with
//--complete error handling.
using System;
using System.IO;

public static void Main()
{
    StreamReader stream = null;
    String currentLine = String.Empty;

    try
    {
        if (File.Exists(@"C:\test.txt"))
        {
            stream = new StreamReader(@"C:\test.txt");

            while (stream.Peek() >= 0)
            {
                currentLine = stream.ReadLine();

                if (currentLine.Contains("Ruby"))
                {
                    Console.WriteLine(currentLine);
                }
            }
        }
        else
        {
            Console.WriteLine("The file does not exist!");
        }
    }
    catch (Exception ex)
    {
        Console.WriteLine(ex.Message);
    }
    finally
    {
        stream.Close();
    }
}

I am still not sold on the lines of code being smaller making it more desirable, I think the C# is far easier to understand as well as maintainable (as well as any language with the same or similar syntax to C# aka PHP, C, C++ etc.).  Also your Java version could have been much simpler.  Where can you place your comments about what each line of the operation does, your code is all on one line :/.  Also how do you go about handling exceptions, is it as elegant and the C# version?

This is suppose:

begin
   #do something
rescue
   #handle exception
ensure
   #clean up
end

I can also stack exceptions instead of catching the generic catch all "Exception":

try
{
    //-- awesome code here
}
catch (IOException ex)
{
    //-- do something
}
catch (NullReferenceException ex)
{
    //-- do something
}
catch (SyntaxErrorException ex)
{
    //-- do something
}
finally
{
    //-- clean up
}
Vitriola's picture

I agree!

Vitriola — Fri, 08/07/2009 - 09:23

"and FFS put you code snippets in between [pre][/pre] tags. Hint change the [ or ] to < or > and change to plain text editor.  Also with the input format as full html."

The formatting of my post was horrific.  I am at work and did not have the leisure to punch my way through it and I cannot go back and edit it now.  Garreth, we should change that.  The author should be able to edit or delete any post, it seems to me.

Again, sorry that the formatting was so horrific!

I could not agree more,

Knoppix (not verified) — Fri, 08/07/2009 - 09:35

I could not agree more, I would love to edit any post I ever made.

garreth's picture

 Keep it civilized in here or

garreth — Wed, 08/05/2009 - 18:03

 Keep it civilized in here or I delete it all. So far there's been good facts. Keep it clean.

I am done comparing scripting

Knoppix (not verified) — Wed, 08/05/2009 - 00:50

I am done comparing scripting hobby languages to useful languages used in enterprise level applications.  I could care less about OMG the lines of code and the code golf website it means nothing.  I do not have to prove that the .NET framework and C# are better than Ruby just google it, pretty easy to find which has more power, which has more documentation, which is better for LOB (line of business) and also rapid development.  Just a hint it sure as hell is not Ruby.

Ruby has a framework going for it called Ruby on Rails which is used for web development and that is really about it, other than that Ruby is used in typical scripting language applications such as text processing and "glue" or middleware programs and is also suitable for small, ad-hoc scripting tasks that, in the past, may have been solved with Perl.  I am aware Twitter is written with Ruby on Rails wich is a pretty decent framework for web development.

Also another thing to keep in mind is that most hosting companies for web applications "used" to support Ruby hosting but stopped doing so because of the lack of support for the runtime for Apache had and how complicated it was to setup.  Whereas .NET C# hosting is so abundant you can get a hosted web application with a database for under $25 a month.

Lets see you make a full demo application that has an interactive GUI with browse dialog, output filename textbox, password textbox, progress bar, encrypt button, decrypt button and a cancel button and running a long encoding process on a thread leaving the GUI interactive and not locking it up.  Basically an encryption program that takes a file asks for a new filename a password to encrypt with and displays the progress to you in a progress bar using the AES encryption routine.  Also the ability to decrypt the file you just encrypted using the password you you provided.

Can you do a full very easy application like this with a self installer in less than 1 hour that will run nativley in windows with Ruby?

If you would like me to make this program for you and provide the code, I woud be more than willing to give you the full project in C# sometime tonight or tomorrow when I can spare the free time to write this in an hour or less.

The smallest shortest code is not always the best code, in reality tiny code can be a nightmare to debug and very hard to figure out what an individual was trying to do. 

carno's picture

Religion. Pizza. My people are addicted to it.

carno — Wed, 08/05/2009 - 14:50

You might be mistaken. First, why would you want something to run on Windows?

Post-prologue: I agree on lines of code thing; I didn't reply to the prior post because I've got a lot going on and it's irrelevant except as a little puzzle; as some folks do crosswords or sudoku instead, the post itself doesn't bother me (note 'golf' in the subject).

I admit, Linux sucks, but with Microsoft you're paying an arm and a leg to do *anything*. I'd take Java in a heart beat over Microsoft if Ruby wasn't an applicable option. It has nothing to do with the language or "out of the box" capabilities. With the money saved by not depending on pay-for-use-closed-source development environments I can pay a developer who will write something better than microsoft provides out of the box. Sure, it'd be great if whatever you're writing is easily provided for by microsoft but in most cases I'm sure it's not. If microsoft made everything that easy and available we wouldn't have jobs and microsoft wouldn't have needed to pull down billions in debt over the last two quarters. Suffice to say they could have EASILY been "there" with product announcements they made in 2001 and they're not because they abandoned those projects (sql integration into winfs+exchange; getting rid of shitty 16/32bit interfaces; implementing consistent and elegant 64bit .NET interfaces and breaking backwards compatibility for things which need it; properly re-implementing exchange forms and VBA via .net et al).

Moreover, with Microsoft you're dealing with a talent pool of systems administrators who are used to a system which does everything for them and operates on the premise of support being available rather than detailed documentation and open source; microsoft has great (and I mean FANTASTIC) documentation however all of that comes to a screeching halt when you hit a limitation unless you've got a $mm contract with them. As a culminating result Microsoft has created a system that has derived an administration environment which requires multiple sysadmins to be on payroll and in most circumstances requires dedicated developers to be insulated from any type of system level access which they need to do their job well. As an example, you mentioned being able to spawn off a thread that doesn't die -- good luck getting a sysadmin to setup IIS or system policies for your app to have the appropriate permissions. I will give Microsoft that much - they've done an awesome job with their permissions and policies systems but the downfall of that is that building an application is a three-layer nightmare of security + sysadmin + application instead of just best practices + application. If this doesn't apply then it's only a matter of when not if, it will become a problem.

$25 Shared hosting is a bad idea. If you're hosting your content then everything on it is insecure. No arguments! I'm too familiar with windows and you NEVER want anyone else other than directly-hired authorized personnel to have any type of system access to a windows box; ie, shared hosting is out unless you don't care about the privacy of that AES encrypted data :) That said, ec2, softlayer, mt, etc. both support windows (dedicated system), so no real problems anyways. It's only up until this year that a Microsoft OS has really been secure from the outside, from the inside Microsoft still has a ways to go compared to Unix or Linux. I'm not conspiring on this, if you think windows is secure on the inside you've been sold fodder. There's a handful of security organizations which routinely find access-level compromises on a weekly basis and root-level compromises on a monthly basis. Unfortunately anyone who discovers a whole or bug or issue has to wait for one of these companies to discover it and for microsoft to patch it because nobody else has access to patch it themselves except by inefficient external insulation (ie, sysadmin task).

You're right, .NET/C# owns the domain of Windows UI applications. No arguments there but unfortunately the most profitable LOB technologies aren't Windows UI apps.

Just as a note, Rails is "ok" or "good" and Twitter's systems suck in many ways. Rails is good because it along with Ruby make developing on a team with revision control a BREEZE. Meta-programming exponentially increases code maintainability and as far as libraries are concerned (ie, AES), rubyforge or github will likely have a "gem" to do whatever you want. If you can't find a library you like or that does what you want you can easily bind to C calls to write your own (after all, .NET is just a bunch of calls to the CLR which itself is likely written in C). Which brings me to my next point...

The technology itself doesn't mean shit; while I disagree with Twitter folks on how they're doing things, the business model has nothing to do with the efficiency of the technical model as long as it Just Works and as long as their consumers are happy. Without happy consumers and a team of folks who work together they could have the best technical minds and the best programming language and still not create anything of value.

I've seen good projects, great projects, and shitty projects written on many platforms / languages / frameworks. Aside from corporate desktop apps for < 100 users, Microsoft's "just enough to secure paying dividends to shareholders" attitude trickles down to ineptitude at so many levels that productivity is greater with other systems. I will add another exception which is if you're using one of Microsoft's mainstream products and deploying some type of custom add-in which adds value, for example, a module for handling XYZ business with one of their accounting packages; there is a place Microsoft excels. This of course provides for the ultimate dichotomy that when you're writing a significant Application with Microsoft, just like Apple's "App Store", you're competing directly with Microsoft.

The movements which bring me to these statements are Software Assurance, Microsoft Dynamics, and Microsoft's general shift towards outsourcing support and generating revenue through acquisitions instead of ingenuity.

As a software and systems development company, Microsoft is dead. They're smart though because that entire market has peaked which makes their acquisitions and Media (XBox is awesome) initiatives a profitable move.

.NET+CLR is a patch that just covers up more shit. C# is a lucky stroke and exists only because they could afford one of the best language developers who incidentally created a language which could carry forward their shit interfaces for a few more years.

You can bet your job that if Microsoft doesn't reinvent themselves with whatever follows .NET and Windows7 that Google, Cisco, Oracle, or some combination of corporate-backed open source systems will be your new employer and a far better kool-aid in 5-10 years. At the same time Microsoft will most likely remain profitable and probably has the talent and capability to continue on for 15 years without a hitch, just not with desktop or Internet software (they'll make more money doing something else instead).

This is my analysis about Msft I couldn't post ingame. This is the short version without references. The long version might as well be a book on the amazing feats Microsoft has performed, their current critical state (over 5 years anyways), and what can be expected of their future performance.

You Sir, are on drugs

klingquaad — Wed, 08/05/2009 - 17:44

 You have to be on drugs to think MS and .NET will be out of the picture in 5-10 years. First of all, no other platform is making the strides MS is to keep moving forward. Lets take Java for example. The Java you see today is the Java you seen 15 years ago. Sure the the jdk version number keeps changing and libraries are added but nothing  in the methodolgy is improving.  Have you ever tried developing a web service in Java by hand? Maybe by using Axis 2 ? Maybe getting these services talking through BPEL? Its like pulling teeth. In .NET it literally takes less than 5 minutes to code by hand the web service and the proxy. And did you know that C# is not .NET, C# is a mere tool to write IL for .NET. Did you also know that there are over 40 .NET langauges beside VB and C#? You'll be surprised that you can actually code .NET in PHP, ML, Python and get this... EVEN RUBY. Thats right, yo ucan take your favorite language and use it inside a Visual Studio IDE and create a .NET application. 

You're right, .NET does own the realm of Windows development. And that brings us to another point. 90%+ of operating systems today are Microsoft. So the fact that .NET being the platform of power for 90%+ of operating system in production gives a good hint that the development isnt going anywhere soon.

Now lets talk business applications. I agree to some point that stand alone windows applications are somewhat dated as do-it-all business solutions. The industry is headed towards SOA and service oriented architectures, even internally. MS has begun to make tremendous strides in this area. Have you heard of WCF and the power behind it? WCF takes in almost a complete picture of the WS-* standards and complies with all SOAP interfaces with REST to come in October with .NET 4. And talking about dishes out the bucks, I'd like to see anyone come up with a platform taht will beat out WCF without paying THOUSANDS instead of mere only requiring IIS for WCF. WCF is also .NET and is coded in all 40+ .NET languages. And something you mentioned in your post which was the terms 'Just Works'. Say not using a Java application for 6 months and the developer left and you need it up and running. Your best bet is to rewrite that application from scratch because you arent going to get it working. Java gives you next to nothing in debugging support.

MS is making good headway into the future also with WPF. Talk about 16 bit interfacing, Java cant touch WPF in user interfacing. Sure WPF is a bit much for the current CLR but come October with the new CLR developed around optimizing the WPF operations. I can sit here for another hour or 5 and talk about new technologies MS is working on but I wont. I dont hear anything about Java making way, or Ruby pushing forth. No Progress. As long as MS keeps introducing new and 'useful' stuff into the industry, people will pay for and people will use it. Doesnt matter how much it costs. 

Sure MS has had some shit releases, who hasn't. Vista is shit, but just do a google on Windows 7 reviews and you will find that it is seas away from Vista. Not all of their development tools are kickass and rockin either. Linq needs some work and I wouldnt touch the entity framework for nothing. BUT at least they are making efforts to progress forward right direction, PLinq is kickass.

On the lines of code thing, I understand that its just a hobby to some but dont expect that to fly in a team of developers. If you have ever had to maintain an application and needed to alter some business logic somewhere in the code and you find it has all been coded for minimal amount of keystrokes possible, you'll be wanted the head of the developer real quick. Yes it takes up less space in the file but it is not practical unless you and only you are maintaining that application. Other wise all those operations that are in that one line better be separated out and commented because you never know what changes are coming next and who is going to change them and dont blame it on the second developers ability to disect code.

Sure, Ruby can be great in some areas of web development where only mere scripts are needed. But what if you want something other than MVC? Does this have to be forced upon me if I use Ruby on Rails? That sucks. RoR is interpreted while .NET is compiled. Makes a difference.  Yes RoR succeeds ASP.NET in getting something u p, online  as fast as you can, but if you actually take a peek behind the scenes, you will see that RoR actually has MORE code that the .NET application. Not Less. Even tho in the Ruby editor it was less. This kinda makes Ruby LOC a non point.

MS is also heavily invest in the XAML language for future development. Basically , the application you write in XAML can port to web, mobile, or windows desktop application with the same code. Which , again MS is making strides to keep its top spot.

 

Hey friend, klingquaad is a

Knoppix (not verified) — Wed, 08/05/2009 - 17:59

Hey friend, klingquaad is a real life friend of mine, all I did was link to him and he got excited :)

But yes try to keep the nerd rage down :P

I have nothing else to say, I

Knoppix (not verified) — Wed, 08/05/2009 - 17:26

I have nothing else to say, I am tired of arguing with people that think M$ and everything they produce is shit and Linux and open source is far better, some tools that are open source are awesome some languages are awesome (PHP) but definatly not all open source dominates M$.  Everytime I run into these arguments it is always with people who hate M$ and love Linux anything that goes with it.  I am not a fanboy just a person who sees the bigger picture of the business world and what is expected from custom software development.  I also have never had the sysadmin problems you are stating and most of the M$ stuff is easier to configure by far (ie. IIS compared to Apache and many others).

As far as M$ being expensive, that is also an incorrect statement.  They provide business development pack for starting companies that give EVERY MSDN piece of software they make for free for 3 years unless you make a gross income as a company of more than a 1 million dollars, how is that for providing inexpensive solutions.  Free Windows Server, free SQL Server, free Exchange Server, free CRM, Sharepoint I think you get the point.  95% (off the top of my head) of todays business rely on M$ products, that is why I develop for and want software that runs on Windows.

Also the reason M$ cannot produce the BEST "off the shelf" software is a legal issue.  They have been sued already for trying to be a monopoly hence why they tread lightly when directly competing with smaller companies.  They give smaller companies an opportunity to use M$ tools to make a product and become successful. Yes M$ has problems but what company doesnt, there is not one company that never has problems.

As far as the hosting that was an example, any serious program should always be hosted internally and I agree 100% with that, it was an example.

As for Java, good luck finding the same functionality that .NET provides, they were the same in .NET 1.0 but now with .NET 4.0 coming all I have to say is Remoting, WCF, WPF, WFF, LINQ and much more, the pure power of those technologies is unmatched, please look them up for what they are if you don't believe me.

There are so many inconsistent remarks made in the post I care not to go on explaining all but three.  C# is not a standalone programming language, it is a language that is used to work with .NET and nothing else just like VB is to .NET.  Installing and giving applications proper permissions is possibly the easiest thing you can do with project installers, you configure the installer and end of story it works like a charm.  Third, .NET is closed BUT use a free application called Reflector and you can see how every function call .NET is written.  Visual Studio has a completly free of charge version that you can write applications to sell in, like I said before.  I suggest reading the whitepaper on .NET 4.0, it might enlighten you.  Btw .NET can be compiled for 64bit optimization with ease and auto swaps to 32bit if it runs on a 32bit OS, vise versa.

http://www.microsoft.com/express/download/

Also dont tell me it is M$ fault that 64 bit isnt being pushed, its the lazy ass application developers that are too gdamn lazy to make their shit work in a 64 bit environment, which is still problematic today hence why they still offer 32 bit OS, blame the software devs that refuse to update their software not M$.

I was not bashing any language or putting anyone down and never said anything was junk or complete shit only that it just is not as optimal for LOB, I was just was trying to get accross the power of .NET C#.  I am sorry you have had bad experiences with M$ and attacked the post as it was a direct attack at you, as that was not my intention.  I use open source languages when necessary and some are very useful, but for any enterprise level application .NET C# is the only anwser.

This was not a flame fest, and I care not to talk about it anymore.

Vitriola's picture

OMG!

Vitriola — Wed, 08/05/2009 - 13:24

Holy COW!  I put this here for fun.  You turned it into a holy war and fired a full broadside.  If it is not fun, forget about it.  Full on rants are unproductive and I do not want a fight.  As I have said elsewhere, people want different things and there is no "one size fits all" so why go ballistic over something that I have said elsewhere is just for fun and entirely trivial?

Relax.  Have some chocolate.  Life will be the better for it.

Vitriola's picture

extra credit

Vitriola — Tue, 08/04/2009 - 12:53

I suppose that we could add something to give upper and lowercase alpha values.  Again, here is the ruby way:

def gen_random_string(len)
  (0...len).collect{rand(36).to_s(36)}.map{|x| (rand<0.5)?x:x.upcase}.join
end

It is called the same way.

Random image

Knoppix in Bora Bora

Navigation

  • Content
  • Raid Parses
  • The Downfall Handbook
  • User list
  • Polls
  • Groups
  • Popular content

Who's new

  • Babyconan
  • Grantlius
  • Ecology
  • fumabomb
  • firstslacker

Latest image

PMS Logo for Legion

Archives

  • September 2016 (1)
  • August 2016 (5)
  • July 2016 (8)
  • June 2016 (2)
  • May 2016 (1)
  • March 2016 (3)
  • February 2016 (2)
  • January 2016 (5)
  • August 2015 (1)
  • May 2015 (3)

Recent comments

  • App closed with extreme
    7 hours 17 min ago
  • Guild App closed at his
    4 weeks 1 day ago
  • Once we get the new site,
    7 weeks 1 day ago
  • Is the time frame posted in server time?
    7 weeks 2 days ago
  • Awesome. Thanks. Once I
    9 weeks 1 day ago
  • I'd be happy to stick around
    9 weeks 1 day ago
  • Possibly
    9 weeks 1 day ago
  • More necro
    10 weeks 2 days ago
  • Story time!
    11 weeks 3 days ago
  • I;ve downladed drop box, if
    13 weeks 17 hours ago

Active forum topics

  • April 1st 2006
  • Nostalarious: "Blizzard wants Vanilla servers"
  • Galaga 13/13 Heroic by Deposing A Tyrant
  • Poker Face Achieves in one night! Glory of Hellfire Raider
  • Glory of The Hellfire Raider
  • Galaga Destroys Heroic Archimonde AOTC 12/13H
  • Galaga takes out Thomas the Train (7/10 H BRF)
more

Recent blog posts

  • So I guess this is the end...
  • Shaedo's Soloing Extravaganza
  • Shaedo UI Extravaganza
  • Big site updates this weekend!
  • This is for all the Hearthstone players out there
  • My First Full Day on Beta
  • State Of <Downfall> 2014
  • Scaron taking a break
  • How Gorgonnash's Connections went
  • Let's Talk about Mythic Raids
more

Poll

What do you think about no flying for an entire expansion?
YES) It makes me feel more immersed in the game lore.
15%
YES) It encourages more PvP! (Please explain how in comments)
5%
YES) I miss riding my ground mounts.
9%
MAYBE) If you make all of my flying mounts able to be ground too.
8%
MAYBE) if ground mounts are sped up to 200% speed (or higher)
26%
NO) I don't have enough time when I'm on to be riding everywhere
7%
NO) I have spent too much time getting various levels of flying to be wasting it.
11%
NO) It encourages more PVP! (please explain in the comments)
0%
NO) I love flying.
19%
Total votes: 74
  • 38comments
  • Older polls

Popular content

All time:

  • Professor Putricide Strategy Page
  • Rotface Strategy Guide
  • Arthas, the Lich King Strategy Page
  • Sindragosa Strategy Page
  • Toravon the Ice Watcher Strategy Guide
  • home
  • forums
  • calendar
  • gallery
  • handbook
  • raid hub
  • epgp

I notice your oeuvre is monochromatic.
This site is proudly powered by Drupal.