Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etYRt-0005wm-H6 for pgadmin-hackers@arkaria.postgresql.org; Wed, 07 Mar 2018 12:45:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1etYRr-0005gz-Mg for pgadmin-hackers@arkaria.postgresql.org; Wed, 07 Mar 2018 12:45:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etYRr-0005gp-Cc for pgadmin-hackers@lists.postgresql.org; Wed, 07 Mar 2018 12:45:35 +0000 Received: from mail-ot0-x229.google.com ([2607:f8b0:4003:c0f::229]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1etYRW-0007Gs-4e for pgadmin-hackers@postgresql.org; Wed, 07 Mar 2018 12:45:34 +0000 Received: by mail-ot0-x229.google.com with SMTP id t2so1905170otj.4 for ; Wed, 07 Mar 2018 04:45:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fwVRnoBcgRi0vljBirFPOrIvbnAb/2D7vfdcJicPDoM=; b=DicxMF6dvweritWcSHfhQnqX+Al+HtIK4EikUFPro5yOWE4Mq5/lANZepEPVKDiocr 2TDxRMlgEW7V8Gp+cug1K14ctfA62QNJn/EZ71ZNh3baU5i7RxXsW0sGkskgYw5L9pfh L7C0Z8zkt9J8ktbC6ms0QOMk8SgkIEF8095+AmvfhAbSPrrwg91mME9sQxmTo4a2FWra 7oWA7mjMgXZBPCPs6ZgKUgZBUwLe1NM3AtTu7HCLqGTIOtKXurFSniydHLvrmIhM2Pki QLkuLviWvAvT1UZAG7g5LeVKMciPXGjTkH3LODMB3M9lKv4AnChzM0UONFt478c7m2V1 xvAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fwVRnoBcgRi0vljBirFPOrIvbnAb/2D7vfdcJicPDoM=; b=VdyB2ZoPlQMU95V3ODcytKbKOc3rwWOUxd+F91jKMsfZgN5/7TYWXjfw+P8yyWimP7 HtJuK0qgbcXjVchSV0D/QHKNl98dqbfRpaFqsdGG6uKvWIqUYGcEkmYgjWL8iK238Cbp GZFayjtCJjxu9StFpcnwY1npwVqWUqk47xQTji0FAJ3JVBZZ0GJxo1Pb8QiWovGFGzxA YFuhwwVzWwNbo9xta0KA2wDMcsho77W6b76kjpadjM/n+Q5sJpMbDCvsy8DMrvzTxGTA M0GizVO/BB+Mnf9zfcDKAAanyfyEF2Yl7G24WOq0BmhIjppoiQe7E3bKpnLxlcwHxeM2 530A== X-Gm-Message-State: APf1xPDEdMF04ey/fAV4lIl46e+imEgaTrKrQlkYkMfELpJ9oL30JfXO 4ZE7dmR/vTQEcsMp3jNjGjMzQtqQlvU75EKyLwS9wQ== X-Google-Smtp-Source: AG47ELtlCWFwSe12Xhodl85myE7fbPvqZxQUOQXfuwy7/P/pU7faopq9qiBJVjvC9uHQVmxeQrkAUjYsYI87yiLbA60= X-Received: by 10.157.94.18 with SMTP id d18mr16246535oti.386.1520426711938; Wed, 07 Mar 2018 04:45:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.8.150 with HTTP; Wed, 7 Mar 2018 04:44:51 -0800 (PST) In-Reply-To: References: From: Murtuza Zabuawala Date: Wed, 7 Mar 2018 18:14:51 +0530 Message-ID: Subject: Re: [pgAdmin4][RM#2989] To fix the issue in Table node To: Dave Page Cc: Joao De Almeida Pereira , pgadmin-hackers Content-Type: multipart/alternative; boundary="089e082c7f84128d3e0566d1ee45" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --089e082c7f84128d3e0566d1ee45 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 7, 2018 at 6:12 PM, Dave Page wrote: > Hi > > On Tue, Mar 6, 2018 at 4:06 PM, Joao De Almeida Pereira < > jdealmeidapereira@pivotal.io> wrote: > >> Hi Murtuza, >> >> The code change works, and I passed the patches through our pipeline and >> everything is green. >> Personally I would love this bug fixes to have refactored the function >> into smaller chunk and made it more readable so that the next time someo= ne >> need to check out a problem in the same area it is easier. I understand >> that without a good test coverage it is hard to have confidence while >> refactoring, but we need to start somewhere. >> > > Are you planning to look into this Murtuza? > =E2=80=8BYes Dave, I am working on another issue, I'll pick up after that.= =E2=80=8B > > >> >> @Hackers >> Here is a video that I saw some time ago about refactoring existing code >> and code complexity that is very interesting >> https://www.youtube.com/watch?v=3D8bZh5LMaSmE >> In this video Sandi Metz does the Gilded Rose Kata in a talk in RailsCon= f >> 2014, and with it tries to demonstrate that code can be refactored and w= ith >> that it make the code much more simpler. But the journey is not always >> simple and the complexity will increase before it get simpler. It is a g= ood >> example of something that we can try with our code. >> > > Nice! > > -- > Dave Page > Blog: http://pgsnake.blogspot.com > Twitter: @pgsnake > > EnterpriseDB UK: http://www.enterprisedb.com > The Enterprise PostgreSQL Company > --089e082c7f84128d3e0566d1ee45 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Wed, Mar 7, 2018 at 6:12 PM, Dave Page <dpage@pgadmin.= org> wrote:
Hi

On Tue, M= ar 6, 2018 at 4:06 PM, Joao De Almeida Pereira <jdealmeidaperei= ra@pivotal.io> wrote:
Hi Murtuza,

The code change works, and I pas= sed the patches through our pipeline and everything is green.
Per= sonally I would love this bug fixes to have refactored the function into sm= aller chunk and made it more readable so that the next time someone need to= check out a problem in the same area it is easier. I understand that witho= ut a good test coverage it is hard to have confidence while refactoring, bu= t we need to start somewhere.

A= re you planning to look into this Murtuza?
=E2=80=8BYes Dave, I am working on a= nother issue, I'll pick up after that.=E2=80=8B
=C2=A0
=C2=A0

@Hackers
Here is a video that I sa= w some time ago about refactoring existing code and code complexity that is= very interesting
In this video Sandi Metz does the Gilded Rose Kata i= n a talk in RailsConf 2014, and with it tries to demonstrate that code can = be refactored and with that it make the code much more simpler. But the jou= rney is not always simple and the complexity will increase before it get si= mpler. It is a good example of something that we can try with our code.

Nice!=C2=A0

-- =
Dave Page
Blog: http://pgsnake.blogspot.com
T= witter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise P= ostgreSQL Company

--089e082c7f84128d3e0566d1ee45--