Raised This Month: $204 Target: $400
 51% 

Anyone else find Pawn rather frustrating lately?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 12-05-2019 , 19:59   Anyone else find Pawn rather frustrating lately?
Reply With Quote #1

I've been writing in Pawn since the very beginning of my scripter/programmer days, which was around 7 years ago. No matter the frustration, I love Pawn as much as I did back then. It helped me climb up to learn more powerful languages.

But, after getting into Object Oriented programming, for a few years, I cannot seem to understand and cope with Pawn's "childish" way of working like I used to, mainly around object types, mostly with the fact that its not an Object Oriented language. It's just gotten a lot frustrating and I'm considering migrating to C++. AKA dish out AMXX and work in the core. AKA Metamod.

I know that the point Pawn is to work in an easier environment for unexperienced developers, hence my backstory. :^), however, I really do consider moving to Metamod plugins. I've tried making a couple of silly little hello world and player death hooking plugins and the concept is pretty much the same, but hey, I can create classes, structures and explicitly name each variable corresponding to its type!

Pawn will always remain my #1 Mentor in programming.
What are your thoughts on Metamod plugins? Have you ever worked as hard in them as in AMXX?
__________________
Discord: wEight#6773

Hobbies:
- Map Designing (Any Half-Life 1 Engine Game)
- Pawn (Intermediate / Counter-Strike 1.6 only)
- C#/VB for .Net (Intermediate / Winforms)
- Java (Mostly Android Application Development)
redivcram is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: US
Old 12-08-2019 , 22:11   Re: Anyone else find Pawn rather frustrating lately?
Reply With Quote #2

There's always a boundary between where the simplicity of abstraction becomes a frustration. Still, it serves its purpose to provide an easy entry point for people, and adding too many concepts may make it more difficult and may introduce overhead for what otherwise should've been a minimalistic language.

With the combination of SM and SP, it saves much of the hassle of hooking, unhooking, all the backend setup, etc. It allows you to get straight to the logic of your plugin. So in a way, you are trading for abstraction here.

Of course, if you want to go beyond the scope of the language/API, you would end up interop-ing outside of that ecosystem.
__________________


Fingerprint: 91CC4E84AE4BFA89F2E431DD462F405E7D61ED35

Reach me @ https://keybase.io/rumblefrog

Github: https://github.com/rumblefrog

RumbleFrog is offline
thEsp
Veteran Member
Join Date: Aug 2017
Old 12-09-2019 , 15:14   Re: Anyone else find Pawn rather frustrating lately?
Reply With Quote #3

Why is Pawn "childish"?
Pawn is a small, light-weight and C-like robust scripting language that runs on a virtual machine. It has even been ported to a device of only 32 kilobytes of RAM. It is created just to be fast enough and not use too much resources (hence why many games use it).

Why doesn't HL support a SM-like scripting platform (language)?
It doesn't need to. It is an old game created in 1998 (although started in 1997) not highly-populated anymore. Since AMXX's development in 2003, there have been a lot of modules and plugins created around it. Not even active people would bother switching and porting stuff for a new syntax.
thEsp is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 12-09-2019 , 15:34   Re: Anyone else find Pawn rather frustrating lately?
Reply With Quote #4

Quote:
Originally Posted by redivcram View Post
I've been writing in Pawn since the very beginning of my scripter/programmer days, which was around 7 years ago. No matter the frustration, I love Pawn as much as I did back then. It helped me climb up to learn more powerful languages.

But, after getting into Object Oriented programming, for a few years, I cannot seem to understand and cope with Pawn's "childish" way of working like I used to, mainly around object types, mostly with the fact that its not an Object Oriented language. It's just gotten a lot frustrating and I'm considering migrating to C++. AKA dish out AMXX and work in the core. AKA Metamod.

I know that the point Pawn is to work in an easier environment for unexperienced developers, hence my backstory. :^), however, I really do consider moving to Metamod plugins. I've tried making a couple of silly little hello world and player death hooking plugins and the concept is pretty much the same, but hey, I can create classes, structures and explicitly name each variable corresponding to its type!

Pawn will always remain my #1 Mentor in programming.
What are your thoughts on Metamod plugins? Have you ever worked as hard in them as in AMXX?
When you move to metamod plugin, you still need to re-make a couple of functions that AMXX already do it for you.
Also need to re-make a lot of checks fixes to your mod. And finally hook same shits of as AMXX (I mean, player spawns, events, messages, commands and other bullshit).

For me Pawn is not frustrating, is a way to make thinks more easily than reinvent the well, also PAWN or AMXX is not outdated on my point of view, since HL1 engine not changed so much in a couple of years! Why AMXX need to change to?

An langauge can frustrating anyone, is pure preference in some cases.

I really appreciate the amxx dev team work, since have a lot of good tools to make the things easy.
Look new menus for example, is a tool to make my life easy when creating user menus and manage it

Yes Pawn can be frustrating anyone with his design, but is a Pawn language problem not amxx that decide to use it.

Ps. It is my point of view
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 12-09-2019 at 15:35.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Gabe Iggy
Veteran Member
Join Date: Mar 2011
Location: Chile
Old 12-09-2019 , 15:39   Re: Anyone else find Pawn rather frustrating lately?
Reply With Quote #5

If you find plain Pawn frustrating you can always move to SourcePawn.
__________________
Gabe Iggy is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:27.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode