by stephenr · 14y ago · 0 comments
Sometimes your app just stops working because of some typo in your code
I don't know of any programming language that will auto-correct typos for you. or the spaghetti code becomes just too unreadable.
If you don't write spaghetti code, you won't have a problem PHP just doesn't seem exciting for me anymore. There doesn't seem to be anything exciting happening.
PHP isn't some 0.6-pre-alpha release software that douchebag developers use for production apps and get excited about when the core API changes every 3 weeks. not much has been happening with the language and nothing interesting as far as apps or frameworks.
so you, as a developer, are complaining that no interesting apps are being developed in a specific language..? Since I'm not a sysadmin, I prefer to pay extra to have my code managed by someone.
Sysadmin's don't manage code. You are a developer, you should be managing your own code. Interfaces and reflection are awesome.
both of which PHP has. Go helps me write cleaner and more maintainable code
I doubt it. You claimed that your code "becomes" spaghetti. Which implies that it starts out "clean and maintainable". I'll wait with baited breath for how long it takes your new code to also "become" shit.I know of many compilers that will point them out to you, and IDEs that will offer to auto-correct them (Eclipse, XCode and Visual Studio for example).
>If you don't write spaghetti code, you won't have a problem
Yes. And if you don't make any memory allocation errors you don't need a GC. Hell, if you don't make any errors period, you can just program in hex, building the executable code directly and skip assembly.
The thing is, different languages have different inherent characteristics (syntax, features) and different cultures (pertaining to libs, common practices, frameworks, etc), so one can tend to create more spaghetti code than the other, the programmer being equal.
PHP's lint option will identify syntax errors, and an IDE can identify or auto-correct typos in any language - it's not a Go specific thing.
>And if you don't make any memory allocation errors you don't need a GC.
Memory allocation is a feature. Spaghetti code is a symptom of a poor developer/team. They are not comparable.
> Hell, if you don't make any errors period spaghetti code is not a "mistake" like a typo, missing function reference etc.
That's simply not true. If you are organized, you will use whatever structures the language you are using provides to you (classes, modules, namespaces, etc.) to NOT write spaguetti code.
Spaguetti code it's not inherent to the language, it's inherent to the programmer.