Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy.
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 and please don't post ads.

Technical discussions are welcome, but if you need specific help please use the programming forums.


 
GeneralRe: APOD PinmemberMike Hankey27-Jan-14 17:00 
GeneralDeadline PinmentorEspen Harlinn27-Jan-14 12:01 
GeneralRe: Deadline PinprotectorPete O'Hanlon27-Jan-14 12:06 
GeneralRe: Deadline PinmentorKeith Barrow27-Jan-14 12:44 
JokeRe: Deadline PinmemberTnTinMn27-Jan-14 15:40 
GeneralRe: Deadline PinmentorKeith Barrow27-Jan-14 22:25 
GeneralRe: Deadline PinmemberMike Hankey27-Jan-14 17:01 
GeneralThe only thing worse than code written using The Wrong Brace Style(tm) PinmemberDan 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) PinmemberPIEBALDconsult27-Jan-14 10:12 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) PinprotectorOriginalGriff27-Jan-14 10:15 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) PinmemberPIEBALDconsult27-Jan-14 10:46 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) PinmemberDan Neely27-Jan-14 10:33 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) PinprotectorOriginalGriff27-Jan-14 10:13 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) PinmentorEspen Harlinn27-Jan-14 11:31 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) PinmemberMRJIT27-Jan-14 20:10 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) PinmemberJames Curran28-Jan-14 1:04 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) PinmemberKP Lee28-Jan-14 11:07 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) PinmemberStefan_Lang29-Jan-14 20:15 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) PinmemberStatementTerminator28-Jan-14 4:14 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) PinmemberKP Lee28-Jan-14 11:21 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) PinmemberStatementTerminator28-Jan-14 11:31 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) PinmemberStefan_Lang29-Jan-14 20:32 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) PinmemberStatementTerminator30-Jan-14 3:22 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) PinmemberStefan_Lang30-Jan-14 3:54 
RantRe: The only thing worse than code written using The Wrong Brace Style(tm) PinmemberMember 1047517028-Jan-14 8:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web04 | 2.8.140721.1 | Last Updated 26 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid