News for hackers. Stuff that matters.

prunebeads

Re:Dear HN "Who's Hiring" responders on Monday April 01, 2013 @09:31PM (#5477166)
I sort of agree with you, but there's also a form of over expectation from recruiters and HR services. In order to pass the screening tests, sometimes applicant must have demonstrated skills to save the world, and have proven track records of having done so. 3 times. I read this linkedin blog entry a few days ago where it was said that in order to be considered worthy of an interview, the applicant must show how much of a difference he brought in his previous job. This is completely silly. Not everyone can claim to have raised the company income by 235% by successfully reorganising from scratch the workflow of the engineering team. I am only slightly exagerating. Maybe that's just me taking things too literally. Or maybe I suck at what I do, but everywhere I worked, success was more the result of good teamwork than of the efforts of one single person. Yet simply stating that one is a good team player is not enough.

Yeah, everyone can say: I am a good team player. And every HR can say: Our company provides the best working environment. Hypocrisy on either sides leads nowhere, but it seems like it's still the expected standard.

I think that a linkedin profile can be enough. And if the profile isn't publicly accessible, there might be a good reason: privacy. So why not simply ask? At least it would show that the application is being processed. Or perhaps there's an option somewhere on Linkedin which let a user directly grant access to his profile to people handling job offers when they apply, and you just rant about those not seeing that option.

Re:Lockitron exceeds $2,000,000 in reservations on Thursday October 25, 2012 @08:51PM (#4700343)
>think bags of groceries in both hands and you forgot to preunlock

If you've got both your hands busy, whichever keylock system is on your door is irrelevant. Only a voice activation system would be Ok.

Re:UsesThis: Rob Pike on Thursday October 25, 2012 @07:16AM (#4697150)
Or you could have a login system on the phone to get access to remote storage.

Stealing phones wouldn't be an issue anymore, except for people using trivial passwords, or writing their password on the phone.

Re:UsesThis: Rob Pike on Thursday October 25, 2012 @07:13AM (#4697142)
Great! How does a novice like me get his system setup to work with C++, lisp, javascript, or PHP? Do I need to write my own plumbing? Is there repositories of conf files for acme/sam (at least to have some examples to get inspiration from)? I'd like to try.

I don't program in Go btw.

> Actually, it is. There are very few programs in the world where pipe throughput is not enough.

I am very surprised by this. I always thought that programs made of threads were much faster than groups of processi, which have to communicate through OS channels, rather than a common memory space. Maybe I wasn't considering the fact that interactive programs have a lot of time to spare.

Usually, I expect my interactive programs to be snappy when I ask them something, even if I don't do it often at the CPU timescale. That's the real catch in user interaction.

Re:UsesThis: Rob Pike on Wednesday October 24, 2012 @08:29PM (#4695752)
I mean for instance changing the name of a value across multiple files, or fixing calls of a function whose prototype had been modified. That sort of things.

There are other services that an IDE can provide:

- name completion

- list of variables in current scope

- list of visible types

- access to documentation

- code annotation

All these could be implemented in external tools, but how snappy would the interface be?

The filter paradigm of Unix is great for batch processing, but fails when used interactively, unless processi are lightened to the point of becoming almost like threads within the same process, and with the matching communication speed (inter process communication using pipes isn't really that fast compared to shared memory).

That said, maybe large scale programs are the problem to begin with. With simple, one task focused programs, source code becomes easy to maintain without resorting to the services I listed above. It's not easy to get rid of them though (consider compilers for instance).

Re:UsesThis: Rob Pike on Wednesday October 24, 2012 @08:11PM (#4695682)
The issues you're describing has been solved by cellphones, but it doesn't mean it was the only solution. More payphones, more reliable phone cards (in France we use smartcards for that) would have done the trick.
Re:UsesThis: Rob Pike on Wednesday October 24, 2012 @09:38AM (#4692860)
Personally, I switched to a tiled WM because I didn't want to go back and forth between keyboard and mouse all the time. I want an editor which I can handle using keyboard alone, and only use the mouse when I really have to (web, drawing, games - perhaps I should use a trackball). Acme relies too much on the mouse for me, but I like the idea a lot.

There's another couple of issues: syntax highlighting, large scale refactoring (which is not easy either with vi or emacs atm).

However, once you get accustomed to a certain workflow, it becomes difficult to accept something new. Maybe I should give it a shot.

Re:UsesThis: Rob Pike on Wednesday October 24, 2012 @09:31AM (#4692833)
That's interesting, but what would be the alternative?

Rob Pike's dream setup "is a computing world where I don't have to carry at least three computers - laptop, tablet, phone, not even counting cameras and iPod and other oddments - around with me in order to function in the modern world. The world should provide me my computing environment and maintain it for me and make it available everywhere. If this were done right, my life would become much simpler and so could yours."

In this situation, there would be public phones, public computers available in sufficient quantity everywhere. Think of the necessary amount of work to install, maintain, and upgrade such a setup. In a capitalist society, there would be different brands providing access to their own solutions, and thus a lot of Blackberry, Apple, or <your favorite carrier> kiosks all over the place.

You could think that with such a scheme, costs would prohibit a rapid evolution of services, as we witness them in current business models. Would we get the iKiosks updated each year with new firmware, or the latest multitouch screens? In comparison, how much money is being poured by individuals in upgrades for their personal stuff? What is the overall cost (i.e. money that could be spent on something else).

There's the real estate issue also. How much space would be consumed by those kiosks, and how much would it cost?

It would be interesting to estimate all the pros and cons of that dream setup, and compare it with our current situation.

Re:UsesThis: Rob Pike on Wednesday October 24, 2012 @08:41AM (#4692620)
What is better now with cellphones than before? Why is personal communication so much better now that we can be reached anywhere? I think it's a legitimate question.

In most cases, people indeed want to be reachable, but is it really a good thing? In the long run, does it make the society a better place, and people better people? How can we measure the impact of the cellphone on society?

Re:Ubuntu 12.10 Now Available on Sunday October 21, 2012 @10:13AM (#4679737)
XMonad is really great, provided you're willing to spend some time learning Haskell to configure it, which isn't a trivial task. It's in my book a very rewarding experience.
Re:PHP Annotations Are a Horrible Idea on Sunday October 21, 2012 @05:01AM (#4679313)
It's noise in disguise to me: filler to make it look like he has more arguments than he really has.
Re:PHP Annotations Are a Horrible Idea on Wednesday October 17, 2012 @04:02PM (#4666151)
Actually, no. What I have now is comment blocks which may contain normal annotations and escaped ones. There's no need to go deeper in meta-meta-something.

Regarding the comment inside comment system, if it were possible to have nested comments, it wouldn't be a problem anymore :). Since it's a Symfony convention, one could simply count the number of stars at the beginning of a comment line to know the meta-comment depth level. BTW, I know that you are being sarcastic here.

Anyway, this is beside the original problem. Annotations in comments are a problem, granted, but somewhat limited. It's easier and faster for a parser to look for comments and then annotations in them, rather than parse the whole PHP grammar augmented with annotations. Especially in PHP.

Re:How can we avoid eating hacked (genetically modified) food? on Wednesday October 17, 2012 @01:52PM (#4665651)
There are different kinds of death, and the ones mentioned in that study are not really the kind I would like to go through.
Re:Would you go? on Wednesday October 17, 2012 @01:50PM (#4665643)
Well, You're still young, that's a plus. You mention your project (in your company I assume), which seems to mean quite a bit for you. Besides leaving your friends, that's another point worth considering. Is this project close to completion?

Quite honestly, you're the only one really able to answer your question. If you don't have much to loose, and a lot to gain, you should go for it. Being young means that you can afford to lose a bit of time in that sort of experiment, and that you probably didn't invest a lot in settling where you are. At some point later in your life, unless you are really successful (or if your job allows it), the world will expect you to settle somewhere, because it gets harder and harder to do it as one get older (think savings, relationships, building a family).

Re:PHP Annotations Are a Horrible Idea on Wednesday October 17, 2012 @12:42PM (#4665286)
Some people may not be familiar with C macros, and an example could help grasp the problem you're talking about.

You could have pointed out all the things that are done in the C obfuscation code contests, to illustrate your point, but maybe this is silly. Also, you start your point from the spaghetti code hell that C macros let people fall into (I guess you where thinking about #ifdef conditionals), but I don't see how annotations could generate that problem. Imho, your point is flawed.

C macros are useful, and when not misleadingly used, very effective at abstracting things in order to get the important structures apparent. That is what annotations attempt to provide. Regarding PHP annotations, the problem here is that it's difficult and time consuming to parse a PHP script, whereas comments are an easy target. SensioLabs went the easy road, perhaps also in the hope that someday annotations would find their way in PHP, and people would just have to remove the comments around them to be compliant.

Re:PHP Annotations Are a Horrible Idea on Wednesday October 17, 2012 @12:04PM (#4665042)
Indeed, but what if you don't? I'm not saying that intuition is bad. I'm saying that intuition is bad when trying to make a reasonable point.
Re:PHP Annotations Are a Horrible Idea on Wednesday October 17, 2012 @10:37AM (#4664619)
verbosity.
Re:PHP Annotations Are a Horrible Idea on Wednesday October 17, 2012 @10:37AM (#4664616)
Some people don't like 4 space indentations, some don't like using tabs, and in most cases there's just an icky feeling behind it. Who's right?

In your own post, you give a reason for why you think (and not feel) it is wrong, and that's the right way to do. Icky feelings aren't. Maybe people saying that it feels wrong are crossing a line too?

Re:PHP Annotations Are a Horrible Idea on Wednesday October 17, 2012 @10:17AM (#4664507)
give us a pointer to an example please.
Re:PHP Annotations Are a Horrible Idea on Wednesday October 17, 2012 @10:14AM (#4664492)
by escaping them?

Some annotations are meant to affect the code, some aren't. Those who do and need to be given as pure comments need to be escaped.

Re:Would you go? on Monday October 15, 2012 @07:08AM (#4654536)
depends. What other side of the world would it be? How old are you? What will it cost you to move back if it fails? Do you have that contingency plan ready? Your career prospects after that experience will be impacted by how this experience will turn out, but overall I think it should be positive, because it shows you are ready to try new things, and you are not afraid to take some risks. However, you should talk about this with several HR people to understand exactly the consequences.

Your friends don't want you to go because of the bounds you have with them, obviously, but I'm sure they'll support you if you choose to go, but remember to keep thoose bounds alive, it's essential.

Re:Oracles x86 Reference Manual (AT&T syntax) on Tuesday October 09, 2012 @07:37PM (#4634436)
It is very useful, thanks!
Why worry about this? There is no scientific evidence that "genetic modification" (the new kind, rather than the kind of genetic modification that has always been done by breeding) poses any health risks whatsoever.

Search for "french study GMO" on google. Most scientific testings on GMOs aren't done on period long enough to be significant.

A recent submission to HN based on very reliable statistics pointed out that life expectancy in the United States at birth, at age 40, at age 60, at age 65, and even at age 80 has been steadily RISING

This isn't evidence that GMOs are healthy, only that other factors are overriding GMOs effects.

since 1960, so new foodstuffs introduced since then based on GMO science so far don't seem to have net harm for the population in balance with all other social and environmental changes since then.

It doesn't mean that we should let people eat GMOs. Hard drugs (like heroin, cocain, etc) represent a minor cause of death too.

I think that twig got its root in the django templating engine (which is python based), because of the resemblance. It's very good indeed. I'm not sure if the original had support for filters though.
PHP followed a very uncommon path. Features were added as needed, in an incremental fashion. Nice syntax is never a huge problem, though that's probably most people complaint. That said, it isn't worse than its "contenders" in terms of feature set. You get a decent object system, lambdas (note that they'd been there for a long time, but it's more convenient now), a wide range of bindings. It's not pretty, but it does the job in many cases.

But, anyway, if you're really looking for a good language (something efficient, where you don't have to spend hours to spot a stupid bug), skip the dynamic ones altogether, and go for as much static analysis you can get.

The strong selling point of PHP for a long time was cheap hosting. Combine that with a fast learning curve and you're set.

Nowadays, it's not so clear cut price wise, but PHP took a strong advance in term of user base - look at the number of libraries, projects, and jobs (!) available in PHP, vs python or ruby.

Re:Stylish HackerNews on Thursday September 27, 2012 @01:21PM (#4581714)
I prefer the compact view of HN. Style is really just a matter of taste though.
Re:John Carmack on Static Code Analysis on Wednesday September 19, 2012 @07:29PM (#4546099)
For having extensively programmed using C++ and OCaml, I could not agree more.

The issues that most people focus on however are : portability to the platforms they're concerned about, performances on these platforms, richness of the ecosystem.

Game programmers cannot consider Haskell or OCaml as real alternatives to C++ for these reasons. Yet.

That said, people learning to use these languages become better programmers overall. They get a better sense of how to structure, validate their data, and avoid a lot of pitfalls. Have look at the answer made by a representative of one of the products mentioned by J.Carmack - she goes through some of the reflexes she acquired while using her product, and there's definitely an overlap with the way people code using Haskell or ML. It's not an accident that C++ is moving toward incorporating features from functional languages.

Just for these reasons alone people should learn to code with languages like that.

Re:Actually, you don't understand lexical scope on Tuesday September 18, 2012 @09:01AM (#4537716)
That's a misunderstanding it seems. The real meaning is that "under the hood, it's javascript", and not "it's like javascript". People read "It's just Javascript", and jump to the second meaning, without thinking of the first, but the rest of the text is pretty explicit.
Re:Red Hat's new patent counterclaim: GPL violation on Tuesday September 18, 2012 @08:58AM (#4537694)
Yeah, I thought so, but the play on word was nice, given that they waited for Red Hat to acquire the tech.

Older »