News for hackers. Stuff that matters.
Re:Can't think of a good class name? Try this: by rschildmeijer on Thursday March 03, 2011 @08:16AM (#2283825)
CLASS=$(curl http://www.classnamer.com/ | grep \"classname\" | sed 's/.classname">\(.\)<.*/\1/') && echo "public class $CLASS {}" > "$CLASS.java" && javac "$CLASS.java"
Re:Can't think of a good class name? Try this: by ollysb on Thursday March 03, 2011 @08:06AM (#2283803)
Disappointed, thought it might suggest class names based on the attributes that you already know you want to associate with it.
Re:Can't think of a good class name? Try this: by barrkel on Thursday March 03, 2011 @08:02AM (#2283791)
Is it a Markov chain generator using word fragments from analysis of a large Java corpus?
Re:Can't think of a good class name? Try this: by iwwr on Thursday March 03, 2011 @08:58AM (#2283963)
You'd be surprised how many 'consultants' are nothing more than human Markov chain generators, spewing out words with an air of plausibility, but with no understanding.
Re:Can't think of a good class name? Try this: by jac on Thursday March 03, 2011 @09:48AM (#2284164)
As a VS Macro (Warning: VB)

Imports System Imports EnvDTE Imports EnvDTE80 Imports EnvDTE90 Imports EnvDTE90a Imports EnvDTE100 Imports System.Diagnostics

Public Module Module1

    Sub ClassNameGen()
        Dim res As String
        Dim req As System.Net.WebRequest = System.Net.HttpWebRequest.Create("http://www.classnamer.com/")
        Dim rsp = req.GetResponse()
        Using sr As New System.IO.StreamReader(rsp.GetResponseStream())
            res = sr.ReadToEnd()
        End Using

        Dim doc As Document = DTE.ActiveDocument
        Dim textDoc As TextDocument = CType(doc.Object("TextDocument"), TextDocument)
        textDoc.StartPoint.CreateEditPoint()

        Dim strstr As String = "<p id=""classname"">"
        Dim endstr As String = "</p>"
        Dim strt As Integer = res.IndexOf(strstr)
        textDoc.Selection.Insert(res.Substring(strt + strstr.Length, res.Length - (res.IndexOf(endstr, strt) + endstr.Length)))
    End Sub
    
End Module
Re:Can't think of a good class name? Try this: by JonnieCache on Thursday March 03, 2011 @08:15AM (#2283824)
Can it invalidate my caches as well?

If so you're onto a winner.

Re:Can't think of a good class name? Try this: by younata on Thursday March 03, 2011 @07:46AM (#2283760)
This is so awesome. Going to use this to populate the required "comments" for my CS labs.
Re:Can't think of a good class name? Try this: by Kototama on Thursday March 03, 2011 @07:57AM (#2283780)
GenericFlugzeugDialog

I like this one :-)

Re:Can't think of a good class name? Try this: by jasonkostempski on Thursday March 03, 2011 @12:27PM (#2284865)
ThreadedThreadTester!? My brain just got Kickpunchered.
Re:Can't think of a good class name? Try this: by Adrock on Thursday March 03, 2011 @12:07PM (#2284772)
This also works well as a baby namer.
Re:Can't think of a good class name? Try this: by edw519 on Thursday March 03, 2011 @08:12AM (#2283819)
I was about to make a snarky comment like "ShootMeNow", until I realized that OP may actually have a real winner on his hands...

Think about it.

It a Big 5 consulting firm acquired this and used it in their enterprise web app practice, would anyone ever be able to tell the difference?