I originally used Guttenburgh to get Hamlet and coded the Quanta method in Python and it did not work. I then moved to Algorithm 1 in the paper and got Copilot to (mis) convert it to Python and then spent time getting Copilot to admit its mistakes. The resultant code seemed to work but I found the Quanta suggested data of the words of hamlet to be uninspiring as for the calculated theta (max set size before halving), was often from ~50% of the total number of words in hamlet to often more than the words in hamlet. I've yet to investigate theta in more depth...
HN user
Paddy3118
paddy3118.blogspot.com
Yep. Fun, weather protection, and small - just too pricey at the moment.
I don't want an electric Suv - I need an electric Carver for £5,000 and a car share of something larger and more luxurious for less frequent long trips.
Python is a scripting language. It allows me to develop a right answer in record devopment time and with a high degree of confidence that the result does what it needs to do. If, then, there are speed problems then I can optimise my existing code or rewrite sections in other languages, but crucially use my initial code to aid in testing the more obscure rewrites. Most of the time, some thought upfront will tell you if you will need a compiled solution early on, but even then - getting it correct in Python before getting it fast in something like C++ can be faster - the spec is often revised as implementation can change specsand Python is more agile.
Execution speed is more than execution speed - you need to be correct, and being fast enough is quality; faster may be wasteful.
"People don't use...". They did and they will and you will have to read and understand and maintain that cruft for years to come.
Lingua franca "language used as a means of communication between populations speaking vernaculars that are not mutually intelligible." Javascript is too Web focused. Python and C are better candidates as they are more than Web.
Stick to a detailed comparison with... Shell !? So that's the context for universality he's touting.
The articles structure makes it difficult to comprehend.
Code is helped by being readable.
Saying your code is going to "look like sh£t anyway" seems rather defeatist, and an _excuse_ to write unreadable code.
"Is SQL declarative?" https://softwareengineering.stackexchange.com/questions/2003...
Oh my blog isn't giving an analytical solution, if that is what you want to do, it is simulating the problem to find a solution.
(The video does do an analytical solution though).
The solution of "working out loud" needs to be expounded.
Even so, Go seems less succinct in comparison on several tasks. Such differences will most likely be magnified in larger programs.
Go does seem more verbose than Python. Rosetta code tries for idiomatic solutions to common tasks, here's one such completed in both Python and Go: http://rosettacode.org/wiki/Bitcoin/address_validation
You would need to know the nature of the tasks to pick out those that need longer answers but all the Go tasks are here: http://rosettacode.org/wiki/Category:Go - most of which should have Python solutions.
You can say that, but it doesn't make it so. Go here: http://rosettacode.org/wiki/Category:Go for many examples of more succinct Python with better commenting than the Go code, for example: http://rosettacode.org/wiki/Align_columns
Not a recipe for learning to write idiomatic code in any new language. (I mostly hear of C++ programmers that really only write C).
There seems to me to be an overlap between Matz's typng ideas and some of the "static" typing generated by Julia: https://www.youtube.com/watch?v=jhlVHoeB05A https://www.youtube.com/watch?v=VCp1jUgVRgE
I've asked for more info on that so I can see what needs fixing and if these non-zero-exit values appear for me.
My apologies. I didn't know it was a technical term.
Ouch. Onboarding? You can't communicate if you make up words as you go along.
Without due scientific process to back up TDD we are left with such arguments having equal validity as TDD. Without a scientific proof of TDD being superior then we are left with mere opinions on both sides.
NAARP! http://paddy3118.blogspot.co.uk/2013/02/no-attempt-at-rigoro...
The "One True Language Paradigm"....
... Is functional programming!
(while it lasts that is).
Keeps the money circulating.
By abstraction, the author mentions interfaces earlier on. I take the point of the other commenter who states that Java practitioners use too much abstraction, and would also point out that the later versions of Python add abstract base classes: http://docs.python.org/library/abc.html
After comparing Java and Python solutions on Rosetta Code: http://rosettacode.org/ I think new programmers would find it easier to learn when using Python.
- Paddy.
Um, not really. Dynamic languages have duck typing (look it up on wikipedia); they get used to writing for the now and letting the what-ifs wait, as in some cases, changes can be accomodated with little tear-down of existing code.
Integrity in conducting scientific experiments? Now there's an idea!
Just a reminder after some of the comments directly after the Beijing Olympics: Bolt is tested to death and is clean. As where those 100m female runners who swept away all the medals: Shelly-Ann Fraser, Sherone Simpson, and Kerron Stewart.
There is one thing that was shoddy though, with a bit more effort the ladies could have got equal times and picked up three golds in the race instead of one gold and two silvers :-)
- Paddy.
http://en.wikipedia.org/wiki/G%C3%B6del,_Escher,_Bach
Gödel, Escher, Bach: An Eternal Golden Braid by Douglas Hofstadter.
Not only did I by it, but I read it, and enjoyed it too!
- Paddy.
To rip out a little of the reply by tetha above:
"If you have duck typing, the programmer needs to do this work, by defining clear interfaces with clear documentations about the expected behavior of an object passed in here or returned over there."
A compiler does not define clear interfaces with clear documentation for you. If you are implying that to use duck typing, this is more likely to be done by a programmer then this is a good thing; no matter what the typing.
In practice duck typing helps to get rid of needless duplication, and extended class hierarchies in code, and proponents would state that less code is easier to verify.
- Paddy.
Python, popular!!! that is just so great! I've watched it grow for over a decade and a half. Python got were it is, largely without the big initial push of large companies.
Maybe people now blog about python because the community has always tried to be friendly. It is usually nice to blog about Python, and have fellow enthusiasts give measured, polite feedback.
"... so it follows that the languages where you can get paid and not care are going to be most popular."
But it does not follow that there are less caring, articulate, and productive souls in a more popular languages camp.
- Paddy.
I am an active contributor to www.RosettaCode.org where I browse many languages. What I have seen of the functional languages doesn't make me want to switch.
Despite knowing Pythons functional tools, it wasn't Python that introduced me to that style. I find Pythons mix comfortable and happily switch between programming in Python 3 and Python 2. Maybe the OP hopes to start a trend?
- Paddy.