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

Is Microsoft Truly Embracing Open Source?

Posted In C++/C#, Programming
visualstudio
Back in the day, Microsoft viewed open source and Linux as a threat and did its best to retaliate with FUD and patent threats. So it must have been galling to its executives as, over the past 20 years, the bulk of the Internet came to rely on Apache Web servers; while Microsoft now leads in hostnames (according to Netcraft), Apache remains ahead in terms of hosted active sites. And then a funny thing happened: Whether in the name of… continue…

Is C Still Relevant in the 21st Century?

shutterstock_Family Business
Many programming languages have come and gone since Dennis Ritchie devised C in 1972, and yet C has not only survived three major revisions, but continues to thrive. Large chunks of Windows were written in C, along with most of Linux. But aside from this incredible legacy, what keeps C atop the Tiobe Index? The number of jobs on Dice.com for C programmers is not huge, and many of those also include C++ and Objective-C. On Reddit, the C community,… continue…

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…

Slashdot: News for Nerds

Oracle Sues 5 Oregon Officials For 'Improper Influence'

posted 2 days | from spztoid

court 80

SpzToid writes: Following up on an earlier Slashdot story, the Oracle Corporation has filed a rather timely suit against five of former governor John Kitzhaber's staff for their "improper influence" in the decision to shutter the Cover Oregon healthcare website, while blaming Oracle to defuse the political consequences. Oracle argues the website was ready to go before the state decided to switch to the federal exchange in April.

"The work on the exchange was complete by February 2014, but going live with the website and providing a means for all Oregonians to sign up for health insurance coverage didn't match the former-Governor's re-election strategy to 'go after' Oracle," Oracle spokeswoman Deborah Hellinger said in a statement.

Kitzhaber resigned last week amid criminal probes into an influence-peddling scandal involving allegations that his fiancée used her position in his office for personal gain.

Blu-Ray Players Hackable Via Malicious Discs

posted 2 days | from anonymous coward

exploit 99

An anonymous reader writes: Some Blu-Ray disc interactive features use a Java variant for UIs and applications. Stephen Tomkinson just posted a blog discussing how specially created Blu-Ray discs can be used to hack various players using exploits related to their Java usage. He hacked one Linux-based, network-connected player to get root access through vulnerabilities introduced by the vendor. He did the same thing against Windows Blu-Ray player software. Tomkinson was then able to combine both, along with detection techniques, into a single disc.

Microsoft, Amazon, Google, Facebook Press WA For $40M For New UW CS Building

posted 2 days | from theodp

money 102

theodp (442580) writes "Nice computer industry you got there. Hate to see something bad happen to it." That's the gist of a letter sent by Microsoft, Amazon, Facebook, Google, Code.org, and other tech giants earlier this week asking the WA State Legislature to approve $40M in capital spending to help fund a new $110M University of Washington computer science building ($70M will be raised privately). "As representatives of companies and businesses that rely on a ready supply of high quality computer science graduates," wrote the letter's 23 signatories, "we believe it is critical for the State to invest in this sector in a way that ensures its vibrancy and growth. Our vision is for Washington to continue to lead the way in technology and computer science, but we must keep pace with the vast demand." The UW Dept. of Computer Science & Engineering profusely thanked tech leaders for pressing for a new building, which UW explained "will accommodate a doubling of our enrollment." Coincidentally, the corporate full-press came not long after the ACM Education Council Diversity Taskforce laid out plans "to get companies to press universities to use more resources to create more seats in CS classes" to address what it called "the desperate gap between the rising demand for CS education and the too-few seats available.

Invented-Here Syndrome

posted 3 days | from eda-qa

technology 151

edA-qa writes: Are you afraid to write code? Does the thought linger in your brain that somewhere out there somebody has already done this? Do you find yourself trapped in an analysis cycle where nothing is getting done? Is your product mutating to accommodate third party components? If yes, then perhaps you are suffering from invented-here syndrome.

Most of use are aware of not-invented-here syndrome, but the opposite problem is perhaps equally troublesome. We can get stuck in the mindset that there must be a product, library, or code sample, that already does what we want. Instead of just writing the code we need a lot of effort is spent testing out modules and trying to accommodate our own code. At some point we need to just say, 'stop!', and write the code ourselves.

The Programmers Who Want To Get Rid of Software Estimates

posted 4 days | from anonymous coward

developers 347

An anonymous reader writes: This article has a look inside the #NoEstimates movement, which wants to rid the software world of time estimates for projects. Programmers argue that estimates are wrong too often and a waste of time. Other stakeholders believe they need those estimates to plan and to keep programmers accountable. Is there a middle ground? Quoting: "Software project estimates are too often wrong, and the more time we throw at making them, the more we steal from the real work of building software. Also: Managers have a habit of treating developers' back-of-the-envelope estimates as contractual deadlines, then freaking out when they're missed. And wait, there's more: Developers, terrified by that prospect, put more and more energy into obsessive trips down estimation rabbit-holes. Estimation becomes a form of "yak-shaving" — a ritual enacted to put off actual work."

Who's Afraid of Android Fragmentation?

posted 4 days | from nerval's lobster

handheld 136

Nerval's Lobster writes: The dreaded term "fragmentation" has been applied to Android more times than anyone can count over the past half-decade. That's part of the reason why game developers often build for iOS before Android, even though Android offers a bigger potential customer base worldwide, and more types of gaming experiences. Fortunately, new sets of tools allow game developers to build for one platform and port their work (fairly) easily to another. "We've done simultaneously because it is such a simple case of swapping out the textures and also hooking up different APIs for scores and achievements," London-based indie developer Tom Vian told Dice. "I've heard that iOS is a better platform to launch on first, but there's no sense for us in waiting when we can spend half a day and get it up and running." So is fragmentation an overhyped roadblock, or is it a genuine problem for developers who work in mobile?

The Believers: Behind the Rise of Neural Nets

posted 4 days | from anonymous coward

science 45

An anonymous reader writes Deep learning is dominating the news these days, but it's quite possible the field could have died if not for a mysterious call that Geoff Hinton, now at Google, got one night in the 1980s: "You don't know me, but I know you," the mystery man said. "I work for the System Development Corporation. We want to fund long-range speculative research. We're particularly interested in research that either won't work or, if it does work, won't work for a long time. And I've been reading some of your papers." The Chronicle of Higher Ed has a readable profile of the minds behind neural nets, from Rosenblatt to Hassabis, told primarily through Hinton's career.

Interviews: Ask Senior Director Matt Keller About the Global Learning XPRIZE

posted 5 days | from samzenpus

features 28

The former Vice President of One Laptop per Child (OLPC) Matt Keller is currently the Senior Director of the $15 million Global Learning XPRIZE. The competition challenges teams from around the world to develop open source software solutions that will allow children in developing countries to teach themselves basic reading, writing and arithmetic within a 18 month competition period. After 18 months a panel of judges will evaluate the projects and announce semi-finalists. Semi-finalists will have a month to tweak their projects and/or reconfigure their teams before the judges elect the top five finalist to proceed. Each of the five teams selected will receive $1 million to field test their ideas with the eventual winners receiving the Grand Prize of $10 million. The Global Learning XPRIZE is recruiting teams now through April 30, 2015. Matt has agreed to answer any questions you might have about the competition and the future of education in general. As usual, ask as many as you'd like, but please, one per post.

H-1B Visas Proving Lucrative For Engineers, Dev Leads

posted 6 days | from nerval's lobster

h1b 176

Nerval's Lobster (2598977) writes Ever wanted to know how much H-1B holders make per year? Developer Swizec Teller, who is about to apply for an H-1B visa, took data from the U.S. Department of Labor and visualized it in a series of graphs that break down H-1B salaries on a state-by-state basis. Teller found that the average engineer with an H-1B makes $87,000 a year, a good deal higher than developers ($74,000) and programmers ($61,000) with the same visa. ("Don't call yourself a programmer," he half-joked on Twitter.) Architects, consultants, managers, administrators, and leads with H-1Bs can likewise expect six-figure annual salaries, depending on the state and company. Teller's site is well worth checking out for the interactive graphs, which he built with React and D3.js. The debate over H-1Bs is an emotional one for many tech pros, and research into the visa's true impact on the U.S. labor market wasn't helped by the U.S. Department of Labor's recent decision to destroy H-1B records after five years. "These are the only publicly available records for researchers to analyze on the demand by employers for H-1B visas with detail information on work locations," Neil Ruiz, who researches visa issues for The Brookings Institution, told Computerworld after the new policy was announced in late 2014.

Valve To Reveal Virtual Reality Dev Kit Next Week At GDC

posted 6 days | from anonymous coward

games 48

An anonymous reader writes Gaming giant Valve has been researching augmented and virtual reality for some time. Early on, the company worked closely with Oculus, sharing research findings and even adding support for TF2 to Oculus' first VR headset, the DK1, back in 2013. After demonstrating their own prototype VR headset at Steam Dev Days in early 2014, and then a modified version later in the year, Valve is now ready to take the wraps off a 'previously unannounced ... SteamVR Dev Kit,' which will make its debut at GDC next week. SteamVR is the name of the software adaptation of Steam's 'Big Picture' mode that the company revealed early last year, allowing players to browse their Steam library and play supported games all in virtual reality.