5 ms·
I use D for ... almost everything. https://github.com/CyberShadow?tab=repositories https://github.com/CyberShadow?tab=repositories Here's a bit of code from a
by CyberShadow 11y ago
I use D for ... almost everything. https://github.com/CyberShadow?tab=repositories https://github.com/CyberShadow?tab=repositories
Here's a bit of code from a personal shopping comparison program I wrote a few days ago, which combines some standard library constructs with my own libraries:
string findProduct(string name)
{
return
("http://www.tp-link.com/en/search/?q=" ~ encodeComponent(name))
.download
.readText
.toXML
.xmlParse
.I!(doc => zip(
doc
.findAll("#productResult > li > dl > dt > a")
.map!(e => e.attributes["href"])
,
doc
.findAll("#productResult > li > dl > dt > a")
.map!(e => e.children[$-1].text.strip)
))
.filter!(t => !icmp(t[1], name))
.I!(r => r.empty ? null : "http://www.tp-link.com" ~ r.front[0])
;
}
- giancarlostoro 11y agoI know your projects! You made RABCDasm, which is used extensively on a certain game I used to play around in, people are still using it. Hah, I mostly asked this question because I was reminded of you, you're one of the first developers I saw who does most of their work in D. Thanks for all your hard work, there's people out there who really found RABCDAsm really helpful, and it inspired a lot of fun software in the process.
- CyberShadow 11y agoAh, thank you! Long live game modding ;)