TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

20 点作者 gaiusparx大约 14 年前

10 条评论

rschildmeijer大约 14 年前
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"
ollysb大约 14 年前
Disappointed, thought it might suggest class names based on the attributes that you already know you want to associate with it.
barrkel大约 14 年前
Is it a Markov chain generator using word fragments from analysis of a large Java corpus?
评论 #2283963 未加载
jac大约 14 年前
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
JonnieCache大约 14 年前
Can it invalidate my caches as well?<p>If so you're onto a winner.
younata大约 14 年前
This is so awesome. Going to use this to populate the required "comments" for my CS labs.
Kototama大约 14 年前
<i>GenericFlugzeugDialog</i><p>I like this one :-)
jasonkostempski大约 14 年前
ThreadedThreadTester!? My brain just got Kickpunchered.
Adrock大约 14 年前
This also works well as a baby namer.
edw519大约 14 年前
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?