Latest Uploads
Extraterre ... .0.1 (zip)

dantheman363

Monty Teas ... Screenie 1

steve_ancell

Santa Clau ... ed his bag

waroffice

manic_platdude.png

spinal

Tetris Clone

steve_ancell

Super blues bros.

spinal

Forum Home

PHP Alternatives

UserMessage
Posted : Saturday, 30 June 2012, 18:21 | Permalink | Mark Here
JL235


WW Entries : 7
I'm moving back to Java.

There are a lot of reasons why. First I know Java inside out, even down to the order in which things happen class loading occurs, and internal details you can use to do tricks.

I also miss the static completion you get in NetBeans. It's not just about types, it's about the fact that I can alter a method signature, or a method name, and all places that touch it will now be pointed out in real-time as errors. So much stuff is verified at compile time. It means the only errors you are left with are algorithmic errors, with no type errors.

Another factor is performance. Not just at runtime, but mostly at setup time. With PHP loading a large framework is real expense, even with file caching. With Java it's setup once and kept in memory, until the page is rarely used, when Tomcat will unload it. This means it's ok for me to spend a lot of time setting up a website, or load a tonne of code, and that only effects the first request.

Another factor is how much work PHP requires to really be good. You have loads of debugging, unless you turn errors up in development. Errors are difficult to debug, unless you add in error logging to make it similar (such as getting stack traces for errors, which isn't the default). PHP is great if you want a low barrier to entry, but that's not what I want to do, I want to build large websites. For that I need something designed for building large websites, and that's Java.

Finally I'm just sick of the syntax, and sick of the hackish behaviour of PHP. In many ways Java is *more* flexible than PHP, because it has package private (allowing you to make code local for a framework), has final (making try blocks similar), whilst PHP has very few advantages for shorter code.

There was something I wrote recently on Reddit, about how if you wrote a problem in JavaScript, Haskell, Ruby, Java or many other languages; you'd see the ideology of the language beating back at you in the result. With PHP you don't, because there is no real direction, and it's really starting to show.

-----
PlayMyCode.com - build and play in your browser, Blog, Twitter.
Posted : Monday, 02 July 2012, 12:59 | Permalink | Mark Here
dna


Thanks for sharing your opinion on the language.
I've been undecided between the two, never going into either of them much at all not knowing or reading about the differences in them.

Your explanation of the syntax and usage differences does make a difference in the learning curve when programming.

Thanks. You made me want to go back into using Java again.



-----
DNA
Posted : Monday, 02 July 2012, 13:56 | Permalink | Mark Here
Stealth


Java is the most distressing thing to happen to computing since MS-DOS. -- Alan Kay

-----
Andrew // stealth
"Some people see things as they are and say why? I dream things that never were and say why not?" - Robert Kennedy
Latest Posts
Sonic Adventure v0.x
Jayenkai Wed 07:08
Coder's Block
Jayenkai Wed 06:03
FIRST!!!
steve_ancell Wed 03:55
Position in Mind
steve_ancell Wed 03:51
Noel's Graduation
waroffice Wed 02:55
Monkey vs iOS tweaks
spinal Tue 22:51
Fucking Pound Sign Unicode Bullshit Bollocks
Dabz Tue 13:00
Progress / Location Bars
dna Tue 08:55
Screen Burn of the Mind
rockford Tue 02:13
RoadRash!
Mog Mon 10:56
More

Latest Items
News : Newsletter #176
Jayenkai Sat 04:49
News : Newsletter #175
Dabz Tue 09:38
Blog : Snow: More Material Junk
Cower Sat 23:17
Dev-Diary : Mutant Monty: Amstrad CPC to Windows conversion
rockford Fri 13:14
Techy : AppleTV
Jayenkai Thu 09:40
Blog : Graphviz
steve_ancell Sat 14:17
Pets : Top-Down Shadow Hack
Jayenkai Tue 05:52
Snippet : JNKrunch v1.0
Jayenkai Sat 07:20
News : Newsletter #173
waroffice Fri 04:47
Blog : Material Loading
Cower Fri 02:08
Pets : I Done Won A Thing
shroom_monk Sun 11:31
Pets : Repurposing A Lexer
Cower Mon 22:06
Bah : Feeling a Little Angry
spinal Mon 11:26
News : Newsletter #170
Dabz Sat 00:34
Showcase : sbfgen
Cower Sat 16:57
More

Who's Online
spinal
Wed, at 12:53
Jayenkai
Wed, at 12:28
rockford
Wed, at 12:28
shroom_monk
Wed, at 11:57
HoboBen
Wed, at 11:13
Mog
Wed, at 10:45
steve_ancell
Wed, at 10:36
Cower
Wed, at 09:10
Dabz
Wed, at 08:44
Afr0
Wed, at 07:35
Link to this page
Site : Jayenkai 2006-Infinity |
MudChat's origins, BBCode's former life, Image Scaler.