Absolutely agree with this as I know I'm very guilty of hashing stuff together sometimes to just get it working.
In this case there are differences between the two implementations. The controller action and route allows someone to visit your site at '/awesome' and be redirected to the very long URL. The helper means that you have to render the link on one of your pages, so a user could be taken to your site before having to click another link to get to the awesome page. Both fine, but have different implications for your traffic, usability, analytics, etc. So much of programming is understanding when you should and should not introduce complexity and the compromises you make between two different solutions.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Absolutely agree with this as I know I'm very guilty of hashing stuff together sometimes to just get it working.
In this case there are differences between the two implementations. The controller action and route allows someone to visit your site at '/awesome' and be redirected to the very long URL. The helper means that you have to render the link on one of your pages, so a user could be taken to your site before having to click another link to get to the awesome page. Both fine, but have different implications for your traffic, usability, analytics, etc. So much of programming is understanding when you should and should not introduce complexity and the compromises you make between two different solutions.