HN user

IvarTJ

217 karma
Posts4
Comments107
View on HN

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.

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.

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?

Why We Use OCaml 12 years ago

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.

Why Go Is Not Good 12 years ago

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.

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?

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.

On Lisp 13 years ago

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.

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.

While building respect is a great attitude, it is not the only thing that help you land in networks. The network connections of your family and the posh kids you went to school with also play a role.

Can someone explain why bricking an infected computer is a good idea?

I might understand it if the boot sequence just gives a warning with information, suggestions and a "Don't warn me again" option, but from what I hear it just makes the machine unusable.

Why Use Nginx? 13 years ago

For my hobby programming server, I primarily use it to serve different web applications on different domains. The server is a proxy to web applications that listen on different ports on the server. This allows me to multiplex different web servers and relieves me of finding modules that glue together nginx and various programming languages.

New kernel.org 13 years ago

> Would you answer this on a bug report?

If I was unable reproduce the bug with the information given, it seems reasonable to mention that. Also, the effort required by the bug reporter to mention basic information on the setup they use is much less than for a web developer to boot up 5 different systems (including iOS and Android) to test out each major browser in them.

I'll have you know that I have been wary of using non-default fonts because of these reports.

New kernel.org 13 years ago

Here it renders perfectly on Fedora in Firefox, Chrome and Safari on Mac OS X, Firefox and IE9 on Windows Vista.

It would be nice if the people who encounter these text-rendering problems mention what setup they use.

Why code in C++ anymore?

I don't know C++ and its community very well, but here are my suspicions. I'd love for someone to confirm or dispel them.

* Relative to C is obviously that it provides a greater toolbox.

* Relative to Java, it gives more fine-grained control of the target platform, and programs have somewhat better startup speeds (though still often not very good, which I again suspect is because of large binary sizes).

* Relative to Python and Ruby, its static typing gives better guarantees as it allows less to fail at runtime.

* Relative to Go, Rust, D and ML languages, it is more well-established. Especially regarding GUI toolkit libraries.

Lately I've found it engaging to try to build up a personal repository of C libraries. Mostly wrappers and reimplementations of well-outlined standards, but still very engaging. It makes me think about API design, learn about the details of a few standards, and simplifies experimentation with things I am interested in.

Is this common?