Click here to Skip to main content
15,908,254 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: APOD Pin
Mike Hankey27-Jan-14 17:00
mveMike Hankey27-Jan-14 17:00 
GeneralDeadline PinPopular
Espen Harlinn27-Jan-14 12:01
professionalEspen Harlinn27-Jan-14 12:01 
GeneralRe: Deadline Pin
Pete O'Hanlon27-Jan-14 12:06
mvePete O'Hanlon27-Jan-14 12:06 
GeneralRe: Deadline Pin
Keith Barrow27-Jan-14 12:44
professionalKeith Barrow27-Jan-14 12:44 
JokeRe: Deadline Pin
TnTinMn27-Jan-14 15:40
TnTinMn27-Jan-14 15:40 
GeneralRe: Deadline Pin
Keith Barrow27-Jan-14 22:25
professionalKeith Barrow27-Jan-14 22:25 
GeneralRe: Deadline Pin
Mike Hankey27-Jan-14 17:01
mveMike 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
Dan 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:

C#
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
mvePIEBALDconsult27-Jan-14 10:12 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
OriginalGriff27-Jan-14 10:15
mveOriginalGriff27-Jan-14 10:15 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
PIEBALDconsult27-Jan-14 10:46
mvePIEBALDconsult27-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
Dan 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
mveOriginalGriff27-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
professionalEspen 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
MRJIT27-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
James 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
KP 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
Stefan_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
StatementTerminator28-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
KP 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
StatementTerminator28-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
Stefan_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
StatementTerminator30-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
Stefan_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
Member 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.