3 ms·
So someone else commented on this and was down voted, but let's try again. This site literally wraps a shell command [1]: dig +nocmd example.com any +mult
by stephenr 9y ago
So someone else commented on this and was down voted, but let's try again.
This site literally wraps a shell command [1]:
dig +nocmd example.com any +multiline +noall +answer
Wrapping shell commands into more usable services isn't necessarily bad. But this is a pretty crazy example.
This 'app' is 500K (500 thousand!) lines of PHP. To run one shell command.
1: https://github.com/spatie/dnsrecords.io/blob/master/app/Http/Controllers/HomeController.php#L39 https://github.com/spatie/dnsrecords.io/blob/master/app/Http...
- tgdn 9y agoA bit of an overkill indeed...
- mosselman 9y agoWhile I agree with the broader sense of what you are saying I agree, but counting the lines of code like that is a bit unfair. Yes there are many, even for an app, but the source code of your terminal and the commands that you use should also be counted by your logic.
- stephenr 9y agoYou can only count the lines of code for my terminal if you also count the lines of code for the Browser. The source code of the command in question (dig) also doesn't count, because their application literally calls the `dig` shell command. So they need not just those 500K lines of PHP (I didn't bother to count the CSS or JS) but they are also dependent on a shell (probably /bin/sh, which could be anything deepening on their host OS) AND the dig command itself.
- jgrahamc 9y agoYou are mistaken in thinking that an ANY query will do what you want. ANY is not ALL; it does not return all records associated with a name.
- stephenr 9y agoI think you've grossly misunderstood my comment. I'm not arguing about what command is used - I merely copied the command the site in question is using. My comment is about the 1/2 million lines of PHP wrapped around that shell command, to present it as a site.