HNHacker News
TopNewBestAskShowJobs

ceronman

2,861 karma · joined January 27, 2011

Programmer
submissionscomments
ceronman··on A Method I’ve Used to Eliminate Bad Tech Hires
This is a great way of hiring, but unfortunately it doesn't fit in all scenarios.

First, this model alone doesn't scale. Big companies interview hundreds of candidates every week. It's not possible to design and evaluate a weekend project for each one of them. This doesn't mean that they can't have projects, but early filters are needed. That leads to the classic phone and F2F interviews to rule out those who can't code. If you freeze in one of those because of the pressure, you're out.

Second, for simple developer positions, such weekend projects might be very good. But if you are trying to hire a senior developer who is going to solve problems at big scale, then the ability to create a simple movie catalog doesn't tell you anything. And there are no big scale weekend projects. You have to ask about algorithms, data structures and other CS topics. These things are important!

Bottom line, this is a nice hiring technique suitable for small companies at a small scale. But it might not be that useful for big companies.

ceronman··on Step-by-step tutorial to build a modern JavaScript stack from scratch
Java is no less complex indeed. I'm just starting to use its ecosystem and I definitely think it has a lot of complexity.

But there are other tools that are much simpler. One example is the Dart programming language. I know it's not very popular here in HN land, but the experience is really really nice. You have a fast, powerful, concise, sane and optionally static typed language with awesome tooling (debugging, introspection, profiling, package management) and great support from Google. All this comes in a single easy to use installer. The only extra thing that you might need to download is a plugin for your favorite editor or IDE. Dart, of course, doesn't enjoy all the hype that the JS ecosystem has, but the barrier of entry is really low, and the tools are extremely polished, stable and very production ready. I recommend anyone who is not scared of leaving the hype train to give it a try.

ceronman··on Nintendo Switch – New Video Game System [video]
I honestly don't care too much if the graphical power is not up to PS4 or XBox One. Probably doesn't because of the mobile capabilities. If there are great games it doesn't really matter if they are hyper realistic. We saw that with the Wii.
ceronman··on Be Kind
I disagree. I work for a big company with a big product that shouldn't have a single minute of downtime. We let new devs deploy to production from day 1. We have ways of mitigating the risks, like a very sophisticated monitoring and the ability to rollback changes in seconds. Yes we sometimes have outages, and we lose money. But in our experience, empowering developers is much more effective than handcuffing them. They learn to be careful and freedom allows for creativity to flourish resulting in amazing solutions.
ceronman··on The Nobel Peace Prize 2016: Juan Manuel Santos
No, I'm taking about territories that were attacked by the guerrilla. Like Toribio Cauca, that got more than 600 guerrilla attacks since the 80s. 81% of them voted yes to peace treaty.
ceronman··on The Nobel Peace Prize 2016: Juan Manuel Santos
You are not well informed. In Colombia the majority of the victims of the conflict support the peace process. You can easily see it in the map of how the people voted and you’ll notice that those territories where the war was actually fought got the big majority of the votes supporting the peace treaty.

The process didn't legalize the crimes nor allow the guerrilla to keep their drug dealing money. That's just FUD. The kind of FUD that made uninformed people vote no.

Uribe fought the guerrilla fiercely, but he did it by getting alliances with paramilitary groups that were even worse than the guerrilla.

The peace treaty is not perfect, and yes, there were some concessions made to the guerrilla. Like the possibility to have 10 out of 270 positions in the congress even if they didn’t get the votes, but only for two periods. It’s not easy to negotiate after 50 years of crude war, but all the lives saved with it are completely worth it.

ceronman··on TypeScript Seals My Penchant for JavaScript
I am a Python fan and I'm not a huge fan of JavaScript, but I do understand why many people love using JavaScript/TypeScript:

1. It's available in the Browser which opens a lot of possibilities. Yes, there are transpilers for other languages but it's not the same.

2. On the server side is really fast. In fact JavaScript is one of the fastest dynamic languages out there. Much better performance than Python (even with PyPy), Ruby or Perl.

3. With TypeScript you get amazing IDE support. Which is something that you just don't have with Ruby, Python or Perl. Yes, I'm aware of PyCharm, but it's not up to the things that you can do with VS and TypeScript.

4. I know the language has some design mistakes, especially around operators and other few things. But in the end the language is small enough and simple enough that it's easy to learn. And it's also easy to learn how to avoid the pitfalls of the language as well. So in the end that's not much of a problem. Besides that, even when the language is simple, it's still quite powerful because of its dynamicity, closures and prototype oriented programming. In the end you can be as concise as you are with Ruby, Python or Perl.

ceronman··on Announcing TypeScript 2.0
If you implement TypeScript as a Babel plugin, you would likely lose all the superb IDE support that TypeScript has. Which is one of the major selling points of TypeScript IMO. When your language is unstable like in a typical Babel setup, any number of features might be on or off, the static analysis done by IDEs becomes almost impossible. Performance would be affected too.
ceronman··on PyPy gets funding from Mozilla for Python 3.5 support
These are fantastic news. Right now, PyPy is probable the biggest reason why many users don't migrate to Python 3 yet. Python 3 comes with a lot of very nice language features, but even when CPython 3 is already faster than 2.x in most cases, these speed increments are very small compared with the speedups of PyPy, which in my experience brings Python's speed to NodeJS level. I'm looking forward for their first release!
ceronman··on Purely Functional Retrogames (2008)
Yeah, I know you can develop games in a purely functional fashion. My point what is the advantage of doing so, given that most resources are developed for an imperative way. I think the interactive approach taken by Elm is a very good advantage of FP for games.
ceronman··on Purely Functional Retrogames (2008)
> An open question is "Is being purely functional, even excepting I/O, worthwhile?" Or is it, as was suggested to me via email earlier this year, the equivalent of writing a novel without using the letter 'e'?

This is a great question. I've been playing with pure functional programming, and I also noticed that applying it to video games is very hard. In other areas, FP provides many advantages such as testability and safe parallel execution. But for simple games these are not that useful. Simple games seem very well suited for the imperative, global state model.

There is one aspect that might make FP worth it for games and it's interactive programming. The immediate feedback loop described by Bret Victor [1], with the possibility of going back and forth in time is easier to achieve with a pure functional approach.

The Elm debugger [2] is an implementation of this concept, using hot swapping and functional reactive programming it's possible to design games interactively in a very unique way that it's hardly achieved with the traditional imperative approach.

[1] https://www.youtube.com/watch?v=PUv66718DII [2] http://debug.elm-lang.org/

ceronman··on Interview with Larry Wall
Of course not. Many Pythonic idioms don't really work well in Perl. I have tried to write perlish code.
ceronman··on Interview with Larry Wall
I find hard to think of a single positive thing of contexts in Perl. For me, this is one of the worst aspects of the language (along with references) because is really confusing and it doesn't provide any benefit at all, i.e. there is nothing that you can do with contexts that you can't do in a better way without them.
ceronman··on Interview with Larry Wall
I have been using Perl for the last 3.5 years (for work). Before that I used Python for 8 years. For the vast majority of things Python is better. Perl programmers tend to say that the language is more powerful and allow for shorter programs, but in my experience, when writing the same program in Perl and Python, the later is more concise. There are some Perl features that save you keystrokes, for example, autovivification, but in the long run those are a lot of trouble. Also, it's really hard to learn to use Perl properly, it's full of inconsistencies and antipatterns, it's so easy to write bad code with it. Python is much simpler, consistent and with less corner cases. Python features (e.g. iteration protocol) seem more elegant to me. Perl features feel really hacky, they work, but they're rarely orthogonal and usually have surprising side effects.

One aspect where Perl still kickass is for writing shell scripts. Running commands, interacting with the filesystem and other tools is so easy. Once you know Perl, you rarely use bash, sed, grep or awk.

ceronman··on Announcing TypeScript 2.0 Beta
Being realistic, it might take more than a decade to see a standard EcmaScript version with type annotations available in all major browsers. Until then, transpiling is the only choice. So I don't think diverging from the (possible) standard is too bad. We don't know how the state of web development will be at that time, and probably the standar won't ever catch up with TypeScript and transpiling will be required for quite a long time until something like WebAssembly really takes off.
ceronman··on Python 3 Is Winning Library Developer Support
This is true, but currently, most of developers of Python acknowledge some mistakes in the Python 3 transition. Specifically the fact that such an abrupt compatibility break was underestimated. And that's why Python 4 won't break compatibility with Python 3.

In any case, I'm very happy to see the Python 3 transition moving forward. And let's hope this does not happen again.

ceronman··on This is the most depressing chart in the world
For the industrialized world, yes, this sounds reasonable. But bear in mind that the biggest portion of the world still has alarming poverty rates. Those need growth.
ceronman··on Python 3 comes to Scrapy
The breakup between Python 2 and 3 has been very slow and painful. Python devs know that, and that's why they won't break compatibility in such big and drastic way ever again.

I'm glad that we're starting to see light at the end of the tunnel. I find myself using Python 3 in most of my projects. Some times I still have to resort to Python 2 when some dependency is not ready but those cases are more rare every day. Also it's frustrating to use Python 2 when many cool features are now Python 3 only. It will take some more time, but I'm sure that the transition will eventually be completed.

ceronman··on Why Perl 6 is Different (2010)
I've in fact been playing with Perl 6. First a year ago, and then again when it was released. I've found and reported bugs. And I do think it has very powerful features. But hell it's hard to learn and very complex in my opinion.
ceronman··on Why Perl 6 is Different (2010)
> Perl 6 is Lisp with a perly syntax

Lisp syntax is super simple. But this simple syntax can hide an enormous complexity. Metaprogramming is complex. Lisp is so powerful, but it's not so widely used as other languages because of this complexity.

Now, Perl 6 claims to have the same power as lisp, only that instead of using a simple syntax, it is using a complex one, and a complex way of modifying that syntax. This is complexity wrapped in more complexity.

I'm sorry but I don't think Perl 6 will ever be a very widely used programming language as its predecessor was. It might however amuse a small group of hackers who want to test new ideas in programming languages.

ceronman··on U.S., Colombian sunken treasure dispute may soon play out at sea
> Well Columbia can likely be sued in a US court and they will have interests here as well. This is still one of the examples where governments simply rely on their existence and threat of action to violate agreements that they make or in this case, possibly steal.

SSA already sued Colombia in US courts twice and lost. https://en.wikipedia.org/wiki/Spanish_galleon_San_Jos%C3%A9

ceronman··on 0.30000000000000004
Recommended watch: "Demystifying Floating Point" by John Farrier at CppCon 2015.

https://www.youtube.com/watch?v=k12BJGSc2Nc

ceronman··on Please don't use Slack for FOSS projects
Slack is awesome. It's way better than IRC in many ways. But I agree with the OP. Please don't use it for FOSS projects, use it for your company or other private use cases. But FOSS projects an communities require open tools. Slack won't save your history unless you pay for the service. The pricing is per user which makes it very bad for a FOSS community.
ceronman··on CBCrypt: Encrypt from the client rather than send passwords to servers
The main problem this project is trying to mitigate is the password reuse. If user A uses the same password for a lot of sites, a malicious person B is able to convince A to join a new service, like a cat photo sharing app or something like that. If A uses his/her same usual password, B automatically gets access to all A's accounts.

The way this project tries to solve the problem is by hashing the password from the client side so that sites never get the real password, but a hash instead. As other commenters have pointed out, this is not entirely effective because the attacker still can crack the hash. It just makes the problem more difficult depending on the size of the original password.

The real solution to this problem is to stop sharing password at all. Use a password manager for that purpose.

ceronman··on New Perl 6 Homepage
On of the examples in the main page is how to create a custom postfix operator using a weird unicode symbol. It doesn't get more perlish than that!
ceronman··on Perl secret operators and constants
The ones that I occasionally use:

0+ - venus - numification: When you really need a scalar value to be represented as a number and not as a string. Useful when you're generating JSON and you need the types to be correct.

@{[ ]} - baby cart - list string interpolation: This is very useful when you need to interpolate arbitrary expressions inside a list. Useful when you're generating an SQL query, for example:

  SELECT * FROM Office WHERE id IN (@{[ join(',', ('?') x @ids) ]})
!! - bang bang - boolean conversion: When you want to return a boolean value from a function, but you don't want to leak implementation details.

,=> - winking fat comma - non-stringifying fat comma When you want to create a hash whose keys are constants.

ceronman··on Goto in Python
Because it's a fun exercise to understand the internals of CPython. That's what hacking is all about.
ceronman··on 400 days of Go
I think his point is that writing Go with a simple editor is just fine. Some languages are a pain to write without an IDE.

On the other hand, I'm with you on the fact that not having a good IDE is actually a bad thing. If you want to code with a single editor, that's fine, but IDEs boost productivity a lot once you learn how to use them. Not having a proper IDE is a minus for a language in my opinion.

ceronman··on Python 3.5.0
So far, this is my favorite 3.x release. Typing annotations, async/await, unpacking generalizations. Lots of cool new features. Too bad that PEP0498[1] didn't make it in this release, we'll have to wait for 3.6.

[1] https://www.python.org/dev/peps/pep-0498/

ceronman··on The JavaScript Misdirection Contest
I think you're missing the point of the contest. This is not about cryptography. The key generation is just an excuse. The fact that you can detect a connection with DevTools is irrelevant. The idea is too write code that is clean, readable, and innocent looking, but does something "malicious". It's just about having fun obfuscating code, not to write the next exploit.
← PreviousPage 6 of 9Next →