🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #28061

Re: Interpretowany czy kompilowany?

#28061
From: zbrodel
Date: Tue, 24 May 2011 12:56
33 lines
2816 bytes
On 24.05.2011 12:55, jacek2v wrote:
> Tak to też wcześniej napisałem. Miałem na myśli, że nakład pracy na
> pisanie kodu z typowaniem nie opłaca się :)

Mam wrażenie, że ten "nakład pracy" jest demonizowany. Programuję 
równolegle w Javie i w Pythonie i akurat konieczność deklarowania typów 
mnie nie boli.

Bonusem jest za to, że kod z deklaracjami typów jest bardziej 
"samodokumentujący" się. Porównaj:

def find_user(users, properties):

z tym:

public User findUser(List<User> users, Map<String, String> properties)



> To był przykład dla mojego adversarza, aby łatwiej mu było zrozumieć
> co miałem na myśli :)
> Nie "nic", unit test pomoże. Ale ile się trzeba napisać by te
> typowanie zapisać :)

Unit test pomoże albo nie. Problem z unit testami jest taki, że podobnie 
jak programy, mogą nie być do końca poprawne, w końcu pisane są przez 
ludzi. Zwłaszcza przy refaktoringu rodzi się niebezpieczeństwo, że nie 
zmodyfikujemy odpowiednio właściwych testów. I co teraz? Napisać 
metatesty sprawdzające poprawność testów?


Pzdr
J.
Technical Details
Message-ID: <irg9ua$pb6$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!not-for-mail
References: <iqmlha$r29$1@news.onet.pl> <4dcee603$1$2437$65785112@news.neostrada.pl> <iqo0j1$g9u$1@news.onet.pl> <87boz3anea.fsf@smsnet.pl> <iqqk2o$oh7$1@news.onet.pl> <0601cb5b-befa-46ba-9d1c-f105c81369fe@r35g2000prj.googlegroups.com> <iqrlte$rfe$1@news.onet.pl> <87k4dqe6vw.fsf@smsnet.pl> <iqt8gb$lo1$1@solani.org> <e423ccad-b001-4931-8e98-68982533d79f@d15g2000yqn.googlegroups.com> <iqtsq9$j2e$4@solani.org> <4d8313d9-cc85-4065-b94d-c7433e6d51de@p6g2000vbn.googlegroups.com> <iqugpk$vbu$3@solani.org> <64a9b1f5-e71a-4b1e-b54b-029a032d6a17@x1g2000yqb.googlegroups.com> <ir58gg$me$1@speranza.aioe.org> <2f93f4ca-ccb1-42a5-b199-2d9902ee8629@l18g2000yql.googlegroups.com> <ir90vs$nd8$1@speranza.aioe.org> <b807128c-8325-4ef6-93a9-c41ba1609583@h7g2000yqa.googlegroups.com> <irbh66$4fa$1@news.onet.pl> <c4a63f8f-afbc-4dab-ab9e-4c241433ab38@28g2000yqu.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!not-for-mail
From: zbrodel@tlen.pl
Newsgroups: pl.comp.lang.python
Subject: Re: Interpretowany czy kompilowany?
Date: Tue, 24 May 2011 14:56:42 +0200
Organization: http://onet.pl
Lines: 34
Message-ID: <irg9ua$pb6$1@news.onet.pl>
References: <iqmlha$r29$1@news.onet.pl> <4dcee603$1$2437$65785112@news.neostrada.pl> <iqo0j1$g9u$1@news.onet.pl> <87boz3anea.fsf@smsnet.pl> <iqqk2o$oh7$1@news.onet.pl> <0601cb5b-befa-46ba-9d1c-f105c81369fe@r35g2000prj.googlegroups.com> <iqrlte$rfe$1@news.onet.pl> <87k4dqe6vw.fsf@smsnet.pl> <iqt8gb$lo1$1@solani.org> <e423ccad-b001-4931-8e98-68982533d79f@d15g2000yqn.googlegroups.com> <iqtsq9$j2e$4@solani.org> <4d8313d9-cc85-4065-b94d-c7433e6d51de@p6g2000vbn.googlegroups.com> <iqugpk$vbu$3@solani.org> <64a9b1f5-e71a-4b1e-b54b-029a032d6a17@x1g2000yqb.googlegroups.com> <ir58gg$me$1@speranza.aioe.org> <2f93f4ca-ccb1-42a5-b199-2d9902ee8629@l18g2000yql.googlegroups.com> <ir90vs$nd8$1@speranza.aioe.org> <b807128c-8325-4ef6-93a9-c41ba1609583@h7g2000yqa.googlegroups.com> <irbh66$4fa$1@news.onet.pl> <c4a63f8f-afbc-4dab-ab9e-4c241433ab38@28g2000yqu.googlegroups.com>
NNTP-Posting-Host: pae82.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1306241802 25958 46.171.4.82 (24 May 2011 12:56:42 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Tue, 24 May 2011 12:56:42 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10
In-Reply-To: <c4a63f8f-afbc-4dab-ab9e-4c241433ab38@28g2000yqu.googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit