Java

A Dice Talent Community

Java Dice Talent Community

A community for Java developers and fans of the now ubiquitous mobile platform. We’ll explore available development tools, best practices, as well as mobile and enterprise deployment.

Click here for information about Java fundamentals.

Following this community adds its articles to My Tech Feed.

Please note: This community is no longer being updated. Please check the Programming Talent Community.

Latest News From Dice

Coding Challenge Wrap-Up: Who Won the Map

Roman Trade Network
Compared to our previous coding challenges, May’s was a modest affair, with just three entries coming in from Rick Matter, Jon Pattinson and Jay Nagel. And, despite opening the entries to include Delphi, Go and Python as well as C/C++, Java and C#, all three were written in Java! (You can find all the competition files here.) In this challenge, you were given a 20×20 map that contained 20 trading islands, each occupying a square. Each island was a trading… 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…

Is Apache Spark the Next Big Thing in Big Data?

Data Transfer
In any article or blog post, any mention of Big Data usually includes something about Hadoop. When it comes to Big Data, Apache Hadoop has been the big elephant in the room, and the release of Hadoop 2.0 in 2013 made the environment easier and more stable. But even with the inclusion of Impala for querying stored information real-time, Hadoop is still a batch-based system that processes data in, well, batch mode. Big Data processing is said to have three… continue…

Tournament of Sevens: Week 1 Results

Marathon
Though the Tournament of Sevens coding challenge took much longer to get off the ground than expected, I’ve taken steps to sort out the bot bugginess and the contest is now roaring ahead. The first week included 16 viable competitors, out of 19 entries. One obstacle in getting this going was from Eclipse projects. The problem with them is that their source files end up in different places and the IDE is a bit fiddly building and deploying the class… continue…

Interview Questions for Java Developers

Posted In Java, Looking in Tech
Dice Interview Qs Icon
With an estimated 9 million developers using it, Java is one of the most popular programming languages around. In fact, some estimate that Java powers more than 3 billion devices. With so many people claiming expertise, IT managers often ask tricky technical questions to separate the novices from senior developers, says David Bolton, guide of the Dice Java Talent Community. Here are some questions you can expect to hear. What is Type Erasure? What Most People Say: “Umm, I’m not… continue…

Slashdot: News for Nerds

Ask Slashdot: Resources For Kids Who Want To Make Games?

posted 15 hours | from mr. jones

education 106

Mr. Jones writes: My 11-year-old son is fascinated by games — game mechanics in particular. He has been playing everything from Magic to WarFrame since he was 5 years old. He seems mostly interested in creating the lore and associated mechanics of the games (i.e. how a game works). If it was only programming I could help him, but I am lost when it comes to helping him learn more formal ways of developing and defining gameplay. I really see a talent for this in him and I want to support it any way I can. Can you suggest any conferences, programs, books, websites, etc. that would help him learn?

Hackers' Shutdown of 'The Interview' Confirms Coding Is a Superpower

posted 22 hours | from theodp

technology 211

theodp writes: The idea of programming as a superpower was touched upon by CS teacher Alfred Thompson back in 2010, but it became a rallying call of sorts for the Hour of Code after Dropbox CEO Drew Houston described coding as "the closest thing we have to a superpower" in a Code.org video that went viral. And if the kids who learned to code with the President last week were dubious about the power of coding, this week's decision by Sony to scrap the release of the satirical film The Interview after a massive hack attack should put aside any doubts, especially after new revelations that Sony had reached out to the White House for help and screened the film for administration officials back in June. White House press secretary Josh Earnest said Thursday that the Obama Administration is viewing the Sony attack as a "serious national security matter" and is considering a range of possible options as a response, which could turn things into a contest of U.S. Superpower vs. Coding Superpower. In case it wasn't mentioned last week, remember to always use your coding superpower for good, kids!

Book Review: Build Your Own Website: A Comic Guide to HTML, CSS, and WordPress

posted 3 days | from massdosage

books 31

MassDosage writes "At the the risk of exposing my age I remember building my first website using a rudimentary Unix text editor (Joe) and carefully handcrafting the Hypertext Markup Language (HTML) while directly logged on to the web server it was being served from. Back then Cascading Style Sheets (CSS) weren't even a glint in the eyes of their creators. A lot has changed and there's now a world of fancy WYSIWYG web page editors to choose from as well as Content Management Systems that allow you to create websites without looking at the underlying code at all. While this is all very useful and allows less technical people to create websites I still feel that having at least some knowledge of how everything works under the hood is empowering — especially in situations where you want to go beyond the limits placed on you by a certain tool. This is where Build Your Own Website: A comic guide to HTML, CSS and Wordpress comes into the picture. Its aim is to enable people new to web development to learn the subject by teaching the fundamentals of HTML and CSS first and only then describing how to use a Content Management System (CMS) — in this case Wordpress. While Wordpress might not be everyone's kettle of fish it's a good choice as an example of a modern CMS that is easily accessible and very popular. The concepts presented are simple enough that it should be easy enough for a reader to apply them to a different CMS should they want to. Read below for The rest of MassDosage's review.

The Joys and Hype of Hadoop

posted 3 days | from theodp

hadoop 55

theodp writes "Investors have poured over $2 billion into businesses built on Hadoop," writes the WSJ's Elizabeth Dwoskin, "including Hortonworks Inc., which went public last week, its rivals Cloudera Inc. and MapR Technologies, and a growing list of tiny startups. Yet companies that have tried to use Hadoop have met with frustration." Dwoskin adds that Hadoop vendors are responding with improvements and additions, but for now, "It can take a lot of work to combine data stored in legacy repositories with the data that's stored in Hadoop. And while Hadoop can be much faster than traditional databases for some purposes, it often isn't fast enough to respond to queries immediately or to work on incoming information in real time. Satisfying requirements for data security and governance also poses a challenge."

New AP Course, "Computer Science Principles," Aims To Make CS More Accessible

posted 3 days | from theodp

kids 208

theodp writes: "CS Principles," explains the intro to a Microsoft Research talk on a new Computer Science Toolkit and Gaming Course, "is a new AP course being piloted across the country and by making it more accessible to students we can help increase diversity in computing." Towards this end, Microsoft has developed "a middle school computing toolkit, and a high school CS Principles & Games course." These two projects were "developed specifically for girls," explains Microsoft, and are part of the corporation's Big Dream Movement for girls, which is partnering with the UN, White House, NSF, EU Commission, and others. One of Microsoft's particular goals is to "reach every individual girl in her house." According to a document on its website, Microsoft Research's other plans for Bridging the Gender Gap in computing include a partnership with the University of Wisconsin "to create a girls-only computer science Massive Open Online Course (MOOC)."

Dr. Dobb's 38-Year Run Comes To an End

posted 4 days | from anonymous coward

developers 155

An anonymous reader writes: Dr. Dobb's — long time icon of programming magazines — "sunsets" at the end of the year. Editor Andrew Binstock says despite growing traffic numbers, the decline in revenue from ads means there will be no new content posted after 2014 ends. (The site will stay up for at least a year, hopefully longer.) Younger people may not care, but for the hard core old guys, it marks the end of a world where broad knowledge of computers and being willing to create solutions instead of reuse them was valuable. Binstock might disagree; he said, "As our page views show, the need for an independent site with in-depth articles, code, algorithms, and reliable product reviews is still very much present. And I will dearly miss that content. I wish I could point you to another site that does similar work, but alas, I know of none."

Godot Engine Reaches 1.0, First Stable Release

posted 4 days | from goruka

games 54

goruka writes "Godot, the most advanced open source (MIT licensed) game engine, which was open-sourced back in February, has reached 1.0 (stable). It sports an impressive number of features, and it's the only game engine with visual tools (code editor, scripting, debugger, 3D engine, 2D engine, physics, multi-platform deploy, etc) on a scale comparable to commercial offerings. As a plus, the user interface runs natively on Linux. Godot has amassed a healthy user community (through forums, Facebook and IRC) since it went public, and was used to publish commercial games in the Latin American and European markets such as Ultimo Carnaval with publisher Square Enix, and The Mystery Team by Sony Computer Entertainment Europe.

Microsoft To Open Source Cloud Framework Behind Halo 4 Services

posted 6 days | from angry tapir

azure 50

angry tapir writes Microsoft plans to open-source the framework that helps developers of cloud services like those behind Halo 4. Project Orleans is a framework built by the eXtreme Computing Group at Microsoft Research using .NET, designed so developers who aren't distributed systems experts can build cloud services that scale to cope with high demand and still keep high performance. The Orleans framework was used to build several services on Azure, including services that are part of Halo 4. The code will be released under an MIT license on GitHub early next year.

Google Suggests Separating Students With 'Some CS Knowledge' From Novices

posted 6 days | from theodp

google 307

theodp writes To address the challenge of rapidly increasing CS enrollments and increasing diversity, reports the Computing Education Blog, Google in November put out an RFP to universities for its invite-only 3X in 3 Years: CS Capacity Award program, which aims "to support faculty in finding innovative ways to address the capacity problem in their CS courses." In the linked-to RFP document, Google suggests that "students that have some CS background" should not be allowed to attend in-person intro CS courses where they "may be more likely to create a non-welcoming environment," and recommends that they instead be relegated to online courses. According to a recent NSF press release, this recommendation would largely exclude Asian and White boys from classrooms, which seems to be consistent with a Google-CodeCademy award program that offers $1,000 bonuses to teachers who get 10 or more high school kids to take a JavaScript course, but only counts students from "groups traditionally underrepresented in computer science (girls, or boys who identify as African American, Latino, American Indian or Alaska Native)." The project suggested in the Google RFP — which could be worth $1.5 million over 3 years to a large CS department — seems to embrace-and-extend a practice implemented at Harvey Mudd College years ago under President Maria Klawe, which divided the intro CS offering into separate sections based upon prior programming experience to — as the NY Times put it — reduce the intimidation factor of young men, already seasoned programmers, who dominated the class. Google Director of Education and University Relations Maggie Johnson, whose name appears on the CS Capacity RFP, is also on the Board of Code.org (where Klawe is coincidentally an Advisory Board member), the K-12 learn-to-code nonprofit that has received $3+ million from Google and many millions more from other tech giants and their execs. Earlier this week, Code.org received the blessing of the White House and NSF to train 25,000 teachers to teach CS, stirring unease among some educators concerned about the growing influence of corporations in public schools.

Kawa 2.0 Supports Scheme R7RS

posted 7 days | from per bothner

java 62

First time accepted submitter Per Bothner (19354) writes "Kawa is a general-purpose Scheme-based programming language that runs on the Java platform. It combines the strengths of dynamic scripting languages (less boiler-plate, fast and easy start-up, a REPL, no required compilation step) with the strengths of traditional compiled languages (fast execution, static error detection, modularity, zero-overhead Java platform integration).

Version 2.0 was just released with many new features. Most notably is (almost) complete support for the latest Scheme specification, R7RS, which was ratified in late 2013. This LWN article contains a brief introduction to Kawa and why it is worth a look."