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.

Following this community adds its articles to My Tech Feed.

Please note: This community is no longer being updated. Instead, see the Dice Programming Talent Community.

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

Upgrading the Turing Test: Lovelace 2.0

posted 6 hours | from mrspoonsi

technology 49

mrspoonsi tips news of further research into updating the Turing test. As computer scientists have expanded their knowledge about the true domain of artificial intelligence, it has become clear that the Turing test is somewhat lacking. A replacement, the Lovelace test, was proposed in 2001 to strike a clearer line between true AI and an abundance of if-statements. Now, professor Mark Reidl of Georgia Tech has updated the test further (PDF). He said, "For the test, the artificial agent passes if it develops a creative artifact from a subset of artistic genres deemed to require human-level intelligence and the artifact meets certain creative constraints given by a human evaluator. Creativity is not unique to human intelligence, but it is one of the hallmarks of human intelligence."

Startup Assembly Banks On Paid, Open-Source Style Development

posted 22 hours | from enbody

business 32

enbody writes A year-old startup, Assembly, is built on the premise of creating products using open-source style development, but structured in a way that you get paid for your contributions. Open-source development is well-known in the Slashdot community, as are a variety of ways to earn a living around open-source, such as support. What is new here is being paid as part of the development, and not just for coding — your contribution might be as project manager or sales. A nice description with video showed up today on the Verge. Of course, the devil is in the details, but they have products so someone in Slashdot land may be interested. (Bias warning: I know one of these guys.)

It's Not Developers Slowing Things Down, It's the Process

posted 1 day | from anonymous coward

developers 177

An anonymous reader writes: Software engineers understand the pace of writing code, but frequently managers don't. One line of code might take 1 minute, and another line of code might take 1 day. But generally, everything averages out, and hitting your goals is more a function of properly setting your goals than of coding quickly or slowly. Sprint.ly, a company than analyzes productivity, has published some data to back this up. The amount of time actually developing a feature was a small and relatively consistent portion of its lifetime as a work ticket. The massively variable part of the process is when "stakeholders are figuring out specs and prioritizing work." The top disrupting influences (as experienced devs will recognize) are unclear and changing requirements. Another big cause of slowdowns is interrupting development work on one task to work on a second one. The article encourages managers to let devs contribute to the process and say "No" if the specs are too vague. Is there anything you'd add to this list?

As Amazon Grows In Seattle, Pay Equity For Women Declines

posted 2 days | from reifman

amazon 479

reifman writes Amazon's hiring so quickly in Seattle that it's on pace to employ 45,000 people or seven percent of the city. But, 75% of these hires are male. While Seattle women earned 86 cents per dollar earned by men in 2012, today, they make only 78 cents per dollar. In "Amageddon: Seattle's Increasingly Obvious Future", I review these and other surprising facts about Amazon's growing impact on the city: we're the fastest growing — now larger than Boston, we have the fastest rising rents, the fourth worst traffic, we're only twelfth in public transit, we're the fifth whitest and getting whiter, we're experiencing record levels of property crime and the amount of office space under construction has nearly doubled to 3.2 million square feet in the past year.

"Barbie: I Can Be a Computer Engineer" Pulled From Amazon

posted 2 days | from clcto

books 541

New submitter clcto writes Back in 2010, Computer Engineer Barbie was released. Now, with the attention brought to the Frozen themed programming game from Disney and Code.org, unwanted attention has been given to the surprisingly real book "Barbie: I Can Be a Computer Engineer". So much so, that Mattel has pulled the book from Amazon. The book shows Barbie attempting to write a computer game. However, instead of writing the code, she enlists two boys to write the code as she just does the design. She then proceeds to infect her computer and her sister's computer with a virus and must enlist the boys to fix that for her as well. In the end she takes all the credit, and proclaims "I guess I can be a computer engineer!" A blog post commenting on the book (as well as giving pictures of the book and its text) has been moved to Gizmodo due to high demand.

Ask Slashdot: Professionally Packaged Tools For Teaching Kids To Program?

posted 4 days | from binestar

developers 107

Binestar writes: I've been doing IT consulting for years, but I'm not a programmer beyond bash scripting, perl scripts to make administration easier, and batch files to make Windows easier. I recently found an online course for modding Minecraft that my 9-year-old daughter is really enjoying (she built a custom sword that shoots lightning). Does anyone have any recommendations on online courses that would be age appropriate and worth the investment? It's been easy to get her interested in the Minecraft modding course because, as any parent with young children knows, Minecraft is kinda popular...

The course she's taking now is teaching her Eclipse and Gimp, and I'm sure there are other tools installed that they haven't had her open yet. What other vendors have stuff worth introducing her to? I've also started looking at things like the Kano and Learn to Mod, but as a non-programmer, I'm not really sure which are most useful for introduction and which are accomplishing what they claim vs. being a waste of money/time.

Anyone have experience or suggestions to help sort this out?

HTML5: It's Already Everywhere, Even In Mobile

posted 5 days | from electronic convict

html5 133

electronic convict writes: Tom Dale has never been shy, and in a Q&A with Matt Asay on ReadWrite, the EmberJS co-founder and JavaScript evangelist makes the outspoken claim that open Web technologies are already everywhere, even in native mobile apps, and that it's only a matter of time before they catch up to "all the capabilities of a native, proprietary platform." Take that, Web-is-dead doomsayers.

Dale has plenty more to say, calling Google an "adolescent behemoth" that's belatedly embracing open-Web technologies in mobile, lauding Apple's Nitro JS engine and belittling the idea that Web apps have to look and feel the same as native apps for the open Web to triumph. His bottom line: "[I]t's not hard to see that the future of the Web on mobile is a happy one."

Do Good Programmers Need Agents?

posted 5 days | from braindrainbahrain

money 215

braindrainbahrain writes: A rock star needs an agent, so maybe a rock star programmer needs one, too. As described in The New Yorker, a talent agency called 10x, which got started in the music business, is not your typical head hunter/recruiter agency. "The company's name comes from the idea, well established in the tech world, that the very best programmers are superstars, capable of achieving ten times the productivity of their merely competent colleagues." The writer talks with a number of programmers using agents to find work, who generally seem pleased with it, though the article has viewpoints from skeptics as well.

World's Youngest Microsoft Certificated Professional Is Five Years Old

posted 6 days | from hughpickens.com

uk 276

HughPickens.com writes Gurvinder Gill writes at BBC that Ayan Qureshi is the world's youngest Microsoft Certified Professional after passing the tech giant's exam when he was just five years old. Qureshi's father introduced his son to computers when he was three years old. He let him play with his old computers, so he could understand hard drives and motherboards. "I found whatever I was telling him, the next day he'd remember everything I said, so I started to feed him more information," Qureshi explained. "Too much computing at this age can cause a negative effect, but in Ayan's case he has cached this opportunity." Ayan has his own computer lab at his home in Coventry, containing a computer network which he built and spends around two hours a day learning about the operating system, how to install programs, and has his own web site.

Microsoft Certified Professional (MCP) is a certification that validates IT professional and developer technical expertise through rigorous, industry-proven, and industry-recognized exams. MCP exams cover a wide range of Microsoft products, technologies, and solutions. When the boy arrived to take the Microsoft exam, the invigilators were concerned that he was too young to be a candidate. His father reassured them that Ayan would be all right on his own. "There were multiple choice questions, drag and drop questions, hotspot questions and scenario-based questions," Ayan's father told the BBC Asian Network. "The hardest challenge was explaining the language of the test to a five-year-old. But he seemed to pick it up and has a very good memory."