pouët.net

propper naming for your classes?

category: general [glöplog]
BB Image
added on the 2009-08-15 02:46:37 by yesso yesso
rydi: it looks like you would benefit from just thinking about your system, its architecture, it's design, and put it on paper. do flowcharts. That can be a boring step, but if you want clean code, that will be very helpful. And like someone else said, the naming should come naturally. If not, use funny acronyms :)
added on the 2009-08-15 03:47:21 by BarZoule BarZoule
what's a class? my c compiler doesn't seem to know the term.
added on the 2009-08-15 03:52:01 by pommak pommak
Quote:
what's a class? my c compiler doesn't seem to know the term.

that's a class:
Code:class Monad m where (>>=) :: forall a b . m a -> (a -> m b) -> m b (>>) :: forall a b . m a -> m b -> m b return :: a -> m a fail :: String -> m a
and a properly named class, that is :)
added on the 2009-08-15 05:40:34 by blala blala
As we all know, the naming is the most difficult part of any demo production process. :)
added on the 2009-08-15 09:18:07 by gloom gloom
yesso: I think that's a fucking ace book, we also have it at work.
added on the 2009-08-15 09:40:54 by styx^hcr styx^hcr
platonicians are cute :)
added on the 2009-08-15 10:14:15 by _-_-__ _-_-__
BarZoule: i said that to myself for a very long time, its cleaning process have started finally! how long time it will take until i am satisfied with the base i dont know. i don't wanna rush it either. slow process. :S. i just started to look at the code on papers some weeks ago, since i bought myself a multi-printer-thing! wee. much easier to read code on paper than scrolling through hundred lines of code and swiching between files on the computer imho.

i ordered that craftmanship book, i dont have any books like that, so it'll be interestin. i may have to wait a few weeks until get it from amazon though.
added on the 2009-08-15 16:11:10 by rudi rudi
oh, cool! It's a pretty good book, the only bad thing is that it assumes you know Java. I don't really know Java but I've understood it fairly well anyway.
added on the 2009-08-16 05:31:33 by yesso yesso
yeah, kind of.
but most of the things in there can be applied to any other language as well. we follow alot of the hints also for our c++ projects.
added on the 2009-08-16 10:55:58 by styx^hcr styx^hcr
yeh. well i know java fairly well, so that wont be a problem.
added on the 2009-08-21 11:12:40 by rudi rudi
Google for "Clean Code" and "Avax"..
added on the 2009-08-21 11:40:14 by trc_wm trc_wm
classname SuperHögen
methods:
SuperHögen1
SuperHögen2
SuperHögen3
SuperHögen4
SuperHögen5
SuperHögen6
SuperHögen7
SuperHögen8
SuperHögen9
SuperHögen10
added on the 2009-08-21 19:20:31 by abductee abductee

login