IvarTJ
|
1 year ago
|
on: What did Ada Lovelace's program actually do? (2018)
A motivation for reimplementing System.out.println might be to have it reliably display Unicode characters in Windows terminals, using WriteConsoleW.
IvarTJ
|
2 years ago
|
on: When I got started I debugged using printf() today I debug with print()
I've found a debugger particularly useful when trying to understand details about other people's code, when changing the source code is not necessarily an option. They can quickly give me answer to how the call stack looks like when a function is called, and let me inspect variables in different frames of the stack.
IvarTJ
|
3 years ago
|
on: How boring should your team's codebases be
I've encountered a code written in the 12factor style of using environment variables for configuration, and in that particular case there was no validation nor documentation of the configuration options. Is this typical?
For onboarding new members, I would have thought it preferable to have a JSON configuration, where both documentation and validation of configuration options are provided by a JSON Schema file.
IvarTJ
|
7 years ago
|
on: Ask HN: Best way to test accessibility of a website?
Check the WCAG success criteria that your jurisdiction requires. One less obvious, and commonly required, criteria (WCAG 2.4.1[1]) is that the site has some mechanism by which a screen reader user can jump from the beginning of the document to the main content, without having to browse through the preceding navigational links and similar.
[1] https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechan...
IvarTJ
|
8 years ago
|
on: List of command line tools for manipulating CSV, XML, HTML, JSON, INI, etc.
xmllint also supports XPath queries.
IvarTJ
|
10 years ago
|
on: Best practices for a new Go developer
I personally don't see having the version in the package address particularly more nasty than specifying it in the project file, as in Maven, which I have been dealing with lately. One problem I imagine is that when migrating to a new version of a library, the address has to be updated in each file the library is used in, with potentially catastrophic consequences if any one file is forgotten. A grep seems wise in that case.
Would you argue that there are more robust solutions in the Haskell ecosystem? What scheme do you prefer?
IvarTJ
|
10 years ago
|
on: A visual timeline of programming languages
In this timeline, Common Lisp first appears when it was standardized. It should probably also mention its predecessor MACLISP.
IvarTJ
|
11 years ago
|
on: Why We Use OCaml
Could someone comment on what instances you would typically apply lambdas and closures in real-world code?
I figure that they are at least more convenient than callbacks with a *userData parameter like in C.
IvarTJ
|
11 years ago
|
on: The Data of Hate
IvarTJ
|
11 years ago
|
on: Beginner's guide to OCaml beginner's guides
You can run Ocaml on the Raspberry Pi for one.
IvarTJ
|
11 years ago
|
on: Why Go Is Not Good
I would not say that I am particularly experienced, but I will tell my point of view from a not particularly sophisticated programmer. I am interested in seeing what objections others may have to what I write.
Compared to other popular programming languages aimed at web programming, such as Python, Ruby and PHP, Go provides more type safety. Comparable to Java's but for less code.
Go's runtime and development tools are very lightweight, which is important to me as I use multiple, often dated computers with limited memory.
It is very easy to learn, a low investment. This means that it is conceivable for a student previously only exposed to Java to get on board on your software project on short-time notice.
IvarTJ
|
11 years ago
|
on: What if Quality Journalism Isn't?
Here in Norway newspapers more or less survive, although perhaps not with the younger generations. They are generally the best source if you want to follow up on local events.
How do Americans follow local news?
IvarTJ
|
11 years ago
|
on: A Year of Functional Programming
How well does deploying Haskell web applications to a low-memory VPS work? My experience with the Play framework tells me that Scala is out of the question. Presumably using Haskell involves cross-compilation, considering the memory usage of GHC compilation.
IvarTJ
|
12 years ago
|
on: Gracefully Dropping Support for Dinosaur Browsers in Trello
It's as if it was only yesterday that we saw Microsoft bragging about IE9 being arguably slightly ahead of the other browsers.
IvarTJ
|
12 years ago
|
on: Hey Latex users, I have an idea for you
HTML?
IvarTJ
|
12 years ago
|
on: Swiss forensic report on Arafat's death
It has been used successfully before. Just ask Alexander Litvinenko.
IvarTJ
|
12 years ago
|
on: On Lisp
Surely expressing personal issues with Lisp's syntax is valid, especially if a possible solution is offered. If you see at least some of the larger codebases written in Lisp, it is natural to be overwhelmed by the level of indentation, which will cause the code to wrap under many editor setups.
IvarTJ
|
12 years ago
|
on: Assange: How cryptography is a key weapon in the fight against empire states
I do not believe any large company have economic interest in developing such technologies, in part because they can subvert current business models that are built on centralized identity authorities and communications monitoring, so I rely on independent efforts to see variants of these technologies that can reasonably be adopted by the people I interact with.
IvarTJ
|
12 years ago
|
on: Assange: How cryptography is a key weapon in the fight against empire states
As a moderately advanced computer user, I would like to see:
Convenient and standard way to cryptographically identify myself across different mediums.
Convenient variants of communication mediums such as chat rooms and forums that do not rely on or can be controlled by any one third-party server.
IvarTJ
|
12 years ago
|
on: Vim and Ctags tips and tricks
In addition to Ctrl+T to go back from a definition, Ctrl+O also seems to work, which I find more ergonomic on Qwerty.