|
I'm not "worried". I'm old, and I started working in the industry back in the late 70's, when we only had single sided 5-1/4 inch floppies and 64k of RAM. Conservation of resources was a really big deal back then, and while I realize that resources are generally more abundant today, I still code as if they weren't.
I realize that the .Net framework requires almost 5gb of disk space to install, but I view that as part of the OS, and not part of my application when I deploy it. When my app grows to over 10mm for a simple "hello world" application, I get a bit annoyed.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I get it.
I was taking a trip down memory lane with some old 3 1/2 inch disks and was thinking 'how did we ever survive??' 640Kb RAM, 20Mb HDD, 4.77MHz. Ah, those were the days...
cheers
Chris Maunder
|
|
|
|
|
Trying to tighten up my CSS skills so I'm reading, CSS: The Definitive Guide[^] (4th ed) O'Reilly pub., and I learned something about CSS selectors I've never seen before.
If you have only a bit of CSS knowledge (like me) then you probably know you can create :
1) id selectors (indicated by # symbol)
#mainThang{color:blue;border: 5px solid red;}
<div id="mainThang>This my example.</div> 2) class selectors (indicated by . symbol)
.articleTitle {font-size:xx-large;color:red}
<div class="articleTitle">This Explains Everything</div>
All Elements With An Attribute
But, did you know you could select all elements that have a particular attribute?
For example you can select every img element on your page that has an alt tag on it.
Obviously, if the img doesn't have that attribute it isn't chosen.
You use [ ] brackets to indicate the attribute of the element:
img[alt] {border: 3px solid red;}
<img alt="elephant pic" src="fakeUrl.png">
<img alt="bird pic" src="fakeUrl2.png">
<img src="fake_unknown.png">
The first two images would get the style applied, but the last one wouldn't.
I like learning. Learning's my favorite.
|
|
|
|
|
Interesting. I avoid messing with CSS as much as possible, jQuery is my thing, but I suppose I should spend a little more time on learning about it.... maybe next year.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
� Forogar � wrote: I avoid messing with CSS as much as possible,
Me too. Boostrap [^] will definitely spoil you if you try it out.
It basically style controls for you in HTML the same we were able to depend upon Microsoft to do all that for us on WinForms in the past.
|
|
|
|
|
Yeah, we use Bootstrap as well. I like it because "it just works".
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Forogar wrote: I like it because "it just works".
Absolutely! It's actually quite easy to learn from the bootstrap examples too.
|
|
|
|
|
|
Richard Deeming wrote: You can also select elements based on full or partial matches of the attribute value
Yeah, there's a lot more granularity there than I had ever known. Good stuff really.
|
|
|
|
|
|
|
W3Schools is a good reference. I use it all the time. Thanks
|
|
|
|
|
Yes, but the only reason is I have and have read that book.
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
|
raddevus wrote: I like learning. Learning's my favorite.
Followed by ranting about what I learned, at least for me.
|
|
|
|
|
wait until you find out about the pseudo-selectors like nth-child...
Phil
|
|
|
|
|
switch (es) {
case CS_DISENABLED: return ::CreateSolidBrush(brRed); break;
case CS_ENABLED: return ::GetSysColorBrush(COLOR_WINDOW); break;
case CS_UNDEF: return ::CreateSolidBrush(brRed); break;
default: return ::CreateSolidBrush(brRed); break;
}
What's wrong here?
I'll wait.
Software Zen: delete this;
|
|
|
|
|
1) none of the break statements are ever hit
2) default does not require nor need break statement
3) DISENABLED is a very odd word.
those are all I got right now.
|
|
|
|
|
Not to mention that it could be written as:
return (es == CS_ENABLED)?::GetSysColorBrush(COLOR_WINDOW) : ::CreateSolidBrush(brRed);
I woke up today with a bad case of one-line syndrome
Mircea
|
|
|
|
|
Mircea Neacsu wrote: a bad case of one-line syndrome This is one case where I actually like one-line solutions, especially using the conditional operator. I have a prejudice against using it in any case that takes more than a single line, or at worst something like this:
value = condition ?
true-value :
false-value; Anything more involved than that, and I want it expressed as a complete if statement.
Software Zen: delete this;
|
|
|
|
|
Your #3 was the first thing I noticed, followed by #1. I think #2 is a matter of personal taste, as that works only when the default: case is the last one in the switch statement.
FWIW, "disenabled" grates on my nerves only slightly less than the British word "orientate". I'm a third-generation 'Murican descended from German immigrants, and I use "orient" as the verb.
Software Zen: delete this;
|
|
|
|
|
To the rest of the world (who actually speak English ), the Orient is a (somewhat dated) way to refer to the Far East. It's where oriental is derived.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
The boss just said, "we'll be doing Scrum, but with a Kanban approach" -- just shoot me now.
|
|
|
|
|
Had to look up Kanban and should probably look up Scrum too.
All this development methodology stuff is for AR OCD types.
EDIT: OMG, the name Scrumban[^] has actually been coined for this tripe. Well, at least you won't be a guinea pig!
|
|
|
|
|