Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Demolishun it's not shell :) it's a full-blown programming language with tens of megs of packages
-
@ilikeglue nope.. I only use bash and one other tool that usually comes preinstalled with linux, along with the gnu toolset. Those are the only two binaries
-
The point of all my scripts is to have as little dependencies as possible to do the job. So that you could simply copy-paste them into any other machine as text and they would work.
If any dependencies required - I pick them to be as standard to the barebones OS as possible. -
Congratulations on the server, but did you just commented all the code in the comments followed by a special call for @highlight bot , followed by deleting your previously written text messages ?😆
-
It’s like doing PHP with IIS, or .Net with Apache. It is possible, but no one in their right mind should do that. Ever.
-
@NoToJavaScript but it's hell of a fun!
Ofc noone in their tight mind would write ping-pong, json parser, threads-like parallel-execution engine, chat app, other stuff like that with bash.
But I often do those things, because it's freaking fun, it's hell of a challenge and it makes you build efficient algorithms.
Everyone can import a json parser lib in their projects. How many of you have built one? How many of you know how exactly they work? How many of you could make a functional analog in a very limited language, like bash?
I doubt anyone would bother. It's a difficult challenge. And these are exactly the challenges I'm tripping from!
Some people party to have fun. Others sky-dive. Some like rafting. I prefer shell scripting! -
@netikras Python 3.8 is 25Megs for Windows installer. Also usually comes preinstalled in a lot of Linux distros. The python webserver is cross platform. I suppose you could run your bash server in Ubuntu shell in Windows?
I just mostly wanted to poke the dragon... -
-
@Demolishun How do I serve it my own content? I.e. how do I map "GET:/hello" with a response "hello world!" using `python -m http.server`?
I surely don't want to be serving my files. I'd like dynamic content :) -
bahua129045y
-
@bahua Sorry, I don't follow. Nor did I get the significance of that number nor can I figure out which comment you are replying to :) It surely doesn't look 'python', so please, help me out here :)
-
bahua129045y@netikras
It was just some shell nonsense to create, "dynamic" output. I didn't know you were looking for python. I can't help with that. -
@bahua aahh, I see now. That's why my comment was addressed to Demolishun ;) He was suggesting to use python instead
-
hjk10157315y@netikras 🤣 my cat was having an interest in the phone didn't see he did that. Prrr prr orr orr
Related Rants
Soo.. yeah.. I've just build a fully functional http webserver with BASH :) Yippee!!
Proof in the comments
random
webserver
bash
http