- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Brace:
{
Bracket:
[
Parenthesis:
(
Addendum 2022-03-14 07:45: { frist btw }
Admin
The English language is different:
Square bracket: [
Round bracket: (
Parenthesis: A (usually short) section of exposition which is required to be set apart from the main argument, usually indicated in text by enclosing that section within round brackets, or between paired emdashes or endashes, or perhaps commas.
Admin
Jesus F-ing Christ! Who the hell writes like that?! You need to use constants!
if($_GET['size_cat'] == CONST_59E9)
Addendum 2022-03-14 07:55: Or, if you're a pro:
if($_GET[CONST_SC] == CONST_59E9)
Admin
I suppose we could say the contractor made a real hash of the whole project.
Admin
I once inherited a transactional iPad app written by a company that specialized in making apps for movies - every single UI item on every single screen was absolutely positioned (setting the frame). Of course the first request I got was to support rotation of the device... if you hire a company who only knows hammers, don't expect a drill.
Admin
All of those are braces- they surround and hold together a linguistic segment, emBRACEing it. They are also brackets and parentheses.
Admin
Who puts a hyphen in the middle of their MD5 digest like that?!
Admin
I think I get strange views of some of these stories. Let's roll with the idea that the coder thought someone could see his PHP code. Suppose it's me. The first thing I'd do is pull up the page and see if I can see the source with my browser and confirm or deny my worry. But that first requires that I have an urge to see my software as the user sees it. Sadly, it's all too common to not see your software as the user sees it.
Admin
MD5 leads to mas consumption of MD202 - film at 11....
Addendum 2022-03-14 12:06: MD2020 ....
Admin
My LISP days are already a few decades back, but didn't LISP use parenthesis instead of brackets?
Admin
Ah, this gives me flashbacks to Java… 1.2?…, when you couldn't switchcase over String literals, and of course, that is what, as a newbie programmer, I desperately needed.
Admin
To answer to the title: never use that hell of WordPress!!
Admin
While in a case like this you'd better use an enum (if Java had anything as advanced as that), a switch statement over strings isn't something unthinkable. What's unthinkable is that someone could have been so stupid as to design a language whose mistreatment of strings would make such a switch impossible and what's even more unthinkable is that people still used the language.