Better HN
topnewbestaskshowjobs
Log inSign up

romanovcode

2,849 karma · joined Oct 29, 2013 (13y ago) · 2,019 submissions

Submissions

comment 9y ago · link · parent

Because Etherium is altcoin while BTC is the main one.

comment 9y ago · link · parent

Node.js does the same on "standard" electron apps. What's your point here?

This could actually be faster since C# is faster language than Node.

comment 9y ago · link · parent

Steroids are one of the most used drugs in the world. It taken off pretty well.

comment 9y ago · link · parent

Still not as stupid as buying fidget spinners in bulk.

comment 9y ago · link · parent

All people who are owning Bitcoin are betting.

comment 9y ago · link · parent

Since Netflix fires employees who are unhappy I would like to hear the story from the other side as well, that is - from the unhappy fired employees.

comment 9y ago · link · parent

Cant't wait for 2020: Did you know about this new cool thing? Render websites in back-end and cache them. It's super fast and non-taxing on the browser. It's clearly the future fo web-development!

comment 9y ago · link · parent

Convenience.

comment 9y ago · link · parent

Should be pretty easy to migrate from ng2 to ng5.

comment 9y ago · link · parent

> Lack of compile-time checks for the template

While I agree that this is very annoying it will not compile using command below so your story about developer who introduces new bug does not check out.

    ng build --prod --aot # Error

comment 9y ago · link · parent

Actually that is exactly what I thought when they introduced RazorPages as well.

I really like .NET Core but this RazorPages is just single worst "improvement" for the .NET Core platform.

I even remember watching the presentation on BUILD conference and nobody applauded at this "feature" when they graciously introduced it and you could feel the cringe. Scott even had to say "Isn't this awesome!?? Come on!".

No, Scott, it's not awesome. It's going backwards.

comment 9y ago · link · parent

Go next level: Remove the whole browser and make a native application - gain even more performance!

comment 9y ago · link · parent

So basically they write React in front-end, then use react-renderer to generate static HTML and then serve it from back-end?

Seems like with this speed JS frameworks are going full-circle back to back-end rendering soon enough.

comment 9y ago · link · parent

I read the article and still don't get what Delphi does, I'm pretty sure they are not talking about programming language tho :)

comment 9y ago · link · parent

I don't think firing people is berating.

comment 9y ago · link · parent

If the point of the site is to find clients/recruiters/etc.. then you should scrap this idea.

While technically this is somewhat impressive nobody who this site is aimed at will type commands to see your work/cv/etc.. They will just close the tab and move on.

comment 9y ago · link · parent

> I'm not sure people understand quite the level of investment Apple puts into 1) quality-control

Is this suppose to be a joke or something? Hello from 2 weeks ago when password was saved as password hint on encrypted drives.

comment 9y ago · link · parent

What is a stage 5 clinger?

comment 9y ago · link · parent

Reminds me of the fishermen story, actually.

- http://paulocoelhoblog.com/2015/09/04/the-fisherman-and-the-...

comment 9y ago · link · parent

>they might be the next Google, minus the privacy concerns!

Communist until you get rich, atheist until your plane is crashing.

comment 9y ago · link · parent

No, it's not. Baltics got their independence in 1991 and they had to re-build a lot of infrastructure rendering it more modern.

comment 9y ago · link · parent

You are correct, but it is not because of concept itself but rather because of lazy implementations.

For example:

Back-end renders page and something crashes - you get 503 error and you know to refresh the page or contact support or w/e.

Shitty web-app loads multiple components via AJAX, doesn't even check for errors, some components do not load, you have no idea what the heck is happening so all you can do is inspect the JSON response in the devtools.

comment 9y ago · link · parent

> College college college college. Your 20s are when you figure out what you want to do.

This is ridiculous advice for someone who is in U.S. So you want him to get into a huge debt w/o even knowing what he wants to do?

OP, if you want to find what you want to do or just "find yourself" don't bother wasting money and time at college and just travel for 6 months to some remote place and live there with locals.

comment 9y ago · link · parent

I know that you can build twitter and tinder and getting the users is hard. But my point was very different -- People will probably need this for some internal tooling (devops) and it is simple enough to just build it on your own without paying someone or relying on 3rd party.

IMO there should be a line of what to outsource and what to build yourself. In my mind simple things like this go into second category.

comment 9y ago · link · parent

Yeah, like 15 minutes more. Ergo my original statement - 30 minutes. As a bonus I would also stream binary data directly to client without creating an image file.

comment 9y ago · link · parent

Took me around 15 minutes in total. Can I be CTO at your silicon valley company now with 500k salary?

    const express = require('express')
    const app = express()
    const puppeteer = require('puppeteer')
    const uuidv1 = require('uuid/v1')
    const fs = require('fs')
    const validUrl = require('valid-url')

    app.get('/', function (req, res) {
      (async () => {
        const url = req.query.url;

        if (!url) {
          return res.send({error: 'Need to specify url param e.g. ?url=https://google.com/'});
        }

        if (!validUrl.isUri(url)) { // Also protects against file://...
          return res.send({error: 'url not valid'})
        }

        const id = uuidv1();
        const browser = await puppeteer.launch();
        const page = await browser.newPage();
        await page.setViewport({ width: 1920, height: 1080})
            
        await page.goto(url)
        const buffer = await page.screenshot({path: id + '.png'})

        const fullPath = __dirname + '/' + id + '.png';

        res.sendFile(fullPath, function () {
          fs.unlink(fullPath)
        })

        await browser.close()
      })();
    })

    app.listen(3000, function () {
      console.log('Example app listening on port 3000!')
    })

comment 9y ago · link · parent

Yeah, you can implement this in-house for your needs in less then 30 minutes using 512mb DO droplet or other in-house devops tool server for free.

comment 9y ago · link · parent

Together, except for Apple that does not care.

comment 9y ago · link · parent

At office I have

- Air humidifier

- Boose QC35

- 27 inch 4k monitor

- Mechanical keyboard

- Gaming mouspad + gaming mouse

- Huge desk

I seriously don't get why would anyone go to coffee shops to work. Seems totally counter-intuitive to me.

Staring at 13 inch screen without mouse and using not-so-good keyboard seems just waste of my time. Not to mention small tables they have there.

comment 9y ago · link · parent

This is good however IMO if you need parallelism you should not use node period.
1
333435
68