Click here to Skip to main content
12,298,406 members (49,304 online)

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy except programming questions.

Technical discussions are encouraged, but click here to ask your programming question.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: APOD Pin
Mike Hankey27-Jan-14 17:00
memberMike Hankey27-Jan-14 17:00 
GeneralDeadline PinPopular
Espen Harlinn27-Jan-14 12:01
mentorEspen Harlinn27-Jan-14 12:01 
GeneralRe: Deadline Pin
Pete O'Hanlon27-Jan-14 12:06
protectorPete O'Hanlon27-Jan-14 12:06 
GeneralRe: Deadline Pin
Keith Barrow27-Jan-14 12:44
mentorKeith Barrow27-Jan-14 12:44 
JokeRe: Deadline Pin
TnTinMn27-Jan-14 15:40
memberTnTinMn27-Jan-14 15:40 
GeneralRe: Deadline Pin
Keith Barrow27-Jan-14 22:25
mentorKeith Barrow27-Jan-14 22:25 
GeneralRe: Deadline Pin
Mike Hankey27-Jan-14 17:01
memberMike Hankey27-Jan-14 17:01 
GeneralThe only thing worse than code written using The Wrong Brace Style(tm) Pin
Dan Neely27-Jan-14 10:04
memberDan Neely27-Jan-14 10:04 
... is code that is written using a mix of brace styles.

For my sins I'm investigating the possibility of porting one of my employer's apps to the BB10 platform; and most of the sample app code they've provided looks like this:

PhotoBomberApp::PhotoBomberApp()
{
    // Create a QMLDocument and load it, using build patterns
    QmlDocument *qml = QmlDocument::create("asset:///main.qml");
 
    qml->setContextProperty("_photoBomber", this);
 
    if (!qml->hasErrors()) {
        // The application Page is created from QML.
        Page *appPage = qml->createRootObject<Page>();
 
        if (appPage) {
 
            // Set the application scene.
            Application::instance()->setScene(appPage);
        }
    }
}

Some opening braces on their own line; others on the preceding line. **SPEW**[^]
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius

Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt

GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
PIEBALDconsult27-Jan-14 10:12
memberPIEBALDconsult27-Jan-14 10:12 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
OriginalGriff27-Jan-14 10:15
protectorOriginalGriff27-Jan-14 10:15 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
PIEBALDconsult27-Jan-14 10:46
memberPIEBALDconsult27-Jan-14 10:46 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Dan Neely27-Jan-14 10:33
memberDan Neely27-Jan-14 10:33 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
OriginalGriff27-Jan-14 10:13
protectorOriginalGriff27-Jan-14 10:13 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Espen Harlinn27-Jan-14 11:31
mentorEspen Harlinn27-Jan-14 11:31 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
MRJIT27-Jan-14 20:10
memberMRJIT27-Jan-14 20:10 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
James Curran28-Jan-14 1:04
memberJames Curran28-Jan-14 1:04 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
KP Lee28-Jan-14 11:07
memberKP Lee28-Jan-14 11:07 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Stefan_Lang29-Jan-14 20:15
memberStefan_Lang29-Jan-14 20:15 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
StatementTerminator28-Jan-14 4:14
memberStatementTerminator28-Jan-14 4:14 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
KP Lee28-Jan-14 11:21
memberKP Lee28-Jan-14 11:21 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
StatementTerminator28-Jan-14 11:31
memberStatementTerminator28-Jan-14 11:31 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Stefan_Lang29-Jan-14 20:32
memberStefan_Lang29-Jan-14 20:32 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
StatementTerminator30-Jan-14 3:22
memberStatementTerminator30-Jan-14 3:22 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Stefan_Lang30-Jan-14 3:54
memberStefan_Lang30-Jan-14 3:54 
RantRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Member 1047517028-Jan-14 8:19
memberMember 1047517028-Jan-14 8:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.160525.2 | Last Updated 28 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid