I haven't worked with Ruby, but as far as Python goes, a new programmer shouldn't have to worry about whitespace. I agree that having proper whitespace makes code much easier to read and I wish some of the bastards in my group would format correctly, but for a new programmer it would be hell.
That probably should have been marked as flamebait, but I decided to reply instead. I do agree on your point that "Good code is not about obfuscation gibberish or hax0ring. It's about reusability, stability and portability.". However, that being said, I do think that a language like PHP is great for a young programmer. When you first start programming, all you want to do is write something that works. I don't think anyone can say that the first thing they wrote was beautiful or reusable. Once they have been programming for a while they start to see all the stupid mistakes they have been making and fix them. Your argument is like saying there shouldn't be medical interns because they aren't neuro surgeons yes. Clearly there is a place for both. Writing crappy code then staying up all night fixing it is part of becoming a better programmer. You can right shitty code in any language, and you can right good code in ALMOST any language.
In Texas it is legal to use lethal force to protect property. If someone trespassing on private property they can be shot. So if at 3 in the morning I hear some crackhead breaking in my house I can use my 12 Gauge.
At one start up I worked at, we had a cubicle decorating contest for who got the close parking spots in the middle of January. My cubicle group (4 cubicles with doorways facing inwards) use white plastic to create a biohazard tent. It actually was nice because it blocked light from outside and helped us regulate the temperature.
The downside was when someone let one rip, well it lingered.
Hmm, then I make a lot less then I think. Lets say 50K (not my actual salary, but a nice easy number). so $50,000 per year divided by number of hours in a year 8760.. That equals $5.70/hr... Damn, I need to go back to flipping burgers...
I had never heard of those games but I googled for them. They look interesting and I will try atleast bzflag as soon as I finished my latest game (halo on the PC...which isn't nearly as good as XBOX'rs said it was). However, I don't think those can compare to HL, CS or HL2.
But could they have made such a great mod without having something to start with? I don't think so. How many from scratch, free, quality games do you see?
I set a job on a coworkers machine to open mulletsgalore.com up every hour. It was funny, especially when he called the IT people over to fix it.
Another good idea, which requires no password to the machine is if he has an optical mouse, put a piece of semi-translucent tape over it. It will slowly degrade performance as it gets scratched up.
Like I said in one of my other comments, my hatred of JSP's come from co-workers ugly code.
I am sure that there are better ways to do JSP then how they were doing it, but it left such a bad taste in my mouth that when I was evaluting how we were going to write our new application, I much prefered Servlets + Freemarker.
If I ever see a case where I think JSP or any other item can do the job better, I will use it.
As far as FreeMarker sucking, I think that was just Velocity/Turbine bitterness. I have had many more issues with Velocity then I have with FreeMarker.
I guess I shouldn't have been so zealous in my hatred of JSP. I am by no means a purist. Hell, I was primarily a PHP programmer. My hatred for JSP comes from seeing the horrible nasty code that the so called "java experts" in another programming group at my company write. I guess I should remeber that even evil things (JSP,.NET, Broccoli) can be used for good.
No HTML in my Java. Like I said in my post, I use templates. All HTML goes into the templates.
I choose what objects to expose to the template engine, and the template engine then merges the objects with the template. For example, when a user logs in, an object is created that contains personal preferences like font size, colors, what content they want on their front page. Lets call this object "blah" though I can expose it to the template using any name I want. In the template, if I want to get information from that object, I just call ${blah.myMethodName()}.
However, I currently am working to migrate our PHP web application to Java and it is going well. I am using Servlets + FreeMarker templates. Using a template system allows me to change some of the presentation details without recompiling and Servlets prevent me from killing myself because of the giant nasty hack that is JSP...
Yes, I might seem bitter but I can see no real reason to use JSP. The only argument I can get from anyone on for it is "You don't have to recompile and deploy it". That was a good point before application servers accepted changes on the fly to the code. Now I just recompile the one servlet and Tomcat reloads it. Simple...
The problem with using variables like that is if you (or an admin) forgets to turn error reporting off and there is a problem, the end user can see "Error, variable iFuckYourMother undefined.".
For that reason, I showed restraint in naming variables/classes/functions but boy did I let loose in comments.
SVG is in no way "everyone". It runs poorly in IE, and very poorly in netscape. They are just now starting to get SVG working at all in Mozilla, and I doubt it supports a lot of advanced scripting.
I hate applets, but if you need alot of client side interactivity, I would say Java is the way to go.
The reason I have guns is not to keep the government away. It is for home defense. You might be fine with getting killed while waiting for the police to come stop the crack addled burgler, but I would much rather put a.357 slug in his chest.
I messed with Velocity but found it to be somewhat of a pain in the butt. I much prefer FreeMarker. Similar features to Velocity, just easier to use. Oh and the documentation kicks ass, which is one area I found lacking in velocity.
And no, I am not a freemarker developer, just a happy user.
I use a logitech ergonomic KB (and the mouse though it has started to go crazy recently). For two handed use it shines. I code ~8 hrs/day and I mess around on the net for probably another 4 (yes, I do need a life) and to me, it is much better then a standard keyboard. With a standard KB, my wrists feel cramped and at the wrong angle, while with the "ergonomic" KB everything is comfortable.
For one handed use, yes it is a tad bit more difficult for some key combinations, but I rarely need any shortcuts besides ctrl-[z|x|c|v] while using only one hand.
The point of seperating the presentation logic from the main program even though it might be 3x as big is still maintability. You should never have to go in and modify the Smarty classes. You will however have to go in and modify your own code. To me it is just calling another library for use. I don't know about you, but most of my pages are only a couple hundred lines at the most, but almost all call on some massive libraries. If I didn't want to load the libraries every time, I could hardcode some of the logic into my page, but that would increase maintanence time.
Anyways, I just got in so this post might not make sense, but even though Smarty is huge, I think what you gain in maintanability is worth it. I wonder if it would be possible to create a "Smarty Lite" with only the basic features?
The reason for a templating solution like smarty is to keep presentation seperate from all the business logic. It also allows designers who only know HTML to change the template. If you keep all the real work in another file, then you are on the right road. However, I have gotten severe migraines from looking at old code that mixes HTML and another language.
Some template solutions are not much better then mixing PHP and HTML but others like Smarty are kick ass. In Smarty, you can put simple presentation logic in your templates. For example, with a proper template, you just pass an array to smarty and it will render it into a nice table, highlighting every other row, bolding keywords you tell it too, etc etc.
It does take a little while to get used too, but follow the link in the grandparent and read up on it. It is worth the time I think.
I haven't worked with Ruby, but as far as Python goes, a new programmer shouldn't have to worry about whitespace. I agree that having proper whitespace makes code much easier to read and I wish some of the bastards in my group would format correctly, but for a new programmer it would be hell.
That probably should have been marked as flamebait, but I decided to reply instead. I do agree on your point that "Good code is not about obfuscation gibberish or hax0ring. It's about reusability, stability and portability.". However, that being said, I do think that a language like PHP is great for a young programmer. When you first start programming, all you want to do is write something that works. I don't think anyone can say that the first thing they wrote was beautiful or reusable. Once they have been programming for a while they start to see all the stupid mistakes they have been making and fix them. Your argument is like saying there shouldn't be medical interns because they aren't neuro surgeons yes. Clearly there is a place for both. Writing crappy code then staying up all night fixing it is part of becoming a better programmer. You can right shitty code in any language, and you can right good code in ALMOST any language.
In Texas it is legal to use lethal force to protect property. If someone trespassing on private property they can be shot. So if at 3 in the morning I hear some crackhead breaking in my house I can use my 12 Gauge.
At one start up I worked at, we had a cubicle decorating contest for who got the close parking spots in the middle of January. My cubicle group (4 cubicles with doorways facing inwards) use white plastic to create a biohazard tent. It actually was nice because it blocked light from outside and helped us regulate the temperature.
The downside was when someone let one rip, well it lingered.
not working for me (cannot connect to tracker).
They don't have to. They will just respawn him, probably with more hit points and forget about it.
The majority of Dragons have storylines that they are apart of but they get killed all the time.
(I am a recovering EverCrack addict, clean over a year)
Hmm, then I make a lot less then I think. Lets say 50K (not my actual salary, but a nice easy number).
so $50,000 per year divided by number of hours in a year 8760..
That equals $5.70/hr... Damn, I need to go back to flipping burgers...
Not to nitpick, but if he doesn't have a graphics engine, how does anything else work?
As for an engine, the source for Quake2 is released. Could he use that?
I had never heard of those games but I googled for them. They look interesting and I will try atleast bzflag as soon as I finished my latest game (halo on the PC...which isn't nearly as good as XBOX'rs said it was). However, I don't think those can compare to HL, CS or HL2.
But could they have made such a great mod without having something to start with? I don't think so. How many from scratch, free, quality games do you see?
I set a job on a coworkers machine to open mulletsgalore.com up every hour. It was funny, especially when he called the IT people over to fix it.
Another good idea, which requires no password to the machine is if he has an optical mouse, put a piece of semi-translucent tape over it. It will slowly degrade performance as it gets scratched up.
Like I said in one of my other comments, my hatred of JSP's come from co-workers ugly code.
I am sure that there are better ways to do JSP then how they were doing it, but it left such a bad taste in my mouth that when I was evaluting how we were going to write our new application, I much prefered Servlets + Freemarker.
If I ever see a case where I think JSP or any other item can do the job better, I will use it.
As far as FreeMarker sucking, I think that was just Velocity/Turbine bitterness. I have had many more issues with Velocity then I have with FreeMarker.
I guess I shouldn't have been so zealous in my hatred of JSP. I am by no means a purist. Hell, I was primarily a PHP programmer. My hatred for JSP comes from seeing the horrible nasty code that the so called "java experts" in another programming group at my company write. I guess I should remeber that even evil things (JSP, .NET, Broccoli) can be used for good.
No HTML in my Java. Like I said in my post, I use templates. All HTML goes into the templates.
I choose what objects to expose to the template engine, and the template engine then merges the objects with the template. For example, when a user logs in, an object is created that contains personal preferences like font size, colors, what content they want on their front page. Lets call this object "blah" though I can expose it to the template using any name I want. In the template, if I want to get information from that object, I just call ${blah.myMethodName()}.
JSP sucks....
However, I currently am working to migrate our PHP web application to Java and it is going well. I am using Servlets + FreeMarker templates. Using a template system allows me to change some of the presentation details without recompiling and Servlets prevent me from killing myself because of the giant nasty hack that is JSP...
Yes, I might seem bitter but I can see no real reason to use JSP. The only argument I can get from anyone on for it is "You don't have to recompile and deploy it". That was a good point before application servers accepted changes on the fly to the code. Now I just recompile the one servlet and Tomcat reloads it. Simple...
Wow, slashdot has everything.. Even hammer geeks...
The problem with using variables like that is if you (or an admin) forgets to turn error reporting off and there is a problem, the end user can see "Error, variable iFuckYourMother undefined.".
For that reason, I showed restraint in naming variables/classes/functions but boy did I let loose in comments.
SVG is in no way "everyone". It runs poorly in IE, and very poorly in netscape. They are just now starting to get SVG working at all in Mozilla, and I doubt it supports a lot of advanced scripting.
I hate applets, but if you need alot of client side interactivity, I would say Java is the way to go.
The reason I have guns is not to keep the government away. It is for home defense. You might be fine with getting killed while waiting for the police to come stop the crack addled burgler, but I would much rather put a .357 slug in his chest.
I messed with Velocity but found it to be somewhat of a pain in the butt. I much prefer FreeMarker. Similar features to Velocity, just easier to use. Oh and the documentation kicks ass, which is one area I found lacking in velocity.
And no, I am not a freemarker developer, just a happy user.
I use a logitech ergonomic KB (and the mouse though it has started to go crazy recently). For two handed use it shines. I code ~8 hrs/day and I mess around on the net for probably another 4 (yes, I do need a life) and to me, it is much better then a standard keyboard. With a standard KB, my wrists feel cramped and at the wrong angle, while with the "ergonomic" KB everything is comfortable.
For one handed use, yes it is a tad bit more difficult for some key combinations, but I rarely need any shortcuts besides ctrl-[z|x|c|v] while using only one hand.
The point of seperating the presentation logic from the main program even though it might be 3x as big is still maintability. You should never have to go in and modify the Smarty classes. You will however have to go in and modify your own code. To me it is just calling another library for use. I don't know about you, but most of my pages are only a couple hundred lines at the most, but almost all call on some massive libraries. If I didn't want to load the libraries every time, I could hardcode some of the logic into my page, but that would increase maintanence time.
Anyways, I just got in so this post might not make sense, but even though Smarty is huge, I think what you gain in maintanability is worth it. I wonder if it would be possible to create a "Smarty Lite" with only the basic features?
The reason for a templating solution like smarty is to keep presentation seperate from all the business logic. It also allows designers who only know HTML to change the template. If you keep all the real work in another file, then you are on the right road. However, I have gotten severe migraines from looking at old code that mixes HTML and another language.
Some template solutions are not much better then mixing PHP and HTML but others like Smarty are kick ass. In Smarty, you can put simple presentation logic in your templates. For example, with a proper template, you just pass an array to smarty and it will render it into a nice table, highlighting every other row, bolding keywords you tell it too, etc etc.
It does take a little while to get used too, but follow the link in the grandparent and read up on it. It is worth the time I think.
Or you can just run PHP on IIS.
Then the CSes shouldn't try to write software for production use if that is not what they are trained to do.