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
Dev Costs
rockford Mon 14:54
Screen Burn of the Mind
steve_ancell Mon 11:38
RoadRash!
Mog Mon 10:56
Progress / Location Bars
Afr0 Mon 10:28
Noel's Graduation
rockford Mon 07:37
Development via GUI
waroffice Mon 02:48
Audio Rant
steve_ancell Sat 19:16
Wrong Partition!!!!?
spinal Sat 11:24
eBay Lies
spinal Fri 23:44
Shoutbox Topic - 968
dna Fri 19:42
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
rockford
Mon, at 14:55
shroom_monk
Mon, at 14:55
Jayenkai
Mon, at 14:54
steve_ancell
Mon, at 14:45
dna
Mon, at 14:20
CodersRule
Mon, at 13:58
Mog
Mon, at 13:25
spinal
Mon, at 12:54
HoboBen
Mon, at 12:13
Dabz
Mon, at 10:31
Link to this page
Site : Jayenkai 2006-Infinity |
MudChat's origins, BBCode's former life, Image Scaler.