cleaning up classes and ids in large site

J

Joe (GKF)

Cake metaphor! Bewdy!

????
....
said... php, dynamic, css, database, client this and that, shake
it all up and bake it for 2 hours at 250 C... <g>
Most of my websites only need 40 minutes at 180 C
I was not really offended, just miffed at the general silence or
off key replies whenever I propose S & R techniques. I am
beginning to think that a lot of people simply do not know the
capabilities of good S & R engines that come with good text
editors.
I use S&R a lot. It's easy. It works.
 
A

Andy Dingley

The special case of a need to check
every id and class is far fetched but interesting.

I work on large projects with large teams. We use Agile techniques and
also practice "shared code ownership". This means that one is usually
working on other peoples' code (actually it means that there isn't any
"other people's code"!). Additionally there's a competency-specific
split between the work people do (Java people do Java, JSP people do
JSP etc.). As my own job is rather centralised and de-specialised, I'm
often trying to integrate these separate efforts.

Part of this work involves a lot of code analysis. I want to see just
what has been going on: if particular sections are using inlined
styles rather than stylesheets, how deep the <table> nesting gets and
if anyone's still using their remaining hand to type <font> tags.
Reporting on use of class or id values, and whether these appear to
correlate between HTML and CSS, is just another part.
 
W

windandwaves

I work on large projects with large teams. We use Agile techniques and
also practice "shared code ownership". This means that one is usually
working on other peoples' code (actually it means that there isn't any
"other people's code"!). Additionally there's a competency-specific
split between the work people do (Java people do Java, JSP people do
JSP etc.). As my own job is rather centralised and de-specialised, I'm
often trying to integrate these separate efforts.

Part of this work involves a lot of code analysis. I want to see just
what has been going on: if particular sections are using inlined
styles rather than stylesheets, how deep the <table> nesting gets and
if anyone's still using their remaining hand to type <font> tags.
Reporting on use of class or id values, and whether these appear to
correlate between HTML and CSS, is just another part.

so how do you do this?
 
D

dorayme

"Andy Dingley said:
I work on large projects with large teams. We use Agile techniques and
also practice "shared code ownership". This means that one is usually
working on other peoples' code (actually it means that there isn't any
"other people's code"!). Additionally there's a competency-specific
split between the work people do (Java people do Java, JSP people do
JSP etc.). As my own job is rather centralised and de-specialised, I'm
often trying to integrate these separate efforts.

Part of this work involves a lot of code analysis. I want to see just
what has been going on: if particular sections are using inlined
styles rather than stylesheets, how deep the <table> nesting gets and
if anyone's still using their remaining hand to type <font> tags.
Reporting on use of class or id values, and whether these appear to
correlate between HTML and CSS, is just another part.

Yeah ok. Stop!

I feel as if I am a wretched White tied to a stake, your whole
team of Red Indians dancing around me, making those wa wa wa
sounds, the drums beating, a big pot (big enough to fit me in)
boiling away nearby and you are the gleeful chief in more
magnificent head feathers than the braves...

I was just kinda saying, I mean ... shucks... that perhaps the OP
(remember him?) would be happy with something as simple as ABC...

(Actually, I am still reeling from reading your essay on European
philosophy and web wsiwig technology and have the feeling you are
in a violent and very hungry mood and will be unstoppably boiling
things alive)
 
D

dorayme

"windandwaves said:
so how do you do this?

I have spies and they report back to me that, once the poor
customer has walked out of his office, relieved that the job of
code analysis is being done by others, he takes a quick decko,
sees font tags and stuff and tells his underlings - from the
corner of his mouth - to guess a template for the html from
existing, grab the contents and navigation and rewrite the lot
from scratch with a clean set of css sheets. The customer is
delighted with the result. He is paying less than he thought he
would but has a satisfyingly fuzzy idea of the great complexity
that has been taken care of for him.
 
A

Andy Dingley

I was just kinda saying, I mean ... shucks... that perhaps the OP
(remember him?) would be happy with something as simple as ABC...

An excellent suggestion. Editors with good regex features (i.e. NOT
TextPad) are under-utilised. They're powerful for lots of problems and
well worth gettign to grips with.
I have the feeling you are
in a violent and very hungry mood and will be unstoppably boiling
things alive)

We of Earth do not eat our living brethren. At least not those that
have faces.

Any "Earthling" who does is clearly one of the lizard-imposters of Zeta
Reticuli. Spiritual Leader David Icke has assured me of this.
 
D

dorayme

Andy Dingley said:
We of Earth do not eat our living brethren.

Methinks this is a late cultural affectation, greatly assisted by
an abundance of alternative protein. I have seen where you lot
came from and I can assure you that after a chimp has been
cornered by a rival group in a raid on another group, feasting,
after working up a healthy appetite savagely tearing apart the
stranger, is the order of the day.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,115
Latest member
JoshuaMoul
Top