Better HN
topnewbestaskshowjobs
Log inSign up

code-dog

138 karma · joined Dec 1, 2011 (14y ago) · 51 submissions

Submissions

31.

Shared_ptr thread safety comes at a huge cost(nerds-central.blogspot.com ↗)

5 points · by code-dog · 14y ago · 1 comment

comment 14y ago · link · parent

Which kinda goes to my point about out of memory exceptions - they generally end up being fatal sooner or later. Trying to catch them just results in memory running out somewhere else. The only place you can deal with them is if the code is doing something you expect to cause memory issues because it is consuming an atypically large amount of memory (like a cache or some such) which you can get away with shrinking.

comment 14y ago · link · parent

... because the compiler knows how big the function like object will be at compile time when the template is used but it only knows it at runtime if the class is used. ...

I am guessing this is the situation?

comment 14y ago · link · parent

That is really nice. Could you expand on how this works a little "You can also avoid problems with exceptions and std::function’s dynamic allocation by using a template instead:"

comment 14y ago · link · parent

I get your points. In general, the use cases for this pattern are not production code. The post points out this is not a good way of handling resource and that the example is about debugging. It would be up to the implementer to ensure the finally clause does not throw and exception or to catch it (I think there is something about nesting).

As for memory allocation failures, my experience is that depends a lot on the platform. It is a common misconception that dynamic memory is likely to run out and therefore we need to worry about that but not automatic memory. However, I have seen stack overflow many many many more times than a genuine 'out of memory'. Further, if an application has actually run out of memory so badly that a allocation of the closure's internal storage barfs then I suspect it cannot be retrieved. Naturally this does not apply if your platform has a very low heap size (e.g. realtime hardware or some such).

36.

C++11: Try/Catch/Finally Pattern Using RAII & Lambdas(nerds-central.blogspot.com ↗)

32 points · by code-dog · 14y ago · 12 comments

37.

Domain Driven Design: Java/C# Tagging Via Generics(nerds-central.blogspot.com ↗)

1 points · by code-dog · 14y ago · discuss

38.

Cutting Agile Down To Size(nerds-central.blogspot.com ↗)

2 points · by code-dog · 14y ago · discuss

39.

Immutable Functional Lists In C++11 : Just For Fun(nerds-central.blogspot.com ↗)

2 points · by code-dog · 14y ago · discuss

40.

Systemic/Reflective Agile Teaming(nerds-central.blogspot.com ↗)

1 points · by code-dog · 14y ago · discuss

comment 14y ago · link · parent

But it never unseated IMS - that is a bit of a kicker.

42.

SQL - A Failed Experiment?(nerds-central.blogspot.com ↗)

2 points · by code-dog · 14y ago · 3 comments

43.

Java: Threads Managed By Reference Counting: Avro and Netty(nerds-central.blogspot.com ↗)

1 points · by code-dog · 14y ago · discuss

44.

The Future Of The IDE Comes From COBOL - WTF(nerds-central.blogspot.com ↗)

2 points · by code-dog · 14y ago · discuss

comment 14y ago · link · parent

As someone who has done the interviewing thing, I can see where this article is coming from. I don't really buy into all of it though. All this stuff about being a great communicator. That is cool but not always required. I have spent a lot of time working with amazing people who are crap communicators and crap people who are great communicators.

But - I am sure a lot of people interviewing use indicators like these so it it worth knowing about them.

Finally, on the CV thing. This is a hard issue because agents look for buzz words. If you've done a lot of stuff you need to write a lot to get all the buzz words in. That is the only way the agent will forward our CV. Then - you cannot tailor the CV to the job because you did not submit one for that job, you submitted one for buzz words.

46.

5 Reasons You Must Learn C++(nerds-central.blogspot.com ↗)

10 points · by code-dog · 14y ago · 3 comments

47.

Hadoop: Quant Calculations With Distributed Excel - 1 (nerds-central.blogspot.com ↗)

2 points · by code-dog · 14y ago · discuss

comment 14y ago · link · parent

Nice links thanks. Would you agree that there is at least a similarity in purpose between Currying in functional languages and fluent interfaces? It seems to me that techniques and ideas from partial application and currying are useful in the design and implementation of fluent interfaces.

49.

Curry Saves Java?(nerds-central.blogspot.com ↗)

1 points · by code-dog · 14y ago · 3 comments

comment 14y ago · link · parent

Now the idea of open digital communication is well established, legal frameworks will not be able to do anything but slow it down. Whilst the US government is producing laws to stop free/open digital coms they are also developing stuff like internet-in-a-suitcase which is designed to get around 'repressive governments' which do to allow open access to the internet. This indicates the stupidity of using legal systems to control communication in this way.

51.

Oracle Monetizes Java and the JVM With Commercial Features(nerds-central.blogspot.com ↗)

3 points · by code-dog · 14y ago · 1 comment

12