Python pros and cons


Author: Dave
Date: 11.08.17 - 6:49am



So I have started using python more. I know people love it. Its ok. Here is my pro and con list which i will add to over time.

Pros
  • the cross platform aspect is a very powerful feature and strong draw
  • tons of skilled people use it and there is lots of sample code and libraries
  • it does make allot of things easy and has high level wrappers.
  • thank god for pip, getting packages with compiled dependencies setup used to suck. (i still worry about how trustworthy, audited, and where they came from though)
Cons
  • python scripts are their own ecosystem. Leveraging python code in another language requires embedding the interpreter and making sure whatever libs they had installed are replicated, you cant just compile it all into one dll.
  • python is slow as hell. a py imphash routine on mshtml.dll took 25 seconds. In vb6 it was .3 sec
  • console apps have their use but most everything I want is GUI for efficiency.
  • py GUI apps are slow and ugly. The GUI code is also super ugly.
  • the forced indenting is annoying and tab/space problems suck. What if I want to disable some try blocks..now I have to unindent everything.
  • essentially every variable is a variant in python. IDE intellisense is left guessing or broken allot. Variants are fine for small scripts, but static typing is way better and makes the IDE experience way better.
  • I hate that allot of errors that should be caught on compilation only show up at runtime when that particular code path is hit! thats insane for large projects.
  • I dislike the None type, it adds one more type to test for and blows things up left and right if you arent expecting it. (And it can easily appear magically)
  • debugging in Wingware or VS2017 is ok, usable..but not as great as VB6. No intellisense in the immediate window, no edit and continue.
  • python is fragmented like linux, especially with IDEs and GUI toolkits
  • some elements of the language feel a bit hacked together like ctypes and COM support
My conclusions are:
  • it does make many small tasks quick and easy
  • its useful and necessary and can not be denied
  • I need ways to leverage python code in other languages easily
  • python is the new vb6, immediately accessible to the masses
  • for windows its still not my goto
  • its good for glue, automation, and quick scripts
  • building large projects in it does not seem wise





Comments: (0)

 
Leave Comment:
Name:
Email: (not shown)
Message: (Required)
Math Question: 8 + 91 = ? followed by the letter: Q 




About Me
More Blogs
Main Site
Posts:
VB6 Console Apps
VB6 UDTs
VB6 Debugger View As Hex tooltips
VB6 - C Share registry data
VB6 Addin Missing Menus
VB6 Class Init Params
VB6 isIn function
Python and VB6
Python pros and cons
download web Dir
vc rand in python
VB6 Language Enhancement
Register .NET as COM
VB6 CDECL
UDT Tricks pt2
Remote Data Extraction
Collection Extender
VB6 FindResource
CDO.Message
DirList Single Click
Reset CheckPoint VPN Policy
VB6 BSTR Oddities Explained
SafeArrays in C
BSTR and Variant in C++
Property let optional args
Misc Libs
Enum Named Pipes
Vb6 Collection in C++
VB6 Overloaded Methods
EXPORT FUNCDNAME Warning
VB6 Syncronous Socket
Simple IPC
VB6 Auto Resize Form Elements
Mach3 Automation
Exit For in While
C# self register ocx
VB6 Class Method Pointers
JS Debugger
Duktape Debug Protocol
QtScript 4 VB
Vb6 Named Args
vb6 Addin Part 2
VB6 Addin vrs Toolbars
OpenFile Dialog MultiSelect
Duktape Example
DukTape JS
VB6 Unsigned
.Net version
TitleBar Height
.NET again
VB6 Self Register OCXs
Query Last 12 Mos
Progid from Interface ID
VB6 to C Array Examples
Human Readable Variant Type
ScriptBasic COM Integration
CodeView Addin
ScriptBasic - Part 2
Script Env
MSCOMCTL Win7 Error
printf override
History Combo
Disable IE
API Hooking in VB6
Addin Hook Events
FastBuild Addin
VB6 MemoryWindow
Link C Obj Files into VB6
Vb6 Standard Dlls
CStr for Pascal
Lazarus Review
asprintf for VS
VB6 GlobalMultiUse
Scintilla in VB6
Dynamic Highlight
WinVerifyTrust, CryptMsgGetParam VB6
MS GLEE Graphing
printf for VB6
C# App Config
Tero DES C# Test
VC 2008 Bit Fields
Speed trap
C# Db Class Generator
VB6 vrs .NET (again)
FireFox Whois Extension
git and vb6
Code Additions
Compiled date to string
C# ListView Sorter
VB6 Wish List
C# Process Injection
CAPTCHA Bots
C# PE Offset Calculator
VB6 Async Download
Show Desktop
coding philosophy
Code release
Dll Not Found in IDE
Advanced MSScript Control
random tip
Clipart / Vector Art
VB6 Callback from C#
Binary data from VB6 to C#
CSharp and MsScriptControl
HexDumper functions
Js Beautify From VB6 or C#
vb6 FormPos
Inline Asm w VB6
The .NET Fiasco
One rub on computers
Universal extractor