IvarTJ's comments

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 | 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 | 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: 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: 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: 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.
page 1