Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror

Comment Advent of Code (Score 2) 140

I had a lot of fun with this over the holiday season: http://adventofcode.com

It's twenty-five simple but interesting programming challenges. Day 1 is a simple "count the number of open and close parentheses in a string." Later days include "generate MD5 hashes until you find one that starts with five zeroes," "generate 50 iterations of Conway's Game of Life," "solve a Traveling Salesman problem for Santa," and even "simulate an RPG and find the best strategy for beating the boss." Each day has two parts; solve the first to unlock the second. Several of the challenges involved recursion, but in general they cover wide ground. Some people solved both parts within five minutes of each day's puzzle becoming available, but for those of us who didn't care about the leaderboard, an hour's work was usually plenty to get it done. (Students without experience would take a bit longer.) Also, the input for each day's challenge was different for each user - there were probably only a handful of possibilities, but it meant that you couldn't always just copy someone else's answers without doing the work yourself.

I think you'll find a lot of great material here. Pick a few of the days to explore with your students; teach them how a software engineer would attack the problem. Try solving it with different languages and compare how each language would do it. Demonstrate how you could optimize code to find the solution faster (especially in the "Game of Life" and "Look and Say" challenges).

Also, there was a great Reddit community that shared solutions in various languages, and lots of people put their code on GitHub. Some people played "code golf" and came up with amazingly terse solutions. I used the Advent of Code to teach myself Swift (my solutions are at https://github.com/bskendig/advent-of-code); my code was more verbose than it should have been but I usually solved each problem in fewer than 100 lines.

Comment Re:Good (Score 3, Interesting) 628

It's my belief and hope that Microsoft may put more care into the patches they release, now that they know the impact of a bad patch could be much more broad.

Also, given that the majority of Windows 10 users should now remain up-to-date on patches, maybe this means fewer configurations to have to test. (Or maybe not, since there may still be Pro and Enterprise users who keep deferring patches for years, but I don't think there will be as many of them.)

Comment Re:Data loss on restart (Score 1) 628

Well, I don't know about Windows, because I really only use Windows for games; but my Mac refuses to quit Safari if I've typed text into a field, and it refuses to reboot the OS if an app refuses to quit. I've always liked this behavior and it's saved my bacon on a few occasions. I'm surprised that Windows doesn't do this, but maybe because of the mandatory updates they'll fix Windows to stop clicking "Discard Changes"?

Comment Good (Score 4, Interesting) 628

I've never seen a Windows system that was broken by an update. (I've heard there have been some bad updates, but I've never known anyone who's encountered problems because of them.) On the other hand, I've seen people keep clicking the button to postpone updates for months or even years; when something goes wrong with their computer, it can take hours of downloading/installing updates to bring it up-to-date to make sure that the problem isn't something that's been fixed already.

For the vast majority of Windows Home users who use their computers for web/email/Word, I think it's great to keep them up-to-date, mandatory. For anyone who's truly concerned about this, I suspect someone will find a registry edit that'll provide the deferred update behavior.

Comment So, clarify this for me... (Score 1) 281

- If I do a clean install of Windows 10 Preview onto a computer, that will turn into a full license of Windows 10 on July 29, no upgrade from a previous version of Windows is necessary? Or does this only apply if I've installed Windows 10 Preview onto an installation of Windows 7 or 8.1?

(http://blogs.windows.com/bloggingwindows/2015/06/19/upcoming-changes-to-windows-10-insider-preview-builds/ is unclear on this, saying "As long as you are running an Insider Preview build and connected with the MSA you used to register, you will receive the Windows 10 final release builld" but then "It’s important to note that only people running Genuine Windows 7 or Windows 8.1 can upgrade to Windows 10 as part of the free upgrade offer.")

- I only see Windows 10 Preview releases for x86 and x64. How do I get the Pro version instead of the Home version?

I see this as a good way that I can get free up-to-date Windows licenses for old computers I have that are running XP and Vista; all I need is to wipe them and put Windows 10 Preview on them, and link them to my Microsoft account. I just want to make sure that this will work, and I'd like to have the Pro version.

Comment Should they search the original areas again? (Score 2) 178

When the Indian Ocean search began, the first areas searched were the places judged to be where the plane was most likely to have come down. And those areas were searched with a pinger locator. After 30 days, the searchers moved on to other areas and used different equipment to map the sea floor.

What if the plane actually is in one of the first places they looked, though - but because it wasn't pinging, and they weren't scanning the sea floor, they missed it? Should the searchers return to those areas and look on the sea floor, or have they already?

Slashdot Top Deals

"Why should we subsidize intellectual curiosity?" -Ronald Reagan

Working...