Better HN
topnewbestaskshowjobs
Log inSign up

grumpyprole

4,485 karma · joined Jun 30, 2015 (11y ago) · 2,043 submissions

Submissions

comment 8y ago · link · parent

From your Wikipedia link:

"Generally, a strongly typed language has stricter typing rules at compile time, which imply that errors and exceptions are more likely to happen during compilation"

comment 8y ago · link · parent

Python is not "strongly typed". Please don't repeat this phrase near management folk. Python just gives good error messages when it crashes at runtime, e.g. "expected an Int but got a String". This is better than a segfault, but it's still a crash.

Call it "strongly tagged" if you like, but "type" unqualified should mean static type. Even "dynamic type" is a marketing hijack of the word type.

Professor Robert Harper takes the same position: https://existentialtype.wordpress.com/2011/03/19/dynamic-lan...

comment 8y ago · link · parent

> When developing, you don't necessarily know about your types yet.

This is absolutely not true for myself and my coworkers. We think in types first. Typically we write out high-level functions with type signatures and make sure they all fit together and everything type-checks. Then, we'll fill in the detail and actually implement the functions. Often this process is recursive and we need to repeat it until we get small functions that are either easy to implement or available in a library. We have a type-based search tool to facilitate finding such library functions. Sometimes there are problems and alternative abstractions that only come to light when filling in the details. When a large re-organisation of code is necessary, types again help to get this right.

Personally, I could never build a non-trivial piece of software in a dynamic language. Perhaps I just don't have the brain power to track the types manually in my head.

comment 8y ago · link · parent

I recall many consumer reviews of older Samsung phones criticising the plastic backs and asking for glass or metal.

comment 8y ago · link · parent

Yes choice is good. But my concern is that consumers start demanding metal bodies, zero-travel keys and touch-bars everywhere, because Apple, and choice will be reduced. For example, I can no longer buy a mobile phone that doesn't have a glued-in battery.

comment 8y ago · link · parent

Modern plastic composites with carbon fiber / glass fibers can perform as well or better than metals with regard to strength-to-weight. Plastics also have many other properties that make it preferable for a laptop case. Apple have chosen aluminium to give the impression of build quality. The competition are too often judged by their plastic cases instead of other attributes, such as the lack of glued-in batteries and unreplaceable components.

comment 8y ago · link · parent

Modern MacBooks have absolutely terrible keyboards. So unless you use it like an iPad, you'd be better off with a ThinkPad.

comment 8y ago · link · parent

A metal body is heavy, prone to dents and attenuates radio. Why are you so keen on having one? The X1 Carbon is lighter, tougher and more serviceable than a MacBook Pro, in part because of a better choice of materials.

As for trackpads, Apple keep making them larger and larger, so a ThinkPad trackpad is no smaller than a MacBook from a few years ago. The keyboard is surely the primary concern.

comment 8y ago · link · parent

I use the keyboard a lot more than moving the pointer. I use a tiling window manager under Linux and lots of keyboard shortcuts, which helps. For moving the pointer, I prefer the ThinkPad trackpoint, as I do not have to take my hands off the keyboard.

comment 8y ago · link · parent

My wife has a Mac, but when it dies, I'm going to persuade her to try Ubuntu. She only uses the Mac for Facebook and occasional Word/Excel. I think LibreOffice and Firefox should have her covered.

comment 8y ago · link · parent

My ThinkPad X1 is as good as any generation of MacBook, it is certainly more serviceable and has a better keyboard. You might prefer MacOS to Linux or Windows, but I can assure you that there are very decent hardware alternatives.

comment 8y ago · link · parent

Most people that know both, find functional languages far easier to read than imperative languages. They are declarative and permit a wider range of abstractions. Operator-overloading is a similar example that comes up for debate, over-and-over again. There are people that simply do not want to learn any new abstractions and are happy to read and write the same patterns/code over-and-over again. The problem for the rest of us, is that we may find ourselves in a position where we have to maintain code written by these heathens.

comment 8y ago · link · parent

Unfortunately, Java is a poor choice to implement a programming language with and there's nothing about implementing static typing in this book. I honestly believe that most folks would be better off reading SICP or similar. What is needed is a book that can make more modern ideas (and more modern languages) accessible to industry.

comment 8y ago · link · parent

Often it's the ideas that are the cause of the problems, for example: magsafe required an extremely thin cable leading to fray (85 UK pounds for a new adapter), or the "magic mouse" that required raising ones right finger in order to left click. The new super-shallow keyboard is the latest flawed idea. Luckily my wife hasn't got one of those.

comment 8y ago · link · parent

Developers should just buy a ThinkPad and run Linux. A much more dependable machine and a far superior keyboard.

comment 8y ago · link · parent

Being brutally honest, compared to Haskell, ML and to a lesser extent Python, Scala's syntax is rather ugly and unnecessarily verbose. I'm almost certain its creators chose the syntax in order to tempt curly-bracket programmers, not because they liked it personally. I really hope that future high-level languages will use better syntax and move on from the C/C++ influence.

comment 8y ago · link · parent

When there's no ability in the language to abstract, there's no abstractions to learn, beyond what is built in. But this is not a blessing, it means we have to study every line of code and hope that we can uncover some emergent higher-level structure, if it exists.

comment 8y ago · link · parent

The Scala team appear to have their hearts in the right place. They seek to empower their users and have respect for them. I can't really say the same about the Go team, based on at least one Google presentation I have seen. This isn't that surprising given the goals of the projects.

comment 8y ago · link · parent

Arithmetic expressions on BigInteger and BigDecimal currently look like an OOP parody. I cannot believe there are folks willing to defend this decision. Even Sun couldn't resist overloading '+'.

comment 8y ago · link · parent

> It makes it almost impossible to forget to release resources or rollback transaction.

No. For that you need a better type system. Linear types show great promise for this.

comment 8y ago · link · parent

If you are running Linux, iio-sensor-proxy might be worth a try.

comment 8y ago · link · parent

IMHO, it was a mistake for some languages to make "=" mean assignment. Algol and Pascal got this right and used ":=" to mean assignment. Even the use of "variable" is wrong when talking about mutable memory. "Assignable" would be better.

comment 8y ago · link · parent

> it's a miracle that with the tools we have we are able to write any network applications at all

Perhaps it is time to start using a higher-level language? One with a runtime that provides green threads?

comment 8y ago · link · parent

I've read posts stating the exact opposite here on HN. So clearly it is subjective.

comment 8y ago · link · parent

I didn't actually suggest donations was a lucrative revenue model. Support could be though, for example, RedHat is a billion dollar business.

comment 8y ago · link · parent

At least with platforms such as Steam, the problem is one of porting the platform to each distribution, not all its applications.

comment 8y ago · link · parent

Steam on Linux works very well.

comment 8y ago · link · parent

If I was in the market of workstation software such as CAD, Music DAWs, industrial automation etc. I would much rather have control over the base OS by shipping a customised version of Debian or similar. This would be very compelling for professional users also, who don't want the consumer-oriented cruft and bloat associated with Windows and Mac OS.
1
444546
69