Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Emailing Passwords? In 2020?

by Bod (Parson)
on Nov 15, 2020 at 19:43 UTC ( [id://11123668]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Emailing Passwords? In 2020?
in thread Emailing Passwords? In 2020?

Fair points up to a point marto. But, regardless of the framework used, there is no intrinsic reason why form input cannot be post-formatted instead of users having to wrap comments in HTML markup.

I know little about web frameworks but your comments validate, in my mind at least, my approach to writing web sites which is to do it myself rather than relying on other people's libraries. After all, for the most part, the web is only made up of text organised with a bit of markup here and there :)

Replies are listed 'Best First'.
Re^5: Emailing Passwords? In 2020?
by marto (Cardinal) on Nov 15, 2020 at 20:10 UTC

    "Fair points up to a point marto. But, regardless of the framework used, there is no intrinsic reason why form input cannot be post-formatted instead of users having to wrap comments in HTML markup."

    It's non trivial, likely more involved than you expect, at no point did I say it cannot be done.

    "I know little about web frameworks but your comments validate, in my mind at least, my approach to writing web sites which is to do it myself rather than relying on other people's libraries. After all, for the most part, the web is only made up of text organised with a bit of markup here and there :)"

    Frameworks like Mojolicious, and previously CGI.pm have many benefits over rolling your own. Many hands/sets of eyes It's unlikely that rolling your own will have all of the features of Mojolicious or be as efficient. And reinventing wheels all the time is fine, if you want to spend time inventing wheels rather than building wagons. See also CGI::Alternatives The modern web is not just text with markup any more.

      Thanks for the info... I shall have a read of CGI::Alternatives.

      I used to use CGI.pm for file uploads but found it so unreliable in some circumstances that I wrote my own require file for handling web form input, including file uploads. One day or so of coding and testing and it has proved a good use of the time.

      TBH I have always worked alone, only looking for input when I need help with a specific problem with, usually, a small amount of code. This isolation has forced me to find solutions but, no doubt, also reinvent some wheels. I know I need to up my coding skills which I why I've created an account here instead of just reading solutions to my problems.

      You can tell how little I know about what is out there as these frameworks are a bit of a revelation. Although I consider myself to be an OK programmer who has created and maintains a few functional, dynamic websites. I'm still not seeing the advantage of these frameworks but perhaps, just maybe, that will come after plenty of reading the docs you have pointed me to - thanks.

        The Mojo homepage does a good job of pointing out some of the highlights, and linking to others.

        • An amazing real-time web framework, allowing you to easily grow single file prototypes into well-structured MVC web applications.
          • Everything you need to build cloud-native web applications for state of the art container environments.
          • Powerful out of the box with RESTful routes, plugins, commands, Perl-ish templates, content negotiation, session management, form validation, testing framework, static file server, CGI/PSGI detection, first class Unicode support and much more for you to discover.
        • A powerful web development toolkit, that you can use for all kinds of applications, independently of the web framework.
          • Full stack HTTP and WebSocket client/server implementation with IPv6, TLS, SNI, IDNA, HTTP/SOCKS5 proxy, UNIX domain socket, Comet (long polling), Promises/A+, async/await, keep-alive, connection pooling, timeout, cookie, multipart and gzip compression support.
          • Built-in non-blocking I/O web server, supporting multiple event loops as well as optional pre-forking and hot deployment, perfect for building highly scalable web services.
          • JSON and HTML/XML parser with CSS selector support.
        • Very clean, portable and object-oriented pure-Perl API with no hidden magic and no requirements besides Perl 5.26.0 (versions as old as 5.16.0 can be used too, but may require additional CPAN modules to be installed)
        • Fresh code based upon years of experience developing Catalyst, free and open source.
        • Hundreds of 3rd party extensions and high quality spin-off projects like the Minion job queue.

        Recent examples here using Mojo and its components include Apache Pulsar modules (Super Search for more), things like Minion are very powerful (see REST API with SFTP Pooling for a recent example use case). You personally may have no need for any of this, but rolling your own framework us unlikely to be as scalable or easily adoptable for others, which is important given the context of the discussion.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11123668]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-03-19 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found