Found about 13 opinions about Confused on syntax.
(Page 1)
1.
Object constructor syntax opinion?
(19 Dec 2008)
I recently ran across some code that looks like the following:
JavaScript Code: //example 1 var obj1 = new function () { var i = 1; this.say = function (); { alert(i); }; }; // call new object's say function obj1.say();
It looks like example 1 is defining a class constructor and then immediately executing it using the new operator. The last line calls the obj1.say() and displays "1" to the screen in a browser.
This seems like a confusing way to create an object usin...
2.
Pokémon Essentials Diamond and Pearl Moves & Abilities Project
(28 Dec 2008)
[center]Pokémon Essentials Diamond and Pearl Moves & Abilities Project
Intro
Hi guys. Firstly, apologies for the long title, but at least there's no doubt as to what this is going to do! As those of you that go through every post in the Essentials thread will know, DE5PA1R and I recently decided to try and put in all of the Diamond & Pearl moves that people have been screaming for. DE5PA1R's handling the incredibly dull and repetitive PBS side of things while I'm headbutting my monitor working o...
3.
Re: (NEWBIE) Integer-length?
(14 Dec 2008)
(Included another newsgroup because this topic has gone beyond just Lisp.
For non-Lispers joining now, INTEGER-LENGTH tells number of bits needed
to express a given integer, same as java.math.BigInteger.bitCount.
OP was confused because the function returns number of bits rather
than number of decimal digits the OP really wanted.)
Following up my own article to extend my thought on that topic.
I previously suggested that if you want to know the number of
digits in the decimal expression...
4.
Programming, An Introduction
(12 Nov 2008)
Programming, An Introduction:
-- Part 1: Logic, Vocabulary, Syntax, and How to Go About Learning
Examples given in no particular language unless otherwise stated.
Learning a programming language requires three things, the most complicated of which is portable easily from one language to another.
Logic
The logic underlying programming languages needs to be understood. This logic is the understanding of how commands get from your files to the computer.
The logic of most languages is similar becaus...
5.
What is a Troll?
(07 Dec 2008)
Found and re-posted for lulz
THE MAJOR BREEDS
The Vulgar Troll. These, the crudest of all trolls, make no attempt to hide their species. Often, they make racist comments, or they may post porn another spam. Vulgar usually confine their comments merely to primitive, profane,off-topic observations. When you log into the Really Profound Serious Philosophical Discussions board and see the post, "I smell my farts," you've spotted the Vulgar Troll. Other species of troll sometimes revert to this form...
6.
Tcl_GetIndexFromObjStruct and Comconnosance
(27 Oct 2008)
On Mon, 27 Oct 2008 02:21:23 GMT, "Michael Thomas Greer (Duoas)" <michael.thomas.greer@verizon.net
I've been playing around with images again. I want progressive display
for (at least) GIF and PNG files, but the current photo command
procedure cannot directly accomodate an extension of that kind --and the
current GIF code can be improved, and I just plain don't like TkPNG. I
also want to implement some of Donal Fellows's photo/color/PNG TIPs. So
I have been perusing the source to see...
7.
'Umar Ibn Al-Khattab [Radia-Allahu 'Anhu - "May Allah be pleased with him...
(03 Dec 2008)
Umar ibn al-Khattab (Radia-Allahu 'Anhu - "May Allah be pleased with him") spoke the famous words: "The bonds of Islam will be undone one by one when there will be a generation brought up in Islam who do not know what Jahiliyah is." ('Umar Ibn Al-Khattab [Radia-Allahu 'Anhu - "May Allah be pleased with him"] His Life & Times vol.1 p.49 Dr. 'Ali M. as-Sallabi)
The difference between a king and a caliph:
'Umar said: "By Allah, I do not know if I am a caliph or a king. If I am a king this is a seri...
8.
Linq Style
(16 Dec 2008)
On Tue, 16 Dec 2008 22:36:21 +1100, "Michael C" <mike@nospam.com
var x = from c in customers where c.FirstName == "John" select c;
vs
var x = customers.Where(c.FirstName == "John");
I've been tossing up for a while which version of linq I prefer and I think
I've settled on the second. It's not quite as friendly to read in some cases
but I think it's clearer what's going on, is usually shorter anyway, you
don't have to switch everything over when you encounter a limitation, you
can use...
9.
Writing Tips courtesy of AP English Composition
(07 Nov 2008)
I finally got around to taking AP English Composition in my school, and it is an ABSOLUTE must for you writers out there that take pride in your work. Anyrate, from the course I learned the following basics (especially following my last time here on these forums) and these lessons are as follows.Read as often as possible. Inspiration will come to you from the writers of the past and present, allowing you to become a writer of the future. If you're in writers block, the best thing to do is to pic...
10.
Anonymous in Bergen's (Norway) largest newspaper
(14 Oct 2008)
*Poster John Steed*
http://forums.scientology-exposed.co...newspaper-922/
Not a biggie, but I thought I'd share it nevertheless.
After sending out shitloads of press releases to the Norwegian papers, something is finally happening.
Bergens Tidende (fourth largest paper in Norway) did a piece on us (on the 4th of october), didn't write too much on Chanology, though. More of an "introduction to Anonymous" or something.
And a translation of the illustration:
Extremely quick and dirty translation (t...