Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › Which programming language do you dislike most?
New Posts  All Forums:Forum Nav:

Which programming language do you dislike most? - Page 22

post #211 of 360
Quote:
Originally Posted by CrashZero View Post

Java is the worst of the worst...it can die in holy grail fire from the sky while being impaled from backend to face with a sharp pointy stick biggrin.gif
(real coders code in LISP......
real MEN coders code in Assembly!)

Real Programmers program in binary with butterflies. (a little off topic, but it's not very often that I am able to post the story of mel, an almost lost tale of a Real Programmer

329
Quote:
The Story of Mel

This was posted to Usenet by its author, Ed Nather (), on May 21, 1983.


A recent article devoted to the macho side of programming
made the bald and unvarnished statement:

Real Programmers write in FORTRAN.

Maybe they do now,
in this decadent era of
Lite beer, hand calculators, and “user-friendly” software
but back in the Good Old Days,
when the term “software” sounded funny
and Real Computers were made out of drums and vacuum tubes,
Real Programmers wrote in machine code.
Not FORTRAN. Not RATFOR. Not, even, assembly language.
Machine Code.
Raw, unadorned, inscrutable hexadecimal numbers.
Directly.

Lest a whole new generation of programmers
grow up in ignorance of this glorious past,
I feel duty-bound to describe,
as best I can through the generation gap,
how a Real Programmer wrote code.
I'll call him Mel,
because that was his name.

I first met Mel when I went to work for Royal McBee Computer Corp.,
a now-defunct subsidiary of the typewriter company.
The firm manufactured the LGP-30,
a small, cheap (by the standards of the day)
drum-memory computer,
and had just started to manufacture
the RPC-4000, a much-improved,
bigger, better, faster — drum-memory computer.
Cores cost too much,
and weren't here to stay, anyway.
(That's why you haven't heard of the company,
or the computer.)

I had been hired to write a FORTRAN compiler
for this new marvel and Mel was my guide to its wonders.
Mel didn't approve of compilers.

“If a program can't rewrite its own code”,
he asked, “what good is it?”

Mel had written,
in hexadecimal,
the most popular computer program the company owned.
It ran on the LGP-30
and played blackjack with potential customers
at computer shows.
Its effect was always dramatic.
The LGP-30 booth was packed at every show,
and the IBM salesmen stood around
talking to each other.
Whether or not this actually sold computers
was a question we never discussed.

Mel's job was to re-write
the blackjack program for the RPC-4000.
(Port? What does that mean?)
The new computer had a one-plus-one
addressing scheme,
in which each machine instruction,
in addition to the operation code
and the address of the needed operand,
had a second address that indicated where, on the revolving drum,
the next instruction was located.

In modern parlance,
every single instruction was followed by a GO TO!
Put that in Pascal's pipe and smoke it.

Mel loved the RPC-4000
because he could optimize his code:
that is, locate instructions on the drum
so that just as one finished its job,
the next would be just arriving at the “read head”
and available for immediate execution.
There was a program to do that job,
an “optimizing assembler”,
but Mel refused to use it.

“You never know where it's going to put things”,
he explained, “so you'd have to use separate constants”.

It was a long time before I understood that remark.
Since Mel knew the numerical value
of every operation code,
and assigned his own drum addresses,
every instruction he wrote could also be considered
a numerical constant.
He could pick up an earlier “add” instruction, say,
and multiply by it,
if it had the right numeric value.
His code was not easy for someone else to modify.

I compared Mel's hand-optimized programs
with the same code massaged by the optimizing assembler program,
and Mel's always ran faster.
That was because the “top-down” method of program design
hadn't been invented yet,
and Mel wouldn't have used it anyway.
He wrote the innermost parts of his program loops first,
so they would get first choice
of the optimum address locations on the drum.
The optimizing assembler wasn't smart enough to do it that way.

Mel never wrote time-delay loops, either,
even when the balky Flexowriter
required a delay between output characters to work right.
He just located instructions on the drum
so each successive one was just past the read head
when it was needed;
the drum had to execute another complete revolution
to find the next instruction.
He coined an unforgettable term for this procedure.
Although “optimum” is an absolute term,
like “unique”, it became common verbal practice
to make it relative:
“not quite optimum” or “less optimum”
or “not very optimum”.
Mel called the maximum time-delay locations
the “most pessimum”.

After he finished the blackjack program
and got it to run
(“Even the initializer is optimized”,
he said proudly),
he got a Change Request from the sales department.
The program used an elegant (optimized)
random number generator
to shuffle the “cards” and deal from the “deck”,
and some of the salesmen felt it was too fair,
since sometimes the customers lost.
They wanted Mel to modify the program
so, at the setting of a sense switch on the console,
they could change the odds and let the customer win.

Mel balked.
He felt this was patently dishonest,
which it was,
and that it impinged on his personal integrity as a programmer,
which it did,
so he refused to do it.
The Head Salesman talked to Mel,
as did the Big Boss and, at the boss's urging,
a few Fellow Programmers.
Mel finally gave in and wrote the code,
but he got the test backwards,
and, when the sense switch was turned on,
the program would cheat, winning every time.
Mel was delighted with this,
claiming his subconscious was uncontrollably ethical,
and adamantly refused to fix it.

After Mel had left the company for greener pa$ture$,
the Big Boss asked me to look at the code
and see if I could find the test and reverse it.
Somewhat reluctantly, I agreed to look.
Tracking Mel's code was a real adventure.

I have often felt that programming is an art form,
whose real value can only be appreciated
by another versed in the same arcane art;
there are lovely gems and brilliant coups
hidden from human view and admiration, sometimes forever,
by the very nature of the process.
You can learn a lot about an individual
just by reading through his code,
even in hexadecimal.
Mel was, I think, an unsung genius.

Perhaps my greatest shock came
when I found an innocent loop that had no test in it.
No test. None.
Common sense said it had to be a closed loop,
where the program would circle, forever, endlessly.
Program control passed right through it, however,
and safely out the other side.
It took me two weeks to figure it out.

The RPC-4000 computer had a really modern facility
called an index register.
It allowed the programmer to write a program loop
that used an indexed instruction inside;
each time through,
the number in the index register
was added to the address of that instruction,
so it would refer
to the next datum in a series.
He had only to increment the index register
each time through.
Mel never used it.

Instead, he would pull the instruction into a machine register,
add one to its address,
and store it back.
He would then execute the modified instruction
right from the register.
The loop was written so this additional execution time
was taken into account —
just as this instruction finished,
the next one was right under the drum's read head,
ready to go.
But the loop had no test in it.

The vital clue came when I noticed
the index register bit,
the bit that lay between the address
and the operation code in the instruction word,
was turned on —
yet Mel never used the index register,
leaving it zero all the time.
When the light went on it nearly blinded me.

He had located the data he was working on
near the top of memory —
the largest locations the instructions could address —
so, after the last datum was handled,
incrementing the instruction address
would make it overflow.
The carry would add one to the
operation code, changing it to the next one in the instruction set:
a jump instruction.
Sure enough, the next program instruction was
in address location zero,
and the program went happily on its way.

I haven't kept in touch with Mel,
so I don't know if he ever gave in to the flood of
change that has washed over programming techniques
since those long-gone days.
I like to think he didn't.
In any event,
I was impressed enough that I quit looking for the
offending test,
telling the Big Boss I couldn't find it.
He didn't seem surprised.

When I left the company,
the blackjack program would still cheat
if you turned on the right sense switch,
and I think that's how it should be.
I didn't feel comfortable
hacking up the code of a Real Programmer.

Quote:
Originally Posted by lin2dev View Post

As far as I'm concerned, strongly typed, or ****

Do you realize that languages such as C are weakly typed?

Quote:
Originally Posted by lambecrikas View Post

I hate it because of the the garbage collector... It has some strange behaviors is some situations... For a cross platform use, specially for inexperienced users, it's awesome! Imagine you've never "touched" a pc, if you want to use a java app you'll just copy it from wherever it was - if you already have java installed.
But I'm not a hipster here tongue.gif I don't like it manly because it's one of the worst languages for my area, I'm a true C/C++ fan when it comes to performance thumb.gif
Quote:
Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp.
- Greenspuns Tenth Rule

That said, what's the problem with garbage collectors? Every large program written in C has one. The only difference is that the ones written in C are most often not written by people who have spent most of their lives perfecting the art of garbage collection. This doesn't get rid of the garbage collector, it only makes it worse at its job. While I dislike Java (as mentioned here), I don't see garbage collection as a good reason.

That said, the "only" good thing about the JVM is that one can use Clojure.
Edited by hajile - 7/15/12 at 5:52pm
post #212 of 360
It is absurdly easy to tell who actually knows what they're talking about in this thread, and who's simply pretending to.
post #213 of 360
^ I don't see too many people posting here without at least a little interest/knowledge.
Edited by hajile - 7/15/12 at 5:56pm
post #214 of 360
Toss up between COBOL or Lost In Stupid Parenthesis (LISP).
Muzzle Flash
(25 items)
 
Switched Switch
(24 items)
 
Slave Driver
(14 items)
 
CPUMotherboardGraphicsGraphics
Intel i7 3770K Gigabyte GA-Z77X-UP7 EVGA GTX 580 Hydro Copper 2 3GB EVGA GTX 580 Hydro Copper 2 3GB 
RAMHard DriveHard DriveOptical Drive
G.SKILL Trident X  Samsung 840 Pro Seagate Barracuda 1TB 7200 RPM LG Blu-Ray burner 
CoolingCoolingCoolingCooling
Koolance CPU-380I Water Block XSPC RX360 Radiator 6 Cougar CF-V12H fans Alphacool Monsta 360 Radiator 
CoolingCoolingCoolingOS
6 Gentle Typhoon AP-14 fans Twin D5 Dual Bay Reservoir Various Bitspower Compression Fittings Windows 7 Professional 64-bit 
OSMonitorMonitorKeyboard
Ubuntu 12.10 Auria EQ276W 27" IPS HP w2408 Microsoft Natural 4000 
PowerCaseMouseOther
SeaSonic Platinum-1000 NZXT Switch 810 Logitech MX Custom Switch 810 Pedestal by Dwood 
Other
Lots of wire sleeve and heat shrink from MDPC 
CPUMotherboardGraphicsGraphics
Intel 2700k Gigabyte GA-Z77X-UD3H EVGA GTX 560 Ti EVGA GTX 560 Ti 
RAMHard DriveOptical DriveCooling
Samsung DDR3-1600 CL11 Western Digital Caviar Blue 500GB LG DVD Burner XSPC Raystorm CPU Waterblock 
CoolingCoolingCoolingCooling
Durelene 1/2" ID x 5/8" OD Tubing EK-FC560 GTX V2 Waterblock EK-FC560 GTX V2 Waterblock XSPC EX360 Radiator 
CoolingCoolingCoolingCooling
XSPC EX120 Radiator Swiftech MPC655-B D5 Pump XSPC Acetal Top for Laning D5 Danger Den RAD-RES 
CoolingOSMonitorKeyboard
Various Bitspower Compression Fittings Windows 7 Professional Asus VW246H 24" LCD Logitech G110 
PowerCaseMouseOther
Enermax Revolution 85+ 950W White NZXT Switch 810 Logitech M325 NZXT Hue 
CPUMotherboardGraphicsRAM
i5-2500K EVGA Z68 SLI EVGA GTX 560 Ti Corsair Vengeance 16GB 
Hard DriveOptical DriveCoolingOS
Western Digital Caviar Blue 500GB Asus DVD Burner Cooler Master Hyper 212 Plus Windows 7 Professional 
MonitorMonitorKeyboardPower
Dell UltraSharp U2410 Dell UltraSharp U2410 Microsoft Natural 4000 Corsair TX750 
CaseMouse
Cooler Master HAF 912 Logitech MX Revolution 
  hide details  
Reply
Muzzle Flash
(25 items)
 
Switched Switch
(24 items)
 
Slave Driver
(14 items)
 
CPUMotherboardGraphicsGraphics
Intel i7 3770K Gigabyte GA-Z77X-UP7 EVGA GTX 580 Hydro Copper 2 3GB EVGA GTX 580 Hydro Copper 2 3GB 
RAMHard DriveHard DriveOptical Drive
G.SKILL Trident X  Samsung 840 Pro Seagate Barracuda 1TB 7200 RPM LG Blu-Ray burner 
CoolingCoolingCoolingCooling
Koolance CPU-380I Water Block XSPC RX360 Radiator 6 Cougar CF-V12H fans Alphacool Monsta 360 Radiator 
CoolingCoolingCoolingOS
6 Gentle Typhoon AP-14 fans Twin D5 Dual Bay Reservoir Various Bitspower Compression Fittings Windows 7 Professional 64-bit 
OSMonitorMonitorKeyboard
Ubuntu 12.10 Auria EQ276W 27" IPS HP w2408 Microsoft Natural 4000 
PowerCaseMouseOther
SeaSonic Platinum-1000 NZXT Switch 810 Logitech MX Custom Switch 810 Pedestal by Dwood 
Other
Lots of wire sleeve and heat shrink from MDPC 
CPUMotherboardGraphicsGraphics
Intel 2700k Gigabyte GA-Z77X-UD3H EVGA GTX 560 Ti EVGA GTX 560 Ti 
RAMHard DriveOptical DriveCooling
Samsung DDR3-1600 CL11 Western Digital Caviar Blue 500GB LG DVD Burner XSPC Raystorm CPU Waterblock 
CoolingCoolingCoolingCooling
Durelene 1/2" ID x 5/8" OD Tubing EK-FC560 GTX V2 Waterblock EK-FC560 GTX V2 Waterblock XSPC EX360 Radiator 
CoolingCoolingCoolingCooling
XSPC EX120 Radiator Swiftech MPC655-B D5 Pump XSPC Acetal Top for Laning D5 Danger Den RAD-RES 
CoolingOSMonitorKeyboard
Various Bitspower Compression Fittings Windows 7 Professional Asus VW246H 24" LCD Logitech G110 
PowerCaseMouseOther
Enermax Revolution 85+ 950W White NZXT Switch 810 Logitech M325 NZXT Hue 
CPUMotherboardGraphicsRAM
i5-2500K EVGA Z68 SLI EVGA GTX 560 Ti Corsair Vengeance 16GB 
Hard DriveOptical DriveCoolingOS
Western Digital Caviar Blue 500GB Asus DVD Burner Cooler Master Hyper 212 Plus Windows 7 Professional 
MonitorMonitorKeyboardPower
Dell UltraSharp U2410 Dell UltraSharp U2410 Microsoft Natural 4000 Corsair TX750 
CaseMouse
Cooler Master HAF 912 Logitech MX Revolution 
  hide details  
Reply
post #215 of 360
I think it's funny that there's still responses along the lines of "I don't get why people hate Java, it's fantastic and has its place", only asserting without proof that it's brilliant without addressing any of the (very valid I might add) critisism towards the language that's been brought up in this thread alone. How silly!

And yes, I'm just trying to get you started ^-^
post #216 of 360
Quote:
Originally Posted by bomfunk View Post

I think it's funny that there's still responses along the lines of "I don't get why people hate Java, it's fantastic and has its place", only asserting without proof that it's brilliant without addressing any of the (very valid I might add) critisism towards the language that's been brought up in this thread alone. How silly!
And yes, I'm just trying to get you started ^-^

What are the legitimate criticism/concerns against Java?
Once again...
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 [4.28GHz, HT] Asus P6T + Broadcom NetXtreme II VisionTek HD5850 [900/1200] + Galaxy GT240 2x4GB G.Skill Ripjaw X [1632 MHz] 
Hard DriveOSMonitorKeyboard
Intel X25-M 160GB + 3xRAID0 500GB 7200.12 Window 7 Pro 64 Acer H243H + Samsung 226BW XARMOR-U9BL  
PowerCaseMouseMouse Pad
Antec Truepower New 750W Li Lian PC-V2100 [10x120mm fans] Logitech G9 X-Trac Pro 
  hide details  
Reply
Once again...
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 [4.28GHz, HT] Asus P6T + Broadcom NetXtreme II VisionTek HD5850 [900/1200] + Galaxy GT240 2x4GB G.Skill Ripjaw X [1632 MHz] 
Hard DriveOSMonitorKeyboard
Intel X25-M 160GB + 3xRAID0 500GB 7200.12 Window 7 Pro 64 Acer H243H + Samsung 226BW XARMOR-U9BL  
PowerCaseMouseMouse Pad
Antec Truepower New 750W Li Lian PC-V2100 [10x120mm fans] Logitech G9 X-Trac Pro 
  hide details  
Reply
post #217 of 360
Quote:
Originally Posted by DuckieHo View Post

What are the legitimate criticism/concerns against Java?
There's plenty in this thread as far as I can see. I won't rewrite everything that other people have written before me, but here is my first post and my second raging rant.
post #218 of 360
Java is a bit too "wordy" for me. I don't like Java on Windows. IMHO the run-time sucks on Windows. The language isn't too bad, but as I said, too wordy.
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
post #219 of 360
Quote:
Originally Posted by bomfunk View Post

There's plenty in this thread as far as I can see. I won't rewrite everything that other people have written before me, but here is my first post and my second raging rant.

You make convincing arguments, bomfunk, but, basically, all I understood from your posts is that you're not really arguing against Java for its inability to perform a specific task but rather the way it requires you to perform that task. I think, no one can really argue against that.

In my opinion, you aren't really missing anything with Java until you start using a different language. wink.gif
 
Desktop
(13 items)
 
MacBook Pro 13"
(6 items)
 
CPUGraphicsRAMHard Drive
Intel i5 480m@2.67GHz AMD Radeon Mobility 5650 4GB DDR3 500GB 
OSMonitor
Windows 7 64bit HP 15.6" 1366x768 
CPUMotherboardGraphicsRAM
E7500 Intel...:( MSI GTS250 1GB 2GB 
Hard DriveOSMonitorPower
250GB Windows XP 17" LG CRT 1280x768@85hz 400W 
CPUGraphicsRAMHard Drive
Intel i5 @ 2.5 GHz Intel HD4000 4 GB DDR3 @ 1600 MHz 500 GB @ 5400 RPM 
OSMonitor
OSX Lion 13.3" @ 1280 x 800 
  hide details  
Reply
 
Desktop
(13 items)
 
MacBook Pro 13"
(6 items)
 
CPUGraphicsRAMHard Drive
Intel i5 480m@2.67GHz AMD Radeon Mobility 5650 4GB DDR3 500GB 
OSMonitor
Windows 7 64bit HP 15.6" 1366x768 
CPUMotherboardGraphicsRAM
E7500 Intel...:( MSI GTS250 1GB 2GB 
Hard DriveOSMonitorPower
250GB Windows XP 17" LG CRT 1280x768@85hz 400W 
CPUGraphicsRAMHard Drive
Intel i5 @ 2.5 GHz Intel HD4000 4 GB DDR3 @ 1600 MHz 500 GB @ 5400 RPM 
OSMonitor
OSX Lion 13.3" @ 1280 x 800 
  hide details  
Reply
post #220 of 360
Quote:
Originally Posted by {Unregistered} View Post

You make convincing arguments, bomfunk, but, basically, all I understood from your posts is that you're not really arguing against Java for its inability to perform a specific task but rather the way it requires you to perform that task. I think, no one can really argue against that.
In my opinion, you aren't really missing anything with Java until you start using a different language. wink.gif
Of course that's what I'm arguing against - there's very little modern programming languages can't do, it all comes down to how to do things. And I really don't see why I can't argue against it, unless I just misunderstood what you meant by that. If Java makes it a great inconvenience for me to do something that's trivial in another language, I think it's entirely reasonable for me to say that Java is bad. And bad I think it is. There are few aspects of Java that I really do appreciate (surprisingly enough, while I think they're usually distasteful, anonymous/inner classes have often given me an easy way to do something that would have been hard in C++, and I honestly don't even mind doing GUI programming in Java), but all around in the grand scheme of things as a language on its own Java is, well, unimpressive. Mediocre. It's certainly safe, so safe in fact that one of the things about Java I dislike is that it almost feels like it's going out of its way to hide all the useful but sharp tools so that incompetent weenies don't cut their pinky fingers. The only single great thing, and the thing that makes me keep coming back to Java and, hell, even missing it sometimes is the standard library, but even that's not tied to the language as much as the runtime environment - and there's already quite a few languages that compile to Java bytecode just fine.

But maybe I'm just overreacting. A bad taste in my mouth. Petty as though it might sound, a lot of this bad taste comes from working with Points and Rectangles. Oh well. Still, in spite of all its kludginess, C++ for me has proven to be the one language that most consistently keeps from getting on my way. It is often annoying to work with, I admit that, but any time I miss a feature from another language it's more of a longing feeling, whereas with Java it's more often something like "are you flipping kidding me?".
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › Which programming language do you dislike most?