C++ and C#

A Dice Talent Community

C++/C# Community

A community related to learning about C++ — including elements of the .NET framework — and C#. We’ll explore available development tools and best practices, as well as deployment on the Web, in browser-based applications and on the desktop.

Click here for information about C++ and C# fundamentals.

 

Latest from Dice

Passing Functions as Parameters

Passing a Function as Parameter in C#
When I first started programming in the late 1970s, I was heavily into Pascal and the concept of passing an address as a parameter was just unheard of outside of academic circles. Procedural programming treated functions as something that were called, not passed around. Had I known C then—which had been around since the early 1970s—I might have been more aware of function pointers. If you don’t know C that well, a pointer is a variable that holds the memory… continue…

Creating Random Access Text in C#

Contents of the Two Files
Back in April I looked at disk folders as a possible alternative to NoSQL or using a relational DB. My conclusion wasn’t encouraging—I was concerned about poor performance, especially on Linux. The use case I examined was for a server that had from 100,000 to 1 million users. I wanted to store and retrieve text files for any user. Those files could vary in length from a few bytes to a few KB. Back in the dark ages—before the Web… continue…

How to Write a Game Runner Program

Cards
I wrote the runsevens game runner program to automate the running of the Tournament of Sevens programming challenge, and it was an interesting little project. It’s designed to do the following: Maintain a ladder of players. Run games of Sevens for a number of players by executing standalone exes. Update the ladder with games’ results. That’s a fairly high-level view. Running each game of Sevens also requires shuffling a deck of cards, dealing them to the players and tracking card… continue…

How One Line of Code Forced a Full OS Release

Posted In C++/C#, iOS, Working in Tech
iPhone Update
It’s not often that Apple ‘fesses up about a bug, but the release iOS 7.0.6 came about because somehow an extra line of code got added to a function and broke it. Normally a bug would probably not warrant a complete release, but unfortunately this one-liner broke SSL connection verification. This is the code that checks that the connection is talking to the correct destination and uses SSL and TLS to verify it. You can take a look at the… continue…

A Look at Microsoft’s PCL for SQLite

Posted In C++/C#, Working in Tech
SQLiteSpy
Having grown up in a world where the concept was anathema to Microsoft, it seems strange to think of them now on the side of open source. In 2002, for instance, there was public debate about the GPL with Microsoft taking a stand against it. Now, there’s a part of Microsoft that’s pushing out open source, “Building bridges between Microsoft and non-Microsoft technologies.” Now it has to be said that this does not come from sheer altruism. Microsoft has come… continue…

Slashdot: News for Nerds

Digia Spins Off Qt As Subsidiary

posted 2 hours | from deviceguru

linux 17

DeviceGuru writes: Following through on an announcement from August, Digia has spun off a subsidiary called The Qt Company to unify Qt's commercial and open source efforts, and debuted a low-cost plan for mobile developers. The Linux-oriented Qt cross-platform development framework has had a tumultuous career, having been passed around Scandinavia over the years from Trolltech to Nokia and then from Nokia to Digia. Yet, Qt keeps rolling along in both commercial and open source community versions, continually adding support for new platforms and technologies, and gaining extensive support from mobile developers. Now Qt is its own company, or at least a wholly owned subsidiary under Digia. Finland-based Digia has largely been involved with the commercial versions of Qt since it acquired the platform from Nokia in 2012, but it has also sponsored the community Qt Project as a relatively separate project. Now, both efforts are being unified under one roof at The Qt Company and the new QT.io website, says Digia. Meanwhile, Digia will focus on its larger enterprise software business.

New Release of MINIX 3 For x86 and ARM Is NetBSD Compatible

posted 10 hours | from anonymous coward

os 81

An anonymous reader writes MINIX 3 is a small POSIX-compliant operating system aimed at high reliability (embedded) applications. A major new version of MINIX 3 (3.3.0) is now available for download at www.minix3.org. In addition to the x86, the ARM Cortex A8 is now supported, with ports to the BeagleBoard and BeagleBones available. Finally, the entire userland has been redone in 3.3.0 to make it NetBSD compatible, with thousands of NetBSD packages available out of the box. MINIX 3 is based on a tiny (13 KLoC) microkernel with the operating system running as a set of protected user-mode processes. Each device driver is also a separate process. If a driver fails, it is automatically and transparently restarted without rebooting and without applications even noticing, making the system self-healing. The full announcement, with links to the release notes and notes on installation, can be found at the Minix Google Groups page.

Industry-Based ToDo Alliance Wants To Guide FOSS Development

posted 12 hours | from jralls

business 49

jralls (537436) writes The New York Times broke a story [Monday] (paywalled if you look at more than 10 stories a month) about ToDo, "an open group of companies who run open source programs" who are seeking to "committed to working together in order to overcome" the challenges of using FOSS, "including ensuring high-quality and frequent releases, engaging with developer communities, and using and contributing back to other projects effectively." The more militant among us will read that as "It's not enough getting a free ride off of developers building great software, we want to shove our roadmap down their throats and get them to work harder for us — without having to pay for it, of course." That might be a bit harsh, but none of the companies on the page are exactly well known for cooperating with the projects they use, with Google being one of the worst offenders by forking both Linux and WebKit.

Why Apple Should Open-Source Swift -- But Won't

posted 17 hours | from snydeq

apple 168

snydeq writes: Faster innovation, better security, new markets — the case for opening Swift might be more compelling than Apple will admit, writes Peter Wayner. "In recent years, creators of programming languages have gone out of their way to get their code running on as many different computers as possible. This has meant open-sourcing their tools and doing everything they could to evangelize their work. Apple has never followed the same path as everyone else. The best course may be to open up Swift to everyone, but that doesn't mean Apple will. Nor should we assume that giving us something for free is in Apple's or (gasp) our best interests. The question of open-sourcing a language like Swift is trickier than it looks."

KDevelop 4.7.0 Released

posted 2 days | from kde community

developers 45

KDE Community (3396057) writes "KDevelop team is proud to announce the final release of KDevelop 4.7.0. This release is special, as it marks the end of the KDE4 era for us. As such, KDevelop 4.7.0 comes with a long-term stability guarantee. The CMake support was improved and extended to ensure that all idioms needed for KF5 development are available. The unit test support UI was polished and several bugs fixed. In the same direction, some noteworthy issues with the QtHelp integration were addressed. KDevelop's PHP language support now handles namespaces better and can understand traits aliases. Furthermore, some first fruits of the Google summer of code projects are included in this release. These changes pave the path toward better support for cross compile toolchains. Feature-wise, KDevelop now officially supports the Bazaar (bzr) version control system. On the performance front, it was possible to greatly reduce the memory footprint when loading large projects with several thousand files in KDevelop. Additionally, the startup should now be much faster."

Harvard's CompSci Intro Course Boasts Record-Breaking Enrollment

posted 4 days | from alphadogg

eduharvard 123

alphadogg writes: Harvard College's CS50, the school's Introduction to Computer Science course for undergrads, has attracted about 1 in 8 students this fall — a new record for the school and yet another sign of just how hot this field is becoming for the job-hungry. Overall, 818 undergrads (or 12% of the student body) signed up for the challenging course this semester (PDF), and nearly 900 students are registered when factoring in graduate and cross-registered students. Topics on the syllabus include Linux, cryptography, HTML and JavaScript. David Malan, a Harvard CompSci grad, teaches the course.

Kickstarter's Problem: You Have To Make the Game Before You Ask For Money

posted 4 days | from anonymous coward

games 211

An anonymous reader writes with this piece about Digital Knights, the studio behind the Kickstarter campaign project Sienna Storm, which was cancelled this week after the team raised only 10% of their $180,000 target, despite a compelling concept (a card based espionage game) and a reputable team including the writer of the original Deus Ex, Sheldon Pacotti. The team is now seeking alternative funding before reaching out to publishers, but in an interview given this week, Knights CEO Sergei Filipov highlights what he sees as a recent and growing problem with crowdfunding games: an expectation to see a working prototype. "It seems at least 50 or 60 percent of the game needs to be completed before one launches a campaign on Kickstarter," he says. It's a chicken and egg cycle some indie developers will struggle to break out of, and shows just how far we've come since Tim Schafer's Double Fine Adventure Kickstarter burst the doors open two years ago.

UK's National Health Service Moves To NoSQL Running On an Open-Source Stack

posted 7 days | from anonymous coward

database 198

An anonymous reader sends this news from El Reg: The U.K.'s National Health Service has ripped the Oracle backbone from a national patient database system and inserted NoSQL running on an open-source stack. Spine2 has gone live following successful redevelopment including redeployment on new, x86 hardware. The project to replace Spine1 had been running for three years with Spine2 now undergoing a 45-day monitoring period. Spine is the NHS’s main secure patient database and messaging platform, spanning a vast estate of blades and SANs. It logs the non-clinical information on 80 million people in Britain – holding data on everything from prescriptions and payments to allergies. Spine is also a messaging hub, serving electronic communications between 20,000 applications that include the Electronic Prescription Service and Summary Care Record. It processes more than 500 complex messages a second.

Unpopular Programming Languages That Are Still Lucrative

posted 1 week | from nerval's lobster

money 380

Nerval's Lobster writes In theory, learning less-popular programming languages could end up paying off big—provided the programmers who pursue them play their proverbial cards right. And as with any good card game, there's a considerable element of chance involved: In order to land a great job, you need to become an expert in a language, which involves a considerable amount of work with no guarantee of a payoff. With that in mind, do you think it's worth learning R, Scala, Haskell, Clojure, or even COBOL (the lattermost is still in use among companies with decades-old infrastructure, and they reportedly have trouble filling jobs that rely on it)? Or is it better to devote your precious hours and memory to popular, much-used languages that have a lot of use out there?

John Romero On Reinventing the Shooter

posted 1 week | from anonymous coward

doom 266

An anonymous reader writes: John Romero helped bring us Doom, Quake, and Wolfenstein, but he's also known for Daikatana — an immensely-hyped followup that flopped hard. After remaining on the periphery of game development since then, Romero announced last month that he's coming back to the FPS genre with a new game in development. Today, he spoke with Develop Magazine about his thoughts on the future of shooters. Many players worry that the genre is stagnant, but Romero disagrees that this has to be the case. "Shooters have so many places to go, but people just copy the same thing over and over because they're afraid to try something new. We've barely scratched the surface."

He also thinks the technology underpinning games matters less than ever. Romero says high poly counts and new shaders are a distraction from what's important: good game design. "Look at Minecraft – it's unbelievable that it was made by one person, right? And it shows there's plenty of room for something that will innovate and change the whole industry. If some brilliant designers take the lessons of Minecraft, take the idea of creation and playing with an environment, and try to work out what the next version of that is, and then if other people start refining that, it'll take Minecraft to an area where it will become a real genre, the creation game genre."