Top Blogs | Art | Business | Entertainment | Health | Internet | Politics Programming | Science | Society | Sports | Technology | Top News | Video games
|
JavaScript
Top Stories
Visual Basic
Wed
|
Programming - Top Stories latest opinions
|
|
1-wire barometer Filed under: misc hacks, daily[David] put together this rather nice 1-wire barometer. An MPX4115 measures the pressure while an SMD DS2438 mounted to an 8 pin DIP socket provides the 1-wire interface. The writeup includes a nice description of the board layout and wiring, making this project accessible to just about anyone with a decent tip on their soldering iron.Read | ... this | Linki... Hackaday.com Tuesday, July 22, 2008Hacking At Random 2009 Filed under: cons, newsHacking At Random 2009 has recently been announced. It's brought to you by the same people who held the outdoor hacking event What The Hack, which we covered in 2005. Date, location, and many other details are still up in the air. They're looking to host 3000 attendees and we're guessing it will be similar in nature to last Fall's incredible Chaos Communication Camp near Berlin. 2009 will also feature the beta run of outdoor hacker event ToorCamp near Seattle. Two great events we're certainly looking forward to.[photo: mark]Read | ... this | Linki... Hackaday.com Tuesday, July 22, 2008Name that Ware Filed under: contests, misc hacksLast month we mentioned [bunnie]'s Name that Ware competition where participants try to guess the functionality of a random bit of hardware. We thought you might want to see another example; pictured above is the June 2008 ware provided by [xobs]. You can see a high res version here and an image of the daughter card as well. Be forewarned that someone has already posted the solution in the comments. At first glance there are quite a few interesting bits: board is copyright 1991, the 8-bit ISA connector doesn't have any data lines connected, just power, and it's got a lot of analog circuitry. Take a guess and then check out the comments on [bunnie]'s site to see the solution.Read |&n... this | Linki... Hackaday.com Tuesday, July 22, 2008Home made PCB drill press Filed under: misc hacks, tool-hacks[yellowduck] took some fantastic initiative with this home made PCB drill press. Many people have a rotary tool already. Just add some scrap wood and four hinges. The drill press isn't perfect; it pivots a little as it lowers. This shouldn't be a problem for drilling printed circuit boards though. The PCB should be thin enough for the pivot to have little effect. After some test runs, he added a lamp for better lighting and intends to add a return spring and foot switch. It's definitely a better solution than drilling multiple holes with a hand drill.Read | ... this | Linki... Hackaday.com Tuesday, July 22, 2008Annoy your friends with high pitched noise Filed under: misc hacks, news[Hungry_Myst] has put together this fantastic device to annoy your friends. It randomly emits high pitched sounds, then stops for a while to make it very hard to locate. He has added an extra level of annoyance by putting the noise in vicinity of 17KHz thus making it almost undetectable by people over the age of 30. The fact that not everyone in the room can hear it makes people go even crazier trying to find it.The parts list is fairly short, and the directions concise. One thing that is fantastic about this article is that he encourages people to improve it. That alone is not a huge deal, but he mentions in several areas specific additions that would make it more user friendly: on/off, pitch control, and delay control.Related: [jay]'s Picaxe based Brain AssailantRead |&n... this | Linki... Hackaday.com Tuesday, July 22, 2008T4 Templates for Code Generation Screencast I put together a quick screencast showing how to leverage T4 Templates in Visual Studio 2008 for Code Generation:
T4 Templates in Visual Studio for Code Generation Screencast
I show step-by-step how to create a simple T4 Template and then how to generate various Entity, Data Access object, and Factory Classes using more advanced T4 Templates that one might use to create a simple custom data access layer. I have seen other screencasts that have used SQL Server Management Objects, but in my case I use database schema related functionality in good 'ol ADO.NET. Although I wouldn't use this technique to build a data access layer given all the cool code generators and O/R Mappers, it is a pretty decent way to show the possibilities with T4 Templates.
I picked up a new iPhone 3G the other day and absolutely love it, so I also created a version of the screencast that you can download and play on the IPhone. In fact, several of the more recent Unity and Enterprise Library 4 Codebetter.com Tuesday, July 22, 2008Dealing with Code Un-Coverable by Tests Code UnCoverable by Tests
Even for test-coverage
addict (as me), there is some code that simply cannot be covered by tests. An
example?
public bool MessageBoxToDemandQueryDeletio... query) {
string unused;
Debug.Assert(CanDeleteQuery(qu... out unused));
return MessageBox.Show(
"Are you sure that you want to delete the query: {" +
query.QueryString + "} ?",
"NDepend", MessageBoxButtons.YesNo) == DialogResult.Yes;
}
The call to MessageBox.Show() cannot be tested
automatically since it is blocking. Of course we could mock calls to MessageBox.Show(), but at the end of
the day, there will be at least one call to this method in the code base, one
call that cannot be covered by tests.
This example is not
isolated. There are a multitude of cases where code reacts to things that
cannot be automatized, such as exception that cannot be reproduced.
internal static void CopyQueryToClipboard(ICQLQuery query) {
Debug.Asser Codebetter.com Tuesday, July 22, 2008Ward & I talk over the EF Vote of No Confidence Document The second part of Ward Bell & I's conversation on ORM is up at the ALT.NET Podcast. In this part we dive right into the vote of no confidence document that kicked up so (much more than was justified) fuss and racket about a month ago.We recorded it a couple weeks back, and I've spent a little time thinking about the EF VoNC. At this point I'd say that:After looking more at it, EF v1 is actually worse than I thought it wasNo, I don't regret signing and helping to write the no confidence thing. I wish it had unfolded differently and I'm disappointed at the negativity around it, but I still think it was worth doing. I still don't think the wording of the document was very inflammatory, but I guess the idea of openly criticizing a Microsoft product is still taboo for big areas of the .Net community. If nothing else, it's actually sparked something of a real dialog between two or more camps of development that rarely communicate with Codebetter.com Tuesday, July 22, 2008 Archived "programming - Top Stories" opinions:
Available opinions archives.
|
|
|
|
|
|
|
|
October 2008
|
| S |
M |
T |
W |
T |
F |
S |
|
|
|
|
1
|
2
|
3
|
4
|
| 5
|
6
|
7
|
8
|
9
|
10
|
11
|
| 12
|
13
|
14
|
15
|
16
|
17
|
18
|
| 19
|
20
|
21
|
22
|
23
|
24
|
25
|
| 26
|
27
|
28
|
29
|
30
|
31
|
|
|
|
|
|
|
|
|
|
|
|
|
Add free news widgets to your site and blog.
Add constantly updated quality news stories to your website and blog.
Start here
|
Add free music videos to your site and blog.
Pick and search 20,000+ music videos and add them to your site and blog.
Start here
|
Add free random videos to your site and blog.
Add constantly updated videos to your website and blog.
Start here
|
Distribute your content for free
Allow the visitors to your site and blog to preview the content of your RSS feeds "on the fly" before adding it to their own website and blog effortlessly and get additional traffic back to your website and blog.
Start here
|
|
|