如何搜索Delphi相关的Github代码库

Delphi GitHub repositories

如何搜索Delphi相关的Github代码库

Geplaatst op 30 januari 2021

原文地址:https://dannywind.nl/delphi/delphi-github-repositories/

Searching for Delphi repositories on GitHub is made more difficult than it should be.

在Github上搜索Delphi相关的代码库比原来要复杂的多。

GitHubNoLanguageDelphi (1)

What? No Delphi?

什么?在开发语言下拉框中没有Delphi?

The main reason is that Delphi is not listed as a language. OK, Delphi is a development environment, not a language, fair enough. But what about Object pascal?

主要原因是Delphi没有被列为一种开发语言。好吧,Delphi是一个开发工具,不是一门开发语言,足够公平。但是我们再来看看“Object Pascal”的结果会是怎么样的。

GitHubLanguageObjectPascal-1024x262

GitHub has no language “Object Pascal”

GitHub上面没有”Object Pascal”这门语言

Why is Object Pascal is not listed?

为什么Object Pacal没有被列出来?

With a little more research you can find out there are language items for Pascal and Component Pascal. But if you search for language:”Component Pascal” its kind of a dead end with just around 900 entries.

在更多的观查,你会发现里面有Pascal和Compoent Pascal的选 项,但是你如果根据“Component Pascal”这门语言进行搜索,你最多只能搜索到900个结果。

GitHubLanguageComponentPascal-1024x260

search for language Component Pascal has some results

根据Component Pascal这门语言进行搜索只有一点点结果。

Some of these are relevant for Delphi, but some are not. Oh, but that’s logical, you might think, because Component Pascal is not meant to refer to Delphi. And you’re right, Component Pascal is officially the name for a language based on the Oberon-2 language which was originally based on, but incompatible with, Pascal.

其中一些和Delphi相关,但有些则无关。哦,但是你可能会觉得这是正常的,你会认为,因为Component Pascal并不意味着Delphi。没错,Component Pascal是基于Oberon-2语言的正式名称,这门语言最初是基于Delphi的,但是与Pascal不兼容。

Then you decide to just do a manual search in GitHub on language:Delphi.

这时,你决定在Github中根据开发语言Delphi手动搜索。

GitHubLanguageDelphi-1024x261

language:Delphi “Helpfully” re-routed to Component Pascal

开发语言:Delphi重新指向了Component Pascal

Which doesn’t get you very far, because GitHub “helpfully” re-routes your language:Delphi search to the Component Pascal results.

这并不能给你更多结果,因为GitHub把你的开发语言Delphi重新指向了Component Pascal的搜索结果。

So then you decide to just search for language:Pascal and yes, then the results are there.

因此,当你决定只搜索开发语言:Pascal,好的,结果在这里:

GitHubLanguagePascal-1024x847

No drill down for Languages if you search for language:Pascal

如果你搜索开发语言Pascal,则不需要继续深入挖掘语言。

But not in the best format. Why? Because you cannot drill down with the Languages list box on the left side for repositories in other Languages that have something to do with Delphi. So using this path, you would probably never find this Delphi de-compiler that’s written in C++.

但是这不是最佳的格式。为什么?因为你不能在开发语言列表框里搜索到与Delphi相关的其他语言。因此使用这个方法,你可能永远找不到使用C++编写的Delphi反编译器。

So what to do?

那该怎么办?

Luckily there is a workaround. We just need to do a search for Delphi in the readme files that accompany each repository. Then we get this result.

幸运的是这里有一种解决方案,我们只需要在每个代码库附带的readme文件中搜索Delphi。这样我们就能得到结果。

GitHubReadmeDelphi-1024x852

search for Delphi in readme files

在readme文件中搜索Delphi

These results are more relevant, but even better; we can now drill down using the Languages box on the left bottom of the screen.

这些结果更有关联,更好;我们现在能使用屏幕左下角的开发语言框来继续深挖.

GitHubReadmeDelphiPascal-1024x851

drill down using languages based on Delphi readme search

基于Delphi的readme搜索,选择开发语言继续深挖

That’s more like it!

这还差不多!

Besides Heidi SQLPython4Delphi and MARS we now also find a handy repository with a curated list of many relevant Delphi repositories.

除了HeidiSQL,Python4Delphi和MARS,我们现在也还能找到一个方便的代码库,包含一系列与Delphi相当密切的代码库。

GitHubCuratedListOfDelphiLibraries-1024x868

a curated list of Delphi libraries

精选的Delphi代码库列表

So there you have it.

它样你就拥有了它。

Just go to GitHub Advanced Search and type Delphi in:readme and you’ll find what you need.

只需要去GitHub高级搜索页面并且在readme中输入Delphi,你就能找到你想要的。

GitHubSearchDelphiInReadme-1024x391

use Delphi in:readme in GitHub Advanced Search

在Github高级搜索页中的readme中使用Delphi进行搜索

Keep in mind, GitHub is not the only location for Delphi repositories. For instance Spring4D only has a placeholder on GitHub, but can be found over here.

请记录,GitHub并不是Delphi代码库的唯一位置。例如,Spring4D在GitHub上仅具有一个占位符,但可能在此处找到。