Hacker Newsnew | past | comments | ask | show | jobs | submit | kelmop's commentslogin

I like this idea a lot. But why on earth it is written in ruby?! - I know the answer and it is "ok". But it is probably the reason why it won't never gain huge momentum, prove me wrong :)


Doesn't really matter what it's written in as long as its logic is easily extendable by someone who doesn't know Ruby. Preferably without having to code at all.


"DSLs" are one of ruby's strengths, no?


What language would you write it in?


Given that this program is mainly several regexp matches against the input string, perhaps perl or awk would be a perfect match here?



c :)


I knew my reply will be heavily hammered by rubyists. There is nothing wrong in the language but I think that shell tools should be written in C or in some other low level language without complex dependencies over ruby or java or python etc. or any other non-default installation stuff


You're not only being down-voted by Rubyists. For something that deals heavily with string manipulation and isn't speed-sensitive, C is most definitely not the best language to use.


I'm afraid that ship has sailed a long time ago:

    $ for bin in /bin/* /usr/bin/* /usr/local/bin/*; do
    >     if [[ -f $bin && "$(cat $bin | head -c 2)" == "#!" ]];then
    >         echo $bin
    >     fi
    > done | wc -l

    544
I imagine most of these are written in Perl (though there's surely a fair amount of Python and shell scripting in there, too), but that's still a high-level language with a complex runtime and dependencies compared to C.

To be fair, there's still about twice as many compiled binaries on that box, but having system commands written in a non-C language is by no means an exception.


I was curious about what the spread would be, so for one data point:

    $ file -b /bin/* /usr/bin/* /usr/local/bin/* | cut -f1 -d, | sort | uniq -c | sort -rn | head -n 10
       1028 ELF 64-bit LSB executable
        388 POSIX shell script
        265 Perl script
        130 ELF 64-bit LSB shared object
        126 Python script
         46 Ruby script
         38 Bourne-Again shell script
         24 symbolic link to `mtools'
         18 setuid ELF 64-bit LSB executable
         16 setgid ELF 64-bit LSB executable
After the top 10, most were symbolic links. So, seems shell scripts are by far the most common, with perl and python scripts not too far behind, and ruby making a decent appearance.


https://datatables.net/ I am not sure if this is the original base for Kendo UI's Grid. But this is great.


This has always been my go-to for data grids


where do you live?


Thanks for your comments(for all involved in this thread). For the moment I am living the UK. But also I have lived in France where I used symfony1.4. But now I am a bit lost trying to get my hand in different technologies. Thanks in advance for all.


I recommend checking out Django, it's a great framework, also really easy to approach and learn. Their documentation is perfect!


is this now viable for cluster? I mean simple backbone for 20+ for these with combined network and power unit? is there still any point at all?


It would make a nice cross between a dedicated server and a virtual server. You could rent out 20+ "nodes" where each node is a dedicated computer with low performance.


Why to use this over Flowdock? Flowdock: Group chat for teams. Integrates with GitHub, Jira, Trello.

www.flowdock.com


script anyone?! :D


Why not torrent them instead? I mean it: I assume that collecting bogus data doesn't do them any good and torrenting would save the publisher some server load. A script that buys every book, on the other hand, doesn't even contribute to popularity statistics.


I'm just going to go ahead and get just 1 the legit way. However I wish they made some sort of volume discount that wouldn't mean paying £300+ for a 10-15 book collection.

Honestly most of these books are on topics that would make them obsolete quite soon. The real practical use for these is as references across several topics. I understand it's hard to monetise that kind of thing though.


I for one would love to see a script. Haha.


There is freedom of choice. You don't have to use it.


Still, he is entitled to his opinion. You don't have to downvote it. :>


Sure


Thank you! a Great piece of software that I use constantly. The world is better place with developers like you. Go on and hug yourself.


I agree, if you are web designer and you only made some simple effects etc. etc. you should use jquery or plain js.

but if you are software developer etc. and you are creating a web-application you should angular or some other beefier framework, backbone/knockout/ember/whatnot.. or you can just re-invet the wheel



I especially like how easy you can guess the non-obfuscated version: http://www.hemingwayapp.com/js/hemingway-doubleup.js


"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable." :-)


is was there? :) sharing is caring!


Seriously, what obfuscator is used here?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: