Hacker News new | past | comments | ask | show | jobs | submit | tonyle's comments login

Someone non technical once told me they "programmed as well" and proceed to talk about planning and scheduling things.


Isn't this the connection to linear programming?


Now we can bring back html based applications using html and vbscript and jscript.

https://www.599cd.com/tips/hta/beginner/B1/


Simple continuation explanation for web developers.

  1. Write some JS code in chrome and verify expected behaviour.
  2. Add a debugger statement.
  3. When the debugger pops up, go down a few frames and add debug point.
  4. Right click the frame and select restart.
  5. In the new break point, write some code in the console to modify the state.
  6. When you step through the code, it now does something else.
Now imagine if the language allow you to do this programmatically in the code by passing the frame around as an argument similar to functions.

I leave the rest to imagination.


Suddenly prolog


Reminds me of Ira Glass's Quote.

http://www.goodreads.com/quotes/309485-nobody-tells-this-to-...

And for a different perspective. This was posted 5 days ago.

https://neilonsoftware.com/books/personality-patterns-of-pro...


Key takeaways.

1. Fingers are sensitive.

2. paper has a saw like edge.

3. paper cuts tears up skin so nerves are exposed to the world.

Not really a lot of substance to this article.

Speaking of saw like edge.... https://www.youtube.com/watch?v=rYfkhdKcEiE


4. No blood to make a scab, so pain receptors keep transmitting the pain signal.


This makes me wonder, does it help to make the cut a bit deeper then?


You're misrepresenting your point 3. The article talks about the kind of cuts that paper tends to make, and how it exposes nerves to the world differently than deeper cuts.


That video is awesome :D


Would be a great intro to a safety talk in shop class.


"paper cuting wood is wood cuting wood"


He also has a nice page on his github with lots of info on making stuff fast on node.

https://github.com/petkaantonov/bluebird/wiki/Optimization-k...


I don't get the obsession with benchmarking and making node "faster".

If you want your application to be blazing fast why pick relatively slow language like JS in the first place?


Sometimes programmers need to look at unusual files: binary files, very big files, odd data files. Epsilon was designed without the limits of other editors, so it can handle these kinds of jobs, as well as ordinary files. For example, with Epsilon, lines can be as long as you like.

This text editor gets it. Such a contrast to some of the editors we have today where anything over a few megabytes is an edge case not worth fixing.


Really? I loaded a 1.2GB ISO in the demo and it used… 1.2GB of RAM. (At least it worked though, coughAtomcough.) And more importantly it has no unicode support whatsoever as far as I can tell (any non-ASCII characters I typed showed up as ?).


> I loaded a 1.2GB ISO in the demo and it used… 1.2GB of RAM.

And what you expect here? Other editors usually take 2x to 3x of file size.


For massive text files, this is your friend: http://jujusoft.com/jujuedit/


mmap'd files.


mmap doesn't help much if you do syntax highlighting or other formatting.


Wouldn't a hex editor be a better choice for binary files and odd data files? Are there benefits besides the ability to handle large files and long lines?


There was some people talking about this issue in the support forums and their response was to stick with v2 until they sort out the issues.

They recently made a change with the node sdk recently so you don't need the apiKey for public access. Not sure about the web version, You would probably have to use the Browserify or something.

https://firebase.googleblog.com/2016/07/firebase-react-nativ...

That said, If I were you, I would stick with V2 sdk since I don't think hacker news has actually updated yet. An easier way is to just use the rest apis, That is still clearly working.

https://hacker-news.firebaseio.com/v0/item/8863.json


Ok, I thought that was probably the answer (stick with V2 for now) but I didn't want to build out on that and then have it discontinued, thank you!


I'm not sure when promises came to the javascript, but it seems weird that people would settle with callback hell for so long without even attempting to refactoring it.

I mean if I didn't have the option of using promises, I would have probably written something like this.

function handler(callback){

  var state={};

  function logic(step,err,data){  
    if(!step){
      connectToDb("somedatabase",logic.bind(state,1))
    }
    
    if(step==1){
      if(err) callback("error1")
      state.dbInstance=data
      state.dbInstance.query("someQuery",logic.bind(state,2))
    }
    
    if(step==2){
      if(err) callback("error2")
      csvExporter(data,logic.bind(state,3))
    }

    if(step==3){
      if(err) callback("error3")
      callback(data)
    }
  }
  logic()
}


That looks like a very similar pattern that I've seen commonly used in Go. It makes for very clear code and explicit error handling. I kind of like it for the clarity, even if it isn't "elegant" or concise.


Did you mean return callback("error1") etc? Forgetting the return is a classic bug when you're in callback hell...


Yeeeeep.

I think the example and your reply neatly illustrate the problem.


This is great. One of my biggest pain points when switching to OS X was finding a good replacement for autohotkey.


Touche. Autohotkey can do an awful lot with its custom scripting language, but access to Lua in there would be interesting.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: