Live data from Hacker News

Can't think of a good class name? Try this:

classnamer.com

1–10 of 12 posts

Re: Can't think of a good class name? Try this:

#6
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?

Re: Can't think of a good class name? Try this:

#9
post #4

Is it a Markov chain generator using word fragments from analysis of a large Java corpus?

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:

#10
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 = ""
        Dim endstr As String = "

" 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
Post reply on HN