I'm not following mail.python or any dedicated python-related blogs in the same way or with the same passion I was doing 10 or 15 years ago, but I still do enjoy using Python daily (and some JS) for implementing some of my hobbies (many of them relying on collecting, manipulating and presenting data).
Ask HN: How to rediscover the joy of programming?
201–210 of 337 posts
Re: Ask HN: How to rediscover the joy of programming?
#202Re: Ask HN: How to rediscover the joy of programming?
#203Re: Ask HN: How to rediscover the joy of programming?
#204Earlier quoted context omitted.
It's rushed half-finished edge case riddled language with awful tooling. Some of the issues are outlined here: https://blogtitle.github.io/lets-talk-about-javascript/ Of the many programming languages I have used over the last 20 years, there are several I prefer, several I would rather not use, but PHP and Javascript are the only two I refuse to ever touch again because they are so utterly unpleasant to write anythi…
I find it ok for it's intended original use, which is browser scripting. It's totally fine to write small JS scripts to make the pages a bit more interactive. People got it wrong when they started writing huge applications in JS. Just because a language is Turing complete, it doesn't mean it's fitted for everything. It's like you did your job fine as a carpenter using carpenter's tools and you get a dentist job, but…
Interestingly I believe the sendmail config file syntax is Turing complete. You could theoretically create a web app using SMTP as the backend API.
Re: Ask HN: How to rediscover the joy of programming?
#205Earlier quoted context omitted.
Does it have to be PHP? No offence but you’d get so much more from learning Python and the barrier to entry really isn’t that high. The hardest hurdle initially is to set up a “virtual environment” which means you have a project by project collection of all the packages you need instead of installing everything globally. Setting up virtual environments used to be a pain. Today it’s so easy: 1. Make sure you have Pyth…
It need not be PHP. Just that I'm most familiar with PHP and ASP.net from back in the day. I'm confident that I can pick up most languages. I will look into Python and Django. But honestly the setup steps already scare me a bit :)
Re: Ask HN: How to rediscover the joy of programming?
#206Earlier quoted context omitted.
That's a fair point about the Perl example, but Scheme and Common Lisp (including both Chicken and SBCL, last I checked) support (if not outright require) full numeric towers with rational number types, so these are indeed exact representations (unless you explicitly request binary floats for e.g. performance reasons) and not just rounding during printing. There are lots of other examples of doing it "right" (using m…
I am aware of numeric towers and actually checked whether that was going on. sbcl 1.4.16 uses single floats: https://ideone.com/ruw5qi I don't know enough about Scheme to dig under the covers to see how it's being represented internally.
The output of inexact numbers is typically truncated. In CHICKEN, you can use flonum-print-precision to tweak that. In an example, straight from the manual:
> (flonum-print-precision 17)
> 0.1
0.10000000000000001Re: Ask HN: How to rediscover the joy of programming?
#207I had the same issue. Then I went back to the roots: Lisp And learned Clojure. You will feel like you know nothing. You will feel handicapped. You will be confused. Then, one day, you will understand what simplicity means and how Clojure's design embraces that more than in any other language I know. By then you will have embraced the flying-by-your-pants-exploratory style of programming at the REPL. And don't want to…
The problem is I don't have a good track record for completing projects so competitors or collaborators would be greatly appreciated
Re: Ask HN: How to rediscover the joy of programming?
#208My two cents: change career and move to another place. I moved every four years, from countries to countries, continent to continent, never worked more than 3-4 years in one job. Career change can be from your current employer to another one or from your current favorite language to something different. It is a radical mindset change, being a slow moving individual. but the wealth of learning from different places an…
Plus, changing jobs every few years means that you are constantly in interview churn mode and as you age, you have less and less desire to deal with the moronic ways in which interviewing is conducted. Personally, I still enjoy programming and would still write programs even if I hit the jackpot in the lottery, but the way the industry behaves these days is a big part of why people get burned out.