DCSIMG
Programming - Dotmad (on .Net)

Dotmad (on .Net)

Just Another Web 5.0 Blog

Podcasts

Blogroll

Browse by Tags

All Tags » Programming (RSS)
There are some things a good developer is NOT required to know
Jeff Atwood and Peter Norvig seem to think you must have a deep understanding of how computer hardware works to be a good software developer: Know how long it takes your computer to execute an instruction, fetch a word from memory (with and without a cache miss), read consecutive words from disk, and seek to a new location on disk I did learn these things, but after reading Jeff's post I have been trying to remember a project I worked on during the past 10 years which required this type of knowledge...
Good team developers are cameleons
Jeff Atwood thinks regions are evil : No, I will not use #regions. And no, I DO NOT NEGOTIATE WITH TERRORISTS. Shut up. I tend to disagree. I like being able to navigate through code blocks by scanning them and not using incremental search. Besides, you can always expand all regions in code using a keyboard shortcut, and if it really bugs you, simply do a replace of "#" with "//#" and your problem is solved (until the next guy does the opposite). However, I do agree with Jeff...
NIH
The path to NIH...
Throw Exceptions Responsibly
Recently I had to spent some time to fix a crash in the application I'm working on: I kept getting an OutOfMemoryException with no relation to the amount of free memory on the computer. Eventually I found the bug: turns out the DrawArc method doesn't like to be called with a very small angle, so it goes BOOM. Another tidbit I found while searching for the cause was the fact this behavior is not unique to this method: "The thing I can add about this is that GDI+ tends to throw OutOfMemoryException...
The Problem With Crutches
Coffee is good for you , as long as you don't drink too much. But how many of you can't pass the day without drinking too many cups? How many of you are addicted to coffee ? In the recent bloggers meeting in Microsoft Israel I complained about the pain it is to add a picture to a blog post using the Community server. The reply? " Why don't you use Live Writer to publish posts instead of the online control panel ?" In a recent post Doron wrote about his love for ReSharper: "...
New Technologies Trends
I have written before a short comparison between "old" and newer technologies, but at the beginning of that post I state that part of the choice of a new technology is the market trend towards that technology. After reading Justin's post showing that moving to ASP.NET is beneficiary because it's becoming a prominent technology I decided to implement his research methods (using Google) on different technologies. I began by searching for file types However, this reflects only on files...
עלות/תועלת בשיפור ביצועים
תוך כדי כתיבת ה תגובה לפוסט של אודי נתקלתי ב פוסט של גדי על הרושם שלו מההרצאה, ובשרשרת התגובות שהתפתחה בנושא של אופטימיזציה לאפליקציות קריטיות מבחינת יישומים. הטענה של גדי הייתה שאם משתמשים במלוא השירותים שWCF מציע התקורה על פני שימוש במחלקות קלאסיות אינה גבוהה, לכן כדאי להשתמש בפיתרון הנ"ל: "המטרה של מפתח היא לפתור בעיה. אם המתח מצליח לכתוב קוד שפותר את הבעיה בזמן נאות (ונאות זו מילת המפתח כאן), הוא השיג את המטרה. אם הביצועים מספיקים למערכת, ואם זמן התגובה נאות (ושוב נאות זו מילת המפתח...
David Platt on Why Software Sucks
I went to a lecture by David Platt on the subject of "Why software sucks", which discusses what is wrong with software today (hint: it's mostly designed by programmers) and how we can improve it. From listening to a previous ARcast with him I already knew he is a very entertaining speaker, and he proved me right (in fact, I kept thinking I could bring my wife to one of his lectures and she would have enjoyed it as well). David began his presentation with a screenshot from the Better...
Three wrong assumptions
Did some blog reading today, and found out several assumptions I had which were wrong: Assumption : " Protected Internal" means both protected and internal Wrong : It means Protected OR Internal . Assumption : 32bit Windows is limited to 2/4gb ram Wrong : It's limited to 2gb of ram per application . Assumption : OpenFileDialog is harmless Wrong : It loads a mini-explorer, including all the extensions you have installed.
Every n matters
When you study computer science and you start learning algorithms, you are introduces to the O(n) concept, meaning there is a different between an algorithm that takes linear time (1 second for 1000 items, 2 seconds for 2000 items and so on) and an algorithm that takes exponential (2 to the power of n) time, meaning it's a very inefficient algorithm. Although this lesson is important , there is a darker side to this kind of thinking - you tend to ignore efficiencies with the same order of magnitude...
Tainted if you do, tainted if you don't
Microsoft's latest move , to release the source code for the .Net framework, has triggered a variety of reactions due to the licencing model used in this release. Frans Bouma thinks that looking at the source code makes you liable to legal action: Take for example the new ReaderWriterLockSlim class introduced in .NET 3.5. It's in the System.Threading namespace which will be released in the pack of sourcecode-you-can-look-at. This class is a replacement for the flawed ReaderWriterLock in the...
Working with a remote development team
Some times you have a remove developer/team working on the application, as well as in-house team, and they can't use a remote connection to your source-control solution. I found out these methods help: Check out files for them to work on in advance, keep the files checked-out until they give you the updates. Have the remote developer save the original file for comparison (if merge is needed). Have the remote developer keep a list of changes. What else do you recommend for this situation?
XP and Scrum
In one of the companies I worked at I introduced TDD into the development cycle. This was not done as a part of adopting it as a part of a complete methodology, but as a singular concept. Later, when the company switched to Scrum , we also incorporate ideas like daily build (you don't have to go all the way to continuous integration) and simple designs, but never as partial concepts from the XP methodology. I read Jeremy Miller's post about the combination of Scrum and Extreme programming, and I...
Over 50 million reasons for using Asp.Net
I have read Oren's post , in which he writes (again) why he thinks Asp.Net is a bad web platform. I have been reading about various tools like Ruby or MonoRail and people promoting over using simple Asp.Net. Coincidentally, I have recently listen to an Arcast episode with Markus Frind, the founder of http://plentyoffish.com/ . This dude is the only employee in the "company" (acting as the developer, architect, CEO, janitor, etc), running the web site on two servers from his home. He wrote the site...
Manage your project with your developers
I have read Udi Dahan's post on letting someone other than developers manage the project, and disagree with him on several points. Udi starts by stating "Developers don’t know how to estimate". He than "backs it up" with the explanation of the fallacy...
More Posts Next page »