My GF learned to code in 3 months. This is what she came up with.
nukaco.la
nukaco.la
From my own anecdote: I had an interviewer ask me about something I had listed in my resume (but not related to the job position). It made for good conversation and allowed them insight that they otherwise wouldn't have seen with a straight technical question.
Edit: Hopefully I didn't go off topic with my comment, but I also think the graphic indicator was a clever and very straightforward way of expressing experience level. It just doesn't seem very space efficient if on a paper resume.
I've been working with each of those for ~6 years and I'd still only put myself at a 4 and if I was being generous. It's funny the longer you work with something the more you realize how little you understand it. I probably would have put myself at a 2/5 in those categories 5 years ago, but looking back, I'd rate myself at 1/5 instead.
Indicators for that state of mind are actually fairly easy to spot, e.g. when you see someone quoting it without any further justification.
My point was 2 months in JS != 40% knowledge of JS. If that came across as pedantic, I apologize.
Using a frequency-weighted metric, I would say that I'm 70-95% fluent (unknown unknowns make it hard to get confidence in a number) in my best languages, but I'm not an expert in any of them (and I'd only rate myself 3-3.5 on a 5-point scale, because percentage fluency on first-order concepts isn't the only important thing). I don't think it's hard to get to that point. Getting those last few percentage points is much harder.
Particularly, if you're using a language like Haskell or Ocaml, it helps to have at least a vague idea of what a functor actually is and where the idea comes from. (I actually only realized that functors were actually similar ideas in both languages a couple days back.)
On the other hand, if you're using a language like JavaScript, understanding the history (especially the languages that influenced it) makes understanding some of the "quirks" much simpler. When you see the influence of Scheme, the scoping suddenly makes much more sense, for example.
So, over all, I think understanding the background of a language really helps for complete mastery.
I could not agree more! Understanding the significance of particular keywords is quite important when failing to do so will affect your ability to successfully use the language. I distinguish that from my argument, which I premised on such knowledge not affecting one's ability to successfully use the language.
I think most places are not like google where if you say 4 it means you invented the language.
After they answer I ask what they learned last to raise their knowledge along their scale, what they're learning now to try to grow further (if anything, sometimes you're just executing not learning,) and if the candidate is applying for Senior Software Engineer or higher what "gotchas" they typically look for in a junior coworker/employee that would be rated lower on their scale (during a code review, for example.)
I usually get really thoughtful answers and gather a lot of insight about the candidates mastery of the language, mentoring and overall thought process.
It would be great to have a standardized rating system based on a few different tiers wrt a language/framework/etc.:
1 - Wrote some really basic code in the language
...
5 - Wrote some really, really advanced code in the languageAt one job I ended up having a lot of work writing language bindings from C to what is commonly considered a "scripting language" (TCL), so it's easy to have to deal with memory management and low level systems knowledge in relation to a scripting language (knowing the semantics of memory management within a language drastically changes how you have to write the bindings). However, the idea is to rate your skill with that particular language. No matter what the most advanced state is of a language, a 5/5 (or whatever the scale is) means that you can accomplish the most advanced task possible in the language. That doesn't mean that someone who is, say, 5/5 in Perl, will have the same skillset and capabilities as someone who is a 5/5 in AT&T syntax assembler. However, there are a list of base assumptions of skills they do have that may align with what we need as a developer when looking at resumes.
I appreciate your sympathy. I have no problem with people who are born into scripting languages. Personally I started with C, C++ and worked on few scripting languages. My question came from more of curiosity. There is more learning curve in low-level languages because the very structure of your code can affect the memory foot-print of your programs and that requires careful crafting of data-structures and algorithms. At a scripting language level you are in a virtual "world". It does allows you to SOLVE pretty advanced problems but it does not necessarily translate into your expertise in the scripting language itself. For example, I might use Ruby to create true AI system but in the end its the algorithm that mattered not my knowledge of the language.
While that can work, they miss out on all the cool and more advanced stuff these languages has to offer.
There are thousands of other examples. Managing memory and low level system is not the difficult part, it's just tedious - algorithms and mapping a problem correctly is the difficult part.
(available as a free pdf now)
http://hop.perl.plover.com/book/
Edit:
Here's the TOC:
1) Recursion and callbacks
2) Dispatch tables
3) Caching and memoization
4) Iterators
5) From recursion to iterators
6) Infinite streams
7) Higher-order functions and currying
8) Parsing
9) Declarative programmingI will take your comment at face value and will answer accordingly.
First, here's a direct answer to your question: take a look at [0], and you will se an example use of metaprogramming.
In this file ModelBase is a metaclass, which is used to create new classes at runtime.
[0] https://github.com/django/django/blob/master/django/db/model...
Also, you may have to reevaluate your definition of a scripting language. I will try to guess as to what it could mean to you currently:
A script language is interpreted, a non-script language is compiled
First we have to define interpreted as it could mean many things itself. The most restrained vision of interpreted is a language that would take one line (or enough to form an understandable command), eval() it (which means parsing the line, executing it and changing some internal state) and then proceed to the next one. There's a second case, there are languages that parse the whole content into an tree (precisely an AST) and proceed at evaluating it. A compiled language will have to first parse the code into an AST, then proceed in transforming each node of the tree into a set of smaller instructions, then encoded as bytes. The resulting bytes are called bytecodes and they can be either native or executed on a virtual machine (which translates them to native bytecode). Fewer and fewer languages falls in the first case; PHP3-, older JavaScript, Perl 5 and Ruby 1.8 (MRI) in the second one; PHP4+, Perl 6, Python, Ruby 1.9 (YARV), modern JavaScript, Java, C# in the last one with a VM; C, C++, D, Go and Objective-C in the last one as native code. A script language has limited tools, a non-script language has a sizable standard library
Take for example (ba)sh: it is really a glue language that controls flow and calls external programs. Those are called shells. As convenience and for performance, shells often include in their own code implementations of previously or current external programs (e.g test, aliased to [) or allow to control or use features specific to the shell. Those are called builtins.Now you can compare the size of the C/C++ sdtlib and e.g Python, Ruby or Java. The latter ones are an order of magnitude bigger than standard C and C++.
A script language has no external library facilities, a non-script language has third party library facilities
The only thing resembling library features of bash are sourcing an external file and executing external program (which is native enough to extend the language itself since command-calling is first-class in shell languages). On the contrary python has extremely advanced library facilities called modules and packages, which create namespaces that you can selectively import. Ruby is simpler and arguably less advanced as it relies on a 'require' and a 'load' function that will trigger loading and interpretation of a file, while namespacing lies in the hand of the developer who manually nests classes and modules. This is similar to the 'source' feature of bash, but also of the #include preprocessor directive of C, which is not even really part of the compiler and literally stitches the content of a file into another. Usually this #import is done to include so-called header files that describe prototypes of function lying in a library. What's interesting there is that the library feature is actually not even part of the language, but of the infrastructure surrounding the compiler, and precisely the linker. Indeed compiling to native code results in object files which are totally independent of the actual language and totally dependent of ABI calling conventions (which is really unrelated to the language). This way you can link objects having been built from fortran or C, or C++, or whatever. So it turns out C #include is actually closer to bash 'source' in that regard, with the onus of library management being not on the compiler but on the linker. A script language has no types, a non-script language has types
Bash actually has types, precisely strings and arrays and it's up to each program to parse the strings into somethign meaningful. Now what you may be distinguishing there is weak typing vs strong typing. Let's take PHP, which when given "3"+2 spits 5 (or "5" I can't recall). Try that in C and you will get an error/warning/core dump (ironically '3'+2 in C would give both a warning and '5' because of ASCII and char really being bytes). Yet try that in python and ruby and you will get an error (an exception precisely). PHP is weak-typed and Python, C and Ruby are strong-typed.Now maybe that's because we're not declaring types and not having function/method signatures that makes it a scripting language. Really what's at play here is static vs dynamic typing. Python and Ruby are dynamically typed, while C is statically typed. But Objective-C is dynamically typed too.
A script language is used to write scripts
Maybe you encountered #!/bin/sh in scripts, and also #!/usr/bin/python and concluded 'Ha! They're scripting languages!'. Amusingly enough, it's quite easy to build a thin wrapper to gcc that will make it possible to start a file with #!/usr/bin/c and subsequently write code in C. Does that make C a scripting language? Maybe, but that makes it equally easy to make any language a scripting language. A script language is not written in itself, a non-script language is written in itself.
This is called self-hosting. You could argue that C is written in C, while Bash, Python and Ruby are written in C. Well too bad, as D is written in C, C# is written in C and C++, Java is written in C, and even g++, the C++ compiler is written in C. (for each one of course, part of their standard library is written in their own language). At the same time, Python has PyPy which is able to produce native code straight from Python code, and various other languages are self-hosted. Now you could argue that we're using C because of performance, but that's not even true, since PyPy regularly outperforms CPython. In fact we're only often using C because there has been a tremendous amount of work thrown into C compilers (notably regarding conversion of code to each native platform) so it's merely by convenience that we reuse them. A script language has no memory management, a non-script language is low-level
So, C and C++ have memory management, while Python does not. So much for Java and C#, which would become scripting language by that criteria. Also, as for low-level Python can use things like mmap and has ctypes which allows you to tap into system devices (via e.g /dev) and native functions (which, as mentioned above may or may not have been written in C, since at that point they're just native code respecting a convention allowing them to be called. If anything such code could have been generated by PyPy) like malloc and free, so you can go low-level in Python if you wish.So I think we have made quite a round-up of things, and hopefully enouch to demonstrate that well, while Python and Ruby are effectively able to be used (and quite efficiently so) to write scripts, they are clearly just not only "scripting languages", but full-blown, extremely advanced and potent programming languages.
The ability to modify the program at runtime (and elegantly) is a huge advantage over compiled ones and allows you to express new category of solutions. Programs that change itself is in my opinion pretty advanced.
So it seems, Python and Ruby allows the programmer to free the mind from the low-level housekeeping and focus 100% on logical thinking and give incredible expressiveness. I would buy that. I wonder how often an above average python/ruby programmer use its metaprogramming / reflection capabitlies?
Daily.
at the first level, you know enough to be able to look at existing code and have some idea what's going on. (this is me with C++.)
at the second level, you know enough to write new code with real functionality and have some chance of its working. (this is me with C.)
at the third level, you have a fairly thorough understanding of most parts of the language and know idioms, common pitfalls, etc., and can fix other people's code. (this is me with q, and it was me with java seven years ago when i was working in java.)
if you want to extend this, an extra level up could be "hack", where you contribute to the language itself--modify gcc or the python interpreter or whatever. (i aspire to get to this level in q, and i think i'm close.)
not sure how to wedge a fifth level into the system....
For example, what actually quantifies 1/5 of Ruby? And does a 5/5 rating mean you know absolutely everything about it? Is 1/5 of Ruby the same as 1/5 of Python, or soldering, or speaking Icelandic?
There's also no improvement from 5/5, but even a master of their craft will know there is always room for improvement and greater mastery.
That demo has a lot of javascript going on, and she rates that 2/5. I don't think that demo is trivial to implement, and on relative terms I can assume that she's more than just dabbled in Haskell and Python.
We know she's German, so she puts 5/5 in German language, as it's her native tongue. If that was the base, does that mean she's as fluent with Garageband and Logic as she is speaking?
I don't think skills are so easily quantifiable, and I'd much prefer to see a qualitative analysis of those skills. Otherwise, I'm just looking at a meaningless pattern of shaded boxes on a page.
I think the tricky bit would be making your intentions obvious.
I actually took a similar approach on my résumé: I broke my skills up into categories relative to each other rather than vying for some absolute quantification.
If I were hiring this person it would take less then 10 questions about one language to figure out where her competency is according to my scale and now (assuming she didn't fudge too much) about her competencies with others (some of which I may not know).
I'm sure many people are good (or could be good) at many unrelated activities. I had an idea of personal portfolio that would encompass all of my interests and work, too. But in the end I chose to market myself as “just” a programmer. Knowing about my proficiency in Logic or InDesign or playing piano won't help anyone looking for a programmer, and if by chance I rate my Python skill lower than InDesign or, say, OS X skill, I'm pretty sure it will turn away many paying clients.
I decided to go with discrete “brands” for various activities. Failing at that currently, though (hard to manage).
If this is true, we live in a truly depressing world. I don't understand the point of an interview any more. I sit down, lie to you for an hour, you Google the shit out of me, stalk me on Facebook. But if I tell you who I am honestly? Trash bin.
Why would you lie about yourself on an interview? An interested employer is unlikely to drop you because you are also proficient in, say, Final Cut.
The question is, how do you get to the interview?
It's simple: if a potential employer or client needs a Java programmer, they are likely to look for a “Java programmer”. Therefore, if you have a website that says “John Doe, Java programmer”, you seem more likely to get that job than if you only have a website about some John Doe that has Java listed somewhere among his multitude of skills.
Your website is probably made for other people. In that case, optimize it for other people. It seems easier for them when they can “classify” you. People who could appreciate your complex personality are your friends (and maybe family), but are they probably are outside the target audience of your website.
Thus is the case here. http://news.ycombinator.com/item?id=4050952
However, it's impressive for a first project. I hope you stick with it.
A few months ago I showed him a demo of my website (artJutsu.com WIP) and showed him the basics behind the code. I also showed him how to create a simple site. The dev site (on my laptop) has many different concepts that I'm still hammering out. To him it looks complex, so I told him that it doesn't have to be.
I gave him the following advice for why one does create a program. "Just think of a "simple" problem that you'd like to fix. It doesn't have to be super robust, or super smart, or super technical. Just try to solve this problem through an elegant interface."
For me, artJutsu (once I get the main part completed) will solve a variety of small problems. Yes, there are things in it that is very complicated, but that comes from research. We're in an amazing time as developers where we can access a rich array of resources just with a simple Google search. The great thing is, the simplest solution usually solves the problem just as well.
I always was the type of person that hated reading those coding books and doing lesson after lesson with very little getting done. For the most part, you don't really know WHY you need to know techniques and theory. Its just way too confusing. I find getting down and dirty building something teaches you a lot more. Theory is great, but what good is it if you don't know that you need to know it? I believe that getting your feet wet will enhance the traditional learning experience.
Anyway, after a month of coding, my friend has created a pretty good "list" site for his wife. He's at the point where its getting tough to maintain his code, but he loves it. The joy of creating a useful tool to solve a problem is what we thrive on.
I really doubt your classes were stupid and boring. Maybe you were the one who was stupid and boring :P
Edit: I should have included the URL for context: http://nukaco.la/maniac.html
edit: I'm having too much fun.
hacked!
She's clearly very technically capable - why not introduce the site on it's own merits?
Only if you are not Icelandic. :)
The only thing that bothers me is that I can't select text... A little unnerving, actually.
Congrats to her
I remember doing "something similar" in MSX Basic about 20 years ago =)