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

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

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
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…

2 Free C Compilers Worth a Look

Posted In C++/C#, Working in Tech
Debugging in Pelles
It’s surprising how important the C programming language remains, as it’s now over 40 years since it was first created. It’s a simple but useful language that gives you a very low level view of memory and how variables are stored. It doesn’t have any high-level libraries for hash maps or lists; ANSI C only gives you arrays and pointers. If you want advanced data structures you have to either write them yourself using pointers or get third party or… continue…

Slashdot: News for Nerds

How Game Developers Turn Kickstarter Failure Into Success

posted 2 hours | from nerval's lobster

games 19

Nerval's Lobster writes When you ask random strangers on the Internet to give you money, there are no guarantees. That's true in almost any scenario, including when video game developers use Kickstarter to crowdfund the creation of a game. While 3,900 or so games have been funded on Kickstarter, more than 7,200 game projects failed to hit their goal. Within those two numbers are some people who fall into both categories: developers who failed to get funding on their first try, but re-launched campaigns and hit their goals. Jon Brodkin spoke with a handful of those indie game developers who succeeded on their second try; many of them used the momentum (and fans) from the first attempt to get a head start on funding the second, and one even adjusted his entire plan based on community feedback. But succeeding the second time also depended on quite a bit of luck.

Ask Slashdot: What Do You Wish You'd Known Starting Out As a Programmer?

posted 31 mins | from snydeq

developers 368

snydeq writes: Most of us gave little thought to the "career" aspect of programming when starting out, but here we are, battle-hardened by hard-learned lessons, slouching our way through decades at the console, wishing perhaps that we had recognized the long road ahead when we started. What advice might we give to our younger self, or to younger selves coming to programming just now? Andrew C. Oliver offers several insights he gave little thought to when first coding: "Back then, I simply loved to code and could have cared less about my 'career' or about playing well with others. I could have saved myself a ton of trouble if I'd just followed a few simple practices." What are yours?

C++14 Is Set In Stone

posted 2 days | from jones_supa

software 189

jones_supa (887896) writes "Apart from minor editorial tweaks, the ISO C++14 standard can be considered completed. Implementations are already shipping by major suppliers. C++14 is mostly an incremental update over C++11 with some new features like function return type deduction, variable templates, binary literals, generic lambdas, and so on. The official C++14 specification release will arrive later in the year, but for now Wikipedia serves as a good overview of the feature set."

Software Combines Thousands of Online Images Into One That Represents Them All

posted 3 days | from zothecula

graphics 66

Zothecula writes If you're trying to find out what the common features of tabby cats are, a Google image search will likely yield more results than you'd ever have the time or inclination to look over. New software created at the University of California, Berkeley, however, is designed to make such quests considerably easier. Known as AverageExplorer, it searches out thousands of images of a given subject, then amalgamates them into one composite "average" image.

Companies That Don't Understand Engineers Don't Respect Engineers

posted 4 days | from anonymous coward

workplace 371

An anonymous reader writes Following up on a recent experiment into the status of software engineers versus managers, Jon Evans writes that the easiest way to find out which companies don't respect their engineers is to learn which companies simply don't understand them. "Engineers are treated as less-than-equal because we are often viewed as idiot savants. We may speak the magic language of machines, the thinking goes, but we aren't business people, so we aren't qualified to make the most important decisions. ... Whereas in fact any engineer worth her salt will tell you that she makes business decisions daily–albeit on the micro not macro level–because she has to in order to get the job done. Exactly how long should this database field be? And of what datatype? How and where should it be validated? How do we handle all of the edge cases? These are in fact business decisions, and we make them, because we're at the proverbial coal face, and it would take forever to run every single one of them by the product people and sometimes they wouldn't even understand the technical factors involved. ... It might have made some sense to treat them as separate-but-slightly-inferior when technology was not at the heart of almost every business, but not any more."

Reading, Writing, 'Rithmetic, and Blockly

posted 5 days | from theodp

google 18

theodp writes As teachers excitedly tweet about completing their summer CS Professional Development at Google and Microsoft, and kids get ready to go back to school, Code.org is inviting educators to check out their K-5 Computer Science Curriculum (beta), which is slated to launch in September (more course details). The content, Code.org notes, is a blend of online activities ("engineers from Google, Microsoft, Facebook, and Twitter helped create this tutorial," footnotes explain) and 'unplugged' activities, lessons in which students can learn computing concepts with or without a computer. It's unclear if he's reviewed the material himself, but Chicago Mayor Rahm Emanuel is grateful for the CS effort ("Thank you for teaching our students these critical skills").

Switching Game Engines Halfway Through Development

posted 6 days | from anonymous coward

games 127

An anonymous reader writes: Third-party game engines are wonderful creations, allowing developers to skip a lengthy and complicated part of the development process and spend more time on content creation. But each engine has its own strengths and weaknesses, and they may not be apparent at the beginning of a project. If you realize halfway through that your game doesn't work well on the engine you picked, what do you do? Jeff LaMarche describes how he and his team made the difficult decision to throw out all their work with Unity and start over with Unreal. He describes some technical limitations, like Unity's 32-bit nature, and some economic ones, like needing to pay $500 per person for effective version control. He notes that Unreal Engine 4 has its problems, too, but the biggest reason to switch was this: "Our team just wasn't finding it easy to collaborate. We weren't gelling as a cohesive team and we often felt like the tools were working against us."

Ask Slashdot: What Recliner For a Software Developer?

posted 6 days | from taxilian

furniture 154

Taxilian writes We've talked about office chairs before, but I'm one of those coders who tends to relax by doing more coding. Particularly when I'm short on time for a project, I like to move my work to where I am still around my wife and children so that I can still interact with them and be with my family, but still hit my deadlines. I have used various recliners and found that programming in them (at least in evenings) can be quite comfortable, but haven't felt like I really found the 'ideal chair' for relaxing and working on my Macbook.

I have found references to failed chairs (like La-Z-Boy Explorer, the so-called "E-cliner") that were intended for tech and failed, but are there any existing and useful options? I'd really like something that provides some sort of lap desk (to keep the heat from the laptop away from me) and reasonable power arrangements while still being comfortable and not looking ridiculous in a normal family room.

Interviews: Ask Bjarne Stroustrup About Programming and C++

posted 1 week | from samzenpus

features 425

In addition to being the creator of C++, Bjarne Stroustrup is a Managing Director in the technology division of Morgan Stanley, a Visiting Professor in Computer Science at Columbia University, and a Distinguished Research Professor in Computer Science at Texas A&M University. Bjarne has written a number of books and was elected a member of the National Academy of Engineering. He will be doing a live Google + Q & A within the C++ community on August 20th, 2014 at 12:30pm EST, but has agreed to answer your questions first. As usual, ask as many as you'd like, but please, one per post.