Legacy code vs AMD code

Discussion created by ganeshssac on Aug 29, 2013
Latest reply on Oct 15, 2013 by JGravois-esristaff
Hi GIS folks,
I am really confused with the legacy code vs AMD code. Although, I switched to AMD style of coding  in my application and some of the sample/example codes in the ARCGIS javascript api are still in legacy code, because of which I am struggling to run my application as most of the time i end up getting errors. can anyone recommend which style of coding should we follow with v3.6 api.