[#TFS2013] Lightweight commented code (and Code Review?)


image

Hola,

continue with the short week of new features in Web Access from Team Foundation Service . Today we are going with one that surely will draw a large ulcer “purists”: Lightweight code commenting; It is the ability to add comments “inline” within the code, in a collaborative manner. For example, from the section of code in Team Foundation Service, we can access a changeset, see changes in a file, and a specific line, add a comment, for example.

image

The partnership model is much better reflected official TFS support example:

image

I.e., instead of talking with people, this model can have to comment and review code model not “online”. Surely a more than they hurt teeth with this, however I’m seeing comments that leave me from Bangalore / Seattle and distributed environments is a light which does not require a full process of “Code Review” Guiño

Source:
http://tfs.visualstudio.com/news/2013-jun-3

Saludos @ Home

El Bruno

image image image

[#TFS2013] Lightweight code commented (y el Code Review?)


image

Buenas,

sigo con la semanita de new features en Web Access de Team Foundation Service. Hoy vamos con una que seguramente sacará una úlcera de las grandes a los “puristas”: Lightweight code commenting; es la capacidad de agregar comentarios “inline” dentro del código, de una manera colaborativa. Por ejemplo, desde la sección de código en Team Foundation Service, podemos acceder a un changeset, ver los cambios de un archivo, y en una línea específica agregar un comentario, por ejemplo.

image

 

El modelo de Colaboración queda mucho mejor reflejado en el ejemplo de la ayuda oficial de TFS:

image

O sea, que en lugar de hablar con las personas, puedes tener este modelo para dejar comentarios y revisar código en modelo no “online”. Seguramente a más de uno le dolerán los dientes con esto, sin embargo yo estoy viendo comentarios que me dejan desde Bangalore / Seattle y en entornos distribuidos es una opción light que no obliga a un proceso completo de “Code Review” Guiño

 

Fuente:
http://tfs.visualstudio.com/news/2013-jun-3

Saludos @ el hotel del los colorines

El Bruno

image image image

[#TFS2012] HowTo: Actualizar una base de datos Visual Source Safe a Team Foundation Server 2012


image

Buenas,

hoy en las comunidades internas de Avanade surgieron un par de escenarios de migración / actualización de diferentes repositorios de control de código fuente hacia Team Foundation Server 2012. Yo me quedé un poco sorprendido al ver que todavía teníamos escenarios donde era necesario actualizar de VSS (Visual Source Safe) hacia TFS.

Antes la herramienta era parte de TFS, ahora está disponible en la Visual Studio Gallery como “Visual Source Safe Upgrade Tool for Team Foundation Server”. Esta herramienta te permite trabajar con TFS2012, TFS2012 y Team Foundation Service. Y finalmente es posible leer la documentación relacionada en
http://msdn.microsoft.com/en-us/library/ms253060.aspx
.

Si todavía estas trabajando con VSS, te recomiendo QUE POR FAVOR DEJES DE UTILIZAR VISUAL SOURCE SAFE!!! te ahorrarás muchos problemas e inclusive puedes utilizar el nuevo y gratis Team Foundation Service para migrar y alojar tus proyectos.

Descarga:
http://visualstudiogallery.msdn.microsoft.com/867f310a-db30-4228-bbad-7b9af0089282

Saludos @ Home

El Bruno

image image image

[#GIT] Starting with #Git


image

Buenas,

playing of complete chip today and change to point a couple of materials for all those who want to start working with GIT . If you ask me by my experience with GIT, because I have to admit that I have used it only for testing and some Open Source project to contribute to any line of code.But I’ve never used it in the real world.

Disclaimer: I mean when I talk about the real world, using it on a project with a team of at least 5 people, all work where as dwarfs in a mine and GIT is our peak and our scoop of each day. More than one knows of disgust that gives me the people who speaks, believes and contributes to the communities after making a “Hello World”. More disgust give me that after the “Hello World” as they are experts in the field.

But good to what would, today asked me about how to work with GIT . As we now have it available for work and deploy sites in AZURE, also as an option in CodePlex, because a technology that if not know, then you should consider is to start with she.

I first thing I did was get the book “PRO “ GIT “, which you can watch online in “
http://git-SCM.com/book
. You can also buy the hard copy from Amazon. For €19 really worth.

image

And if you prefer videos, as the friends of GitHub , creators of one of the most likeable logos for developers: the OCTOCAT !, as they have some great tutorials on
http://learn.github.com/p/intro.html

So you know, there is no excuse for not concer GIT (especially because soon… because there are interesting developments for the scene of MS developers lol)

Resources:

Saludos @ La Finca

El Bruno

image image image

[#GIT] HowTo: Empezar con #Git


image

Buenas,

toca cambio de chip completo hoy y a apuntar un par de materiales para todos los que quieran empezar a trabajar con GIT. Si me preguntan por mi experiencia real con GIT, pues tengo que admitir que lo he utilizado solo para pruebas y en algún proyecto Open Source para contribuir con alguna línea de código. Pero nunca lo he utilizado en el mundo real.

Disclaimer: cuando hablo del mundo real, me refiero a utilizarlo en algún proyecto con un equipo de por lo menos 5 personas, donde todos trabajemos como enanos en una mina y GIT sea nuestro pico y nuestra pala de cada día. Más de uno sabe del asco que me da la gente que habla, opina y contribuye a las comunidades después de hacer un “hola mundo”. Más repugnancia me dan los que después del “Hola Mundo” ya son expertos en el tema.

Pero bueno a lo que iba, hoy me preguntaron sobre cómo comenzar a trabajar con GIT. Como ahora lo tenemos disponible para trabajar y desplegar sites en AZURE, también como una opción en CodePlex, pues es una tecnología que si no la conoces, pues deberías plantearte comenzar con ella.

Yo lo primero que hice fué conseguir el libro “PRO GIT”, que puedes ver online en
http://git-scm.com/book
. También puedes comprar la copia en papel desde Amazon. Por €19 realmente vale la pena.

image

Y si lo que prefieres son videos, pues los amigos de GitHub, creadores de uno de los logos más simpáticos para los desarrolladores: el OCTOCAT !!!!, pues tienen unos tutoriales buenísimos en
http://learn.github.com/p/intro.html

Así que ya sabes, no hay excusa para no concer GIT (especialmente porque dentro de poco … pues hay novedades interesantes para el mundillo de los desarrolladores MS jejeje)

Recursos:

 

Saludos @ La Finca

El Bruno

image image image

[#TFS2012] What can we do using local workspaces?


image

Buenas,

ok, day of murder with pain the computer while we return to install Office 15. But to pass the time, will close some of the ideas that emerged yesterday in a twitter conversation with @jc_quijano @pablonete @luisruizpavon. The question was where we can reach with the new local Workspaces have been managed in Visual Studio 2012 and Team Foundation Server 2012.

We are going with a bit of history first. The concept of local Workspace was created to put an end to the hell of the offline mode we have with TFS up to 2010 version. While it is true that offline mode is much improved in TFS2010, control of modified files and other types of actions is continuing through File System attributes. The best example is the “not modified” files are marked “Read Only” and if you want to modify them in an offline mode, since it has remove this attribute, modify and cross fingers when you again connect to TFS you recognize the changes. Scenarios “more complex” as for example, Rename a file required to perform unconventional rituals in order to put these changes in TFS. (not to mention sacrificing a Virgin albina in a day of eclipse on a 7-pointed star but it is almost equally complicated )).

As well, friends of Redmond decided it was time to put an end to this suffering and TFS2012 have completely changed the model. Let’s look at an example. The following image shows the configuration of a workspace called “W8RC-BRUNOC-LOCAL” which is a LOCALtype. In addition all the source control of the Project team that I used for the webcast of team foundation service, as is mapped to the path [C:\srcElBrunoLocal].

image

On this route we find that in addition to the own Team Project folders have a system folder called [$tf] which is which stores the changes that we then compare them with the initial States and to synchronize with the TFS server.

Clarification: While at first glance this is very similar to the behavior that has subVersion, then matches only that there is a folder with changes, nothing else.

image

Well well, what can you do now? because if we disconnect our server Team Foundation Server 2012 and see the properties of a class within this local workspace, see that…… Finally! files are not marked as ReadOnly.

image

Moreover, if you edit this file with notepad and open Visual Studio 2012. Although we are disconnected from TFS, we can perform offline actions in the Team Explorer pane:

image

In view of Pending Changes will see how this file is displayed and edited.

image

And now, we got to the goal of this post: what can we do at this point when we work with local workspaces? .

  • We cannot checkIn in local mode
  • We can compare the changes that we have made with the original version of the file from the workspace or the latest version
  • We can perform an Annotate
  • We can undo the changes that we have made
  • We can see the file history

Clarification: beware this last option, I reserve it for an upcoming post

image

Yesterday the conclusion was quite clear in the tweet

image

But this opens a door to many assumptions, for example Ms is working on a distributed like GIT or Mercurial SCM and may incorporate it in a future release. For now there is nothing (or not I have updated well my VS2012), but the truth is that the new offline mode is appreciated very much.

PS: by the way if anyone is bored I invite you to see the contents of the directory [$tf] > > back to hell!

image

Saludos @ La Finca

El Bruno

image image image

[#TFS2012] Hasta donde llegan los workspaces locales?


image

Buenas,

ok, día de asesinar con dolor el ordenador mientras volvemos a instalar Office 15. Pero para matar el tiempo, cerraré alguna de las ideas que surgieron en una conversación de twitter ayer con @jc_quijano @pablonete @luisruizpavon. La cuestion era hasta donde podemos llegar con los nuevos Workspaces locales que se han inlcuido en Visual Studio 2012 y Team Foundation Server 2012.

Vamos con un poco de historia primero. El concepto de Workspace local nace para poner fin al infierno del modo offline que tenemos con TFS hasta la versión 2010. Si bien es cierto que el modo offline ha mejorado mucho en TFS2010, el control de archivos modificados y otro tipo de acciones se sigue realizando a través de atributos de File System. El mejor ejemplo, es que los archivos “no modificados” están marcados “Read Only” y si quieres modificarlos en un modo offline, pues toca sacar este atributo, modificar y cruzar los dedos para que cuando vuelvas a conectar con TFS te reconozca los cambios. Escenarios “más complejos” como por ejemplo, renombrar un archivo requieren realizar rituales poco convencionales para poder meter estos cambios en TFS. (no hablo de sacrificar a una virgen albina en un día de eclipse sobre una estrella de 7 puntas, pero es casi igual de complicado).

Pues bien, los amigos de Redmond decidieron que era hora de poner fin a este sufrimiento y en TFS2012 han cambiado completamente el modelo. Veamos un ejemplo. La siguiente imagen muestra la configuración de un workspace llamado “W8RC-BRUNOC-LOCAL” que es de tipo LOCAL. Además todo el source control del team Project que utilicé para el webcast de team foundation service, pues se mapea a la ruta [C:\srcElBrunoLocal].

image

En esta ruta nos encontramos con que además de las carpetas propias del Team Project tenemos una carpeta de sistema llamada [$tf] que es la que almacena los cambios que realizamos para luego compararlos con los estados iniciales y poder sincronizar con el servidor de TFS.

Aclaración: Si bien a primera vista esto es muy parecido al comportamiento que tiene subVersion, pues solo coincide que hay una carpeta con cambios, nada más.

image

Pues bien, ¿qué podemos hacer ahora? pues si nos desconectamos de nuestro servidor Team Foundation Server 2012 y vemos las propiedades de una clase dentro de este workspace local, veremos que … … … por fin!! los archivos no están marcados como ReadOnly.

image

Es más, si editamos este archivo con el notepad y abrimos Visual Studio 2012. Aunque estemos desconectados de TFS, en el panel del Team Explorer podremos realizar algunas acciones offline:

image

En la vista de Pending Changes veremos como este archivo se muestra como editado.

image

Y ahora, llegamos hasta el objetivo de este post: ¿qué podemos hacer en este punto cuando trabajamos con workspaces locales?.

  • NO podemos hacer checkIn en modo local
  • Podemos comparar los cambios que hemos realizado con la versión original del archivo del workspace o la última versión
  • Podemos realizar un Annotate
  • Podemos deshacer los cambios que hemos realizado
  • Podemos ver el histórico del archivo

Aclaración: cuidado con esta ultima opción, me la reservo para un próximo post

image

Ayer la conclusión fue bastante clara en el tweet

image

Pero esto abre una puerta a muchas suposiciones, por ejemplo la de que Ms está trabajando en un SCM distribuido como GIT o Mercurial y que lo podría incorporar en próximas versiones. Por ahora no hay nada (o no tengo actualizado bien mi VS2012), pero la verdad es que el nuevo modo offline se agradece y mucho.

PD: por cierto si alguno se aburre los invito a ver los contenidos del directorio [$tf] >> back to hell !!!

image

Saludos @ La Finca

El Bruno

image image image

[#ALM] FromMyBook: Don’t be afraid to #MERGE


ALM 03

Buenas,

today I have to get a public of my book working together with Visual Studio ALM side so that people lose the fear of the MERGE of once for all. It can be seen online here or directly to continuation:

 

The fear of the MERGE

The fear of the Merge is a classic, more or less like what happens with vampires now in 2011. Let me explain: when I was a kid (about 20 years ago), a vampire was a very serious thing, you had to be afraid of a vampire, tha was a fact.

Generally speaking, the stereotype of a vampire was a person of any country in Eastern Europe, usually Transylvania, with very white skin and a black Cape. In addition to insights that let you freeze, a good vampire used to have a couple of evil helpers, who had a good heart, but with a little twisted ideas.

If for some reason you made a mistake and let a vampire to go into your House, you were in problems. Most of the times the vampire falls in love with your mother, your sister or your girlfriend, and with the promise of eternal love, at some point he wants to suck all the blood of her. Depending on the type of Vampire, may even want to eat with mayonnaise or ketchup (always thought that vampires were more than ketchup).

As this idea of vampires was widely used, and people scared to see these features someone on the street. But nowadays we have to face with the writers of juvenile novels who changes the concept that we have of the vampires.

The vampires of the 21st century are now boys who seem to have no more than 20 years, who can walk under the Sun although they continue to have whiter skin that snow. Usually they fall the most beautiful girl of the people, but without the intention to eat. Now they help if it attacks a man Wolf, or were they want to eat other vampires with more hunger.

Things have changed a lot, but the idea is still there: vampires are beings of care that as soon as they can give you a problem.

Because something similar happens with the Branches and Merge actions. In many projects, most people are afraid of "the Merge" and taht’s why they don’t use Branches. But as has happened with vampires, the "Branches" and "Merges" have changed a lot lately. It is not so craftsmanship as it was 15 years ago, the tools we now have really help make the experience of the developer friendly and much less painful.

But eye and remain "Branches" and "Merges" into the wrong hands can bring us, not one, but many headaches; as happens with modern vampires.

And remember, this and much more in my book

Working as a team with Visual Studio ALM

Saludos @ Home

El Bruno

image image image

[#ALM] FromMyBook: El miedo al #MERGE


ALM 03

Buenas,

hoy me toca sacar una parte pública de mi libro Trabajando en equipo con Visual Studio ALM   para que la gente le pierda el miedo al MERGE de una vez por todas. Lo pueden ver online aquí o directamente a continuación:

 

El miedo al MERGE

El miedo al Merge es un clásico, más o menos como lo que pasa con los vampiros ahora en el año 2011. Me explico: cuando yo era chico (hace unos 20 años), un vampiro era una cosa muy seria, había que tenerle miedo.

Por lo general, el estereotipo de un vampiro era una persona de algún país de Europa del Este, usualmente Transilvania, con la piel muy blanca y una capa negra. Además de tener una mirada que te dejaba helado, un buen vampiro solía tener un par de ayudantes malvados, que tenían un buen corazón, pero con las ideas un poco torcidas.

Si por algún motivo cometías el error de invitar a un vampiro a tu casa, pues ya tenías un problema; seguramente el vampiro se enamora de tu madre, de tu hermana o de tu novia, y con la promesa de amor eterno, en algún momento le quiere chupar toda la sangre. Dependiendo del tipo de vampiro, puede inclusive querer comérsela con mayonesa o kétchup (siempre pensé que los vampiros eran más de kétchup).

Como esta idea de los vampiros estaba muy utilizada, y la gente se asustaba al ver a una persona de estas características por la calle, pues llegaron las escritoras de novelas juveniles para cambiar el concepto que tenemos de los vampiros.

Ahora los vampiros del siglo XXI son chicos que parecen no tener más de 20 años, que pueden caminar bajo el sol aunque siguen teniendo la piel más blanca que la nieve. Por lo general se enamoran de la chica más guapa del pueblo, pero sin la intención de comérsela. Ahora la ayudan si la ataca un hombre lobo, o si se la quieren comer otros vampiros con más hambre.

Las cosas han cambiado mucho, pero la idea sigue estando allí: Los vampiros son seres de cuidado que en cuanto puedan te darán un problema.

Pues algo parecido pasa con los Branches y con las acciones de Merge. En muchos proyectos, se le tiene “miedo al Merge” y es por esto que no se utilizan Branches. Pero al igual que ha pasado con los vampiros, los “Branches” y “Merges” han cambiado mucho últimamente. No es un trabajo tan artesanal como era hace 15 años, las herramientas que disponemos ahora realmente ayudan a que la experiencia del desarrollador sea más amigable y mucho menos dolorosa.

Pero ojo, siguen siendo “Branches” y “Merges” y en malas manos pueden traernos, no uno, sino muchos dolores de cabeza; al igual que pasa con los vampiros modernos.

 

Y recuerda, esto y mucho más en mi libro

Trabajando en equipo con Visual Studio ALM

Saludos @ Home

El Bruno

image image image

[# CODEPLEX] Now also supports GIT


image

Buenas,

Although they have already commented in several places, it is important to highlight the news.

Now CodePlex supports the creation of projects based on GIT.

image

Seen from the outside does not seem something so important, but if we read between the lines there are 2 interesting things to highlight.

Firstly that this change is not based on a strategic decision of MS but which comes driven by the large number of petitions that performs the communicated. Beware, we must not be naive; This does not mean that now MS begin to do what you say the community, nor to think not not win anything with this change. But it is important to note that include a software of this type within the code for the Microsoft communities management platform is a point which opens up many possibilities.

On the one hand, help to improve the Visual Studio family of products. VS11 and TFS11 are fine, but if we compare the fluidity of work which gives a DCVS as GIT, because no color. Therefore, there is a desire to educate the developers guide to a new way of working (already included in VS) behind this decision.

In addition this change is intended to include in Codeplex to a large set of developers who are currently using GIT for their developments.

Secondly, do not lose sight that MS is incorporating an OpenSource software within its platform. This is not the first time, nor will not be the last, but serves as a reference to give an idea of how powerful that is the idea of OpenSource for teams of MS. something that from the outside is not seen much, already only takes into account the facet sell canned software that has Microsoft.

In the long run we will see if it ends up being a copy from GitHub or other more advanced sites based on GIT. What is important not to lose sight of, is that CodePlex not only offers support for a Source Control repository, but it adds several possibilities more… there I leave.

Saludos @ Home

El Bruno

image image image

Sources:


http://blogs.msdn.com/b/bharry/archive/2012/03/22/the-future-of-CodePlex-is-bright.aspx


http://blogs.msdn.com/b/CodePlex/archive/2012/03/21/git-commit-m-CodePlex-now-supports-git.aspx?WA=wsignin1.0