TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

20 pointsby gaiusparxabout 14 years ago

10 comments

rschildmeijerabout 14 years ago
CLASS=$(curl <a href="http://www.classnamer.com/" rel="nofollow">http://www.classnamer.com/</a> | grep \"classname\" | sed 's/.<i>classname"&#62;\(.</i>\)&#60;.*/\1/') &#38;&#38; echo "public class $CLASS {}" &#62; "$CLASS.java" &#38;&#38; javac "$CLASS.java"
ollysbabout 14 years ago
Disappointed, thought it might suggest class names based on the attributes that you already know you want to associate with it.
barrkelabout 14 years ago
Is it a Markov chain generator using word fragments from analysis of a large Java corpus?
评论 #2283963 未加载
jacabout 14 years ago
As a VS Macro (Warning: VB)<p>Imports System Imports EnvDTE Imports EnvDTE80 Imports EnvDTE90 Imports EnvDTE90a Imports EnvDTE100 Imports System.Diagnostics<p>Public Module Module1<p><pre><code> 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 = "&#60;p id=""classname""&#62;" Dim endstr As String = "&#60;/p&#62;" 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 </code></pre> End Module
JonnieCacheabout 14 years ago
Can it invalidate my caches as well?<p>If so you're onto a winner.
younataabout 14 years ago
This is so awesome. Going to use this to populate the required "comments" for my CS labs.
Kototamaabout 14 years ago
<i>GenericFlugzeugDialog</i><p>I like this one :-)
jasonkostempskiabout 14 years ago
ThreadedThreadTester!? My brain just got Kickpunchered.
Adrockabout 14 years ago
This also works well as a baby namer.
edw519about 14 years ago
I was about to make a snarky comment like "ShootMeNow", until I realized that OP may actually have a real winner on his hands...<p>Think about it.<p>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?