Better HN
topnewbestaskshowjobs
Log inSign up

Paddy3118

8 karma · joined Mar 29, 2009 (17y ago) · 37 submissions

paddy3118.blogspot.com
Submissions

comment 2y ago · link · parent

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...

2.

Searching OEIS for anti-diagonalised tables

1 points · by Paddy3118 · 2y ago · discuss

comment 3y ago · link · parent

Yep. Fun, weather protection, and small - just too pricey at the moment.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 4y ago · link · parent

"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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

Stick to a detailed comparison with... Shell !? So that's the context for universality he's touting.

comment 6y ago · link · parent

The articles structure makes it difficult to comprehend.

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

"Is SQL declarative?" https://softwareengineering.stackexchange.com/questions/2003...

comment 11y ago · link · parent

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).

comment 11y ago · link · parent

The solution of "working out loud" needs to be expounded.

14.

Solving the Monkey and coconuts problem(paddy3118.blogspot.com ↗)

2 points · by Paddy3118 · 11y ago · 3 comments

comment 11y ago · link · parent

Even so, Go seems less succinct in comparison on several tasks. Such differences will most likely be magnified in larger programs.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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

comment 12y ago · link · parent

Not a recipe for learning to write idiomatic code in any new language. (I mostly hear of C++ programmers that really only write C).

comment 12y ago · link · parent

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

comment 12y ago · link · parent

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.

comment 13y ago · link · parent

My apologies. I didn't know it was a technical term.

comment 13y ago · link · parent

Ouch. Onboarding? You can't communicate if you make up words as you go along.

23.

Partition n sets into bins like the areas of a Venn diagram(paddy3118.blogspot.co.uk ↗)

1 points · by Paddy3118 · 13y ago · discuss

comment 13y ago · link · parent

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...

comment 15y ago · link · parent

The "One True Language Paradigm"....

... Is functional programming!

(while it lasts that is).

Keeps the money circulating.

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

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.

comment 16y ago · link · parent

Integrity in conducting scientific experiments? Now there's an idea!

29.

How many people upset over Apple's rules might have develped on the iPhone?

1 points · by Paddy3118 · 16y ago · discuss

12