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

Ask Slashdot: Is Pascal Underrated?

posted 6 hours | from anonymous coward

developers 265

An anonymous reader writes In the recent Slashdot discussion on the D programming language, I was surprised to see criticisms of Pascal that were based on old information and outdated implementations. While I'm sure that, for example, Brian Kernighan's criticisms of Pascal were valid in 1981, things have moved on since then. Current Object Pascal largely addresses Kernighan's critique and also includes language features such as anonymous methods, reflection and attributes, class helpers, generics and more (see also Marco Cantu's recent Object Pascal presentation). Cross-platform development is fairly straightforward with Pascal. Delphi targets Windows, OS X, iOS and Android. Free Pascal targets many operating systems and architectures and Lazarus provides a Delphi-like IDE for Free Pascal. So what do you think? Is Pascal underrated?

Brought To You By the Letter R: Microsoft Acquiring Revolution Analytics

posted 11 hours | from theodp

math 90

theodp writes Maybe Bill Gates' Summer Reading this year will include The Art of R Programming. Pushing further into Big Data, Microsoft on Friday announced it's buying Revolution Analytics, the top commercial provider of software and services for the open-source R programming language for statistical computing and predictive analytics. "By leveraging Revolution Analytics technology and services," blogged Microsoft's Joseph Sirosh, "we will empower enterprises, R developers and data scientists to more easily and cost effectively build applications and analytics solutions at scale." Revolution Analytics' David Smith added, "Now, Microsoft might seem like a strange bedfellow for an open-source company [RedHat:Linux as Revolution Analytics:R], but the company continues to make great strides in the open-source arena recently." Now that it has Microsoft's blessing, is it finally time for AP Statistics to switch its computational vehicle to R?

Bjarne Stroustrup Awarded 2015 Dahl-Nygaard Prize

posted 1 day | from mikejuk

programming 148

mikejuk writes Bjarne Stroustrup, the creator of C++, is the 2015 recipient of the Senior Dahl-Nygaard Prize, considered the most prestigious prize in object-oriented computer science. Established in 2005 it honors the pioneering work on object-orientation of Ole-Johan Dahl and Kristen Nygaard, who designed Simula, the original object-oriented language and are remembered as "colorful characters." To be eligible for the senior prize an individual must have made a "significant long-term contribution to the field of Object-Orientation," and this year it goes to Bjarne Stoustrup for the design, implementation and evolution of the C++ programming language. You can't argue with that.

By the Numbers: The Highest-Paying States For Tech Professionals

posted 2 days | from nerval's lobster

it 132

Nerval's Lobster writes The average technology professional made $89,450 in 2014, according to Dice's latest salary survey. When it comes to salaries, however, not all states and cities are created equal. Those tech pros living and working in Silicon Valley are the highest-paid in the country, with an average annual salary of $112,610—but that salary grew only 4 percent year-over-year, lagging behind cities such as Portland and Seattle. Dice has built an interactive map that shows where people are making the most (and least). As you click around, note how salary growth is particularly strong in parts of the West, the Northeast, and the South, while remaining stagnant (and even regressing) in some middle states. If anything, the map reinforces what many tech pros have known for years: that more cities and regions are becoming hubs of innovation.

Blackberry CEO: Net Neutrality Means Mandating Cross-Platform Apps

posted 3 days | from dw100

business 307

DW100 writes In a bizarre public blog post the CEO of BlackBerry, John Chen, has claimed that net neutrality laws should include forcing app developers to make their services available on all operating systems. Chen even goes as far as citing Apple's iMessage tool as a service that should be made available for BlackBerry, because at present the lack of an iMessage BlackBerry app is holding the firm back. Some excerpts from Chen's plea: Netflix, which has forcefully advocated carrier neutrality, has discriminated against BlackBerry customers by refusing to make its streaming movie service available to them. Many other applications providers similarly offer service only to iPhone and Android users. ... Neutrality must be mandated at the application and content layer if we truly want a free, open and non-discriminatory internet. All wireless broadband customers must have the ability to access any lawful applications and content they choose, and applications/content providers must be prohibited from discriminating based on the customer’s mobile operating system. Since "content providers" are writing code they think makes sense for one reason or another (expected returns financial or psychic), a mandate to write more code seems like a good way to re-learn why contract law frowns on specific performance.

User Plea Means EISA Support Not Removed From Linux

posted 3 days | from jones_supa

hardware 187

jones_supa writes A patch was proposed to the Linux Kernel Mailing List to drop support for the old EISA bus. However a user chimed in: "Well, I'd like to keep my x86 box up and alive, to support EISA FDDI equipment I maintain if nothing else — which in particular means the current head version of Linux, not some ancient branch." Linus Torvalds was friendly about the case: "So if we actually have a user, and it works, then no, we're not removing EISA support. It's not like it hurts us or is in some way fundamentally broken, like the old i386 code was (i386 kernel page fault semantics really were broken, and the lack of some instructions made it more painful to maintain than needed — not like EISA at all, which is just a pure add-on on the side)." In addition to Intel 80386, recent years have also seen MCA bus support being removed from the kernel. Linux generally strives to keep support even for crusty hardware if there provably is still user(s) of the particular gear.

Ask Slashdot: Has the Time Passed For Coding Website from Scratch?

posted 4 days | from thomawack

internet 298

First time accepted submitter thomawack writes As a designer I always do webdesign from scratch and put them into CMSMS. Frameworks are too complicated to work into, their code is usually bloated and adaptable online solutions are/were limited in options. I know my way around html/css, but I am not a programmer. My problem is, always starting from scratch has become too expensive for most customers. I see more and more online adaptive solutions that seem to be more flexible, but I am a bit overwhelmed because there are so many solutions around. Is there something you can recommend?

Jim Blasko Explains 'Unbreakable Coin' (Video 2 of 2)

posted 4 days | from pudge

money 39

Today, the conclusion of my talk with Jim Blasko (here's part 1), who encourages you to go start your own crypto currency, because it's a fun exercise and because every entrant adds new ideas to the mix. As you'd expect, he's bullish about both his own Unbreakable Coin and cryptocurrencies more generally; how any given given currency performs, though, is an open question: U.S. dollars, Euros, or Yen may not go experience any meteoric rises, but their stability, even with inflation, is a nice feature, and so is their worldwide convertibility.

Regulation, speculation, fraud, and cultural fashions all play a role in making new currencies risky; reader mbkennel yesterday asked an insightful question: "Are you up to loaning bitcoin or something less popular for 10 years?" Confidence in any given currency can be tested with the terms current holders are willing to accept to make loans payable in that same currency. (On the other hand, if large companies will accept it in payment, they've probably got an idea that a given currency will be around next month or next year.) If you've bought any form of crypto currency, what's been your experience, and what do you expect in 10 years? (Alternate Video Link)

Oracle Releases Massive Security Update

posted 4 days | from wiredmikey

oracle 79

wiredmikey writes Oracle has pushed out a massive security update, including critical fixes for Java SE and the Oracle Sun Systems Products Suite. Overall, the update contains nearly 170 new security vulnerability fixes, including 36 for Oracle Fusion Middleware. Twenty-eight of these may be remotely exploitable without authentication and can possibly be exploited over a network without the need for a username and password.

Gender and Tenure Diversity In GitHub Teams Relate To Higher Productivity

posted 4 days | from bogdan vasilescu

acm 103

New submitter Bogdan Vasilescu writes: Diversity in teams is a double-edged sword. Increased team diversity results in more varied backgrounds and ideas, providing the team with access to broader information, enhanced creativity, adaptability, and problem solving skills. However, due to greater perceived differences in values, norms, and communication styles in more diverse teams, members become more likely to engage in stereotyping, cliquishness, and conflict.

In a recent study, researchers from University of California, Davis and Eindhoven University of Technology, The Netherlands have analyzed the effects of gender and tenure diversity on productivity and turnover for more than 23,000 open-source projects on GitHub. Using regression modeling, they showed that after controlling for team size and other confounds (such as a project's age, development model, or amount of social activity), both gender and tenure diversity are positive and significant predictors of productivity, together explaining a small but significant fraction of the data variability. On an economic and societal scale, these findings suggest that added investments in educational and professional training efforts and outreach for female programmers will likely result in added overall value.

The paper describing the results (preprint PDF here) will be presented at the prestigious ACM CHI Conference on Human Factors in Computing Systems, in Seoul, South Korea, in April 2015.