Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Migrando 4 milhões de linhas de Delphi 7 para XE7

9,971 views

Published on

Apresentação realizada no Embarcadero Conference 2014. Mostra o caso de sucesso da Fortes Informática na atualização da sua plataforma de desenvolvimento.

Published in: Technology
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • ACCESS that WEBSITE Over for All Ebooks (Unlimited) ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... DOWNLOAD FULL EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M }
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • ACCESS that WEBSITE Over for All Ebooks (Unlimited) ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... DOWNLOAD FULL EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M }
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • ACCESS that WEBSITE Over for All Ebooks (Unlimited) ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... DOWNLOAD FULL EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M }
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Migrando 4 milhões de linhas de Delphi 7 para XE7

  1. 1. José Araújo Migrando ~4 milhões de linhas de código de Delphi 7 > XE7
  2. 2. Quem? • 9 anos na área de desenvolvimento; • Fortes Informática(Fortes Report); • Delphi Developer Certification; • Embarcadero Conference 2011, 2012; • Sócio da Startup Top Sistemas;
  3. 3. Um pouco de história • Clipper; • Delphi 1; • BDE; • Mesmos programadores; • Conceito RAD; • 15 anos de legado; • +50 programadores/analistas;
  4. 4. Motivação • Delphi 7 obsoleto; • Problemas com link edição; • Se livrar do BDE; • Colaboradores insatisfeitos; • Embarcadero (Delphi – O Retorno); • AlphaControls(Projeto Botox);
  5. 5. Dificuldades • Muitos usuários(+40 mil); • Backlog, bugs; • Muitas pessoas envolvidas; • GP’$; • Vendedore$; • Diretore$;
  6. 6. 1ª reunião • GP’s, Vendedores, Diretores e Programadores; • Todos na mesma sala;
  7. 7. 2ª reunião • Reuniões separadas primeiro; • GP’s, Vendedores, Diretores; • Estratégia para cada grupo; • GP’s: Entregar mais tarefas; • Vendedores: Sistema mais rico; • Diretores: Maior retorno $;
  8. 8. 3ª reunião • GP’s, Vendedores, Diretores e Programadores; • Todos na mesma sala;
  9. 9. Recursos • Pessoas para executar; • 1 membro de cada equipe; • Algumas horas por dia; • Equipe PeD (Pesquisa e Desenvolvimento); • Buscar novos conhecimento; • Resolver impedimentos do setor;
  10. 10. Vamos começar
  11. 11. Cenário • 9 sistemas; • 9 segmentos diferentes; • ~4 milhões de linhas; • Firebird e SQLServer; • Delphi 7 (12 anos); • BDE (Era o que tinha); • Poucos componentes de terceiros;
  12. 12. Analisando valores • Delphi 7 x Delphi XE; • BDE x DBXpress; • Morro(MOnitor de eRROs); • Maiores queixas dos clientes; • Problemas com blobs; • MaxFileHandle;
  13. 13. DLib2 • BDE <> DBXpress(Totalmente); • E se amanhã mudar denovo; • Design Pattern Strategy; • Wrapper(Empacotador); • Mínimo de impacto nos sistemas; • Reduzir tempo de conversão;
  14. 14. Conversor • Próprio; • reFind; • Programações “criativas”; • *.dfm; • *.pas; • Protótipos; • Passos pequenos;
  15. 15. Exemplos • TDataBase > TDLServerConnection; • SessionName: Morreu; • ServerAddress: Morreu; • DataBaseName > ConnectionName; • DataBaseFile > DataBaseURL; • TQuery > TDLQuery; • TDataSource > TDLDataSource; • Uses: DLDataSet, DLConnections; • DB, • DB;
  16. 16. Técnica • DevOps (Blue/Green); • Rollback rápido; Sistema Router (Conversor) BDE DLib2 DBXpress
  17. 17. Implantação • Delphi 7 ainda; • Homologamos internamente; • Programa Beta; • Nossos Representantes(Filiais); • Servidor de Deploy gera 2 pacotes;
  18. 18. Técnica
  19. 19. Técnica • Implantação “Canário” (Teste em Produção); • DevOps; • Sinalizador; Usuários Router (Implantadores) BDE DLib2 DBXpress 95% 5%
  20. 20. BDE Adeus! 1800 AC – 2013 DC
  21. 21. Delphi XE? • Volta as atenções; • Ânimo da equipe; • Vamos para o XE; • Investimento “Alto”;
  22. 22. Delphi 7 > XE7 • Benefícios; • Linguagem; • 64 bits; • FireDAC; • VCL Style;
  23. 23. Técnica • Arquitetura de convivência; • Não atrapalhar a produção; • Mudança paralela; • Diretivas de compilação;
  24. 24. Exemplos uses {$IF CompilerVersion = cvDelphiXE7} DBXCommon, {$ELSE} DBXpress, {$IFEND}
  25. 25. Exemplos const cvDelphiXE = 22; //VER220 cvDelphiXE2 = 23; //VER230 cvDelphiXE3 = 24; //VER240 cvDelphiXE4 = 25; //VER250 cvDelphiXE5 = 26; //VER260 cvDelphiXE6 = 27; //VER270 cvDelphiXE7 = 28; //VER280
  26. 26. Exemplos {$IF CompilerVersion = cvDelphiXE7} function TDLQuery.GetRecord(Buffer: TRecBuf; ...): TGetResult; {$ELSE} function TDLQuery.GetRecord(Buffer: PChar; ...): TGetResult; {$IFEND} begin try Result := inherited GetRecord(Buffer, GetMode, DoCheck); except on e: Exception do raise Exception.Create(...); end; end;
  27. 27. Exemplos {$IF CompilerVersion = cvDelphiXE7} procedure OnDocumentComplete(ASender: TObject; const pDisp: IDispatch; const URL: OleVariant); {$ELSE} procedure OnDocumentComplete(Sender: TObject; const pDisp: IDispatch; var URL: OleVariant); {$IFEND}
  28. 28. O Exemplo unit DelphiUp; interface const {$IF CompilerVersion = cvDelphiXE7} EmptyBookmark = nil; {$ELSE} EmptyBookmark = ''; {$IFEND} type {$IF CompilerVersion = cvDelphi7} TBookmark = string; {$IFEND}
  29. 29. Migração Total • Sim! Analisamos;
  30. 30. Segurança
  31. 31. Segurança...
  32. 32. Segurança... • Testes automatizados; • Código versionado; • Testes humanos; • Passos pequenos; • Teste Complete; • DUnit; • Protótipos;
  33. 33. joseafilho@gmail.com @cengenharia centraldaengenharia.wordpress.com

×