Live data from Hacker News

Learn X by Doing Y – A project-based learning search engine

aquadzn.github.io

41–50 of 53 posts

Re: Learn X by Doing Y – A project-based learning search engine

#41
post #19
post #15

Earlier quoted context omitted.

> high frequency trading Take a pile of money, burn it. Obviously I'm joking, but I would assume that the local nature of HFT basically means you have to be a big-gun to play without losing your money.

I'm not super concerned about losing money on a hobby project :P hard limit 1grand let it ride.

Do you mean simply algo trading? There is absolutely zero chance whatsoever that you will compete in any way with institutional hft.also with 1k what are you planning on trading without pdt and other restrictions?

Re: Learn X by Doing Y – A project-based learning search engine

#42
post #18

Maybe this is an opportunity to create a new kind of Show/Ask HN, called “Who’s got questions?” For example. I’m a self-described senior electron/react/iOS app dev and I have created exactly one API in my life using node/express/GraphQL/mongo/redis on heroku. It works great! I had a ton of fun learning and deploying and now maintaining. Now... I want to add some features such as long-running (30s-10m) batch jobs. How…

If you're talking about having periodic jobs to run you can use heroku's scheduler plugin and start a job. It will use a different dyno from the one running your api.

You will end up paying more, but you won't have problems with resources sharing.

In a traditional VPS environment you would have needed to have a machine beefy enough to run both api and jobs or spin up a new machine. Cron, Jenkins or another task runner could have achieved the same.

If you're talking about having long running requests initiated by users, a common pattern is to have a queue:

- User send a request

- API add request to a queue

- n workers wait for a queue message and process it once it arrives

Another simpler approach is to just spin another instance of the API and just forward long running requests to the new instance. Depending on the type of job, its dependencies, its frequency you may run into some problems that you wouldn't have with the queue based approach

Re: Learn X by Doing Y – A project-based learning search engine

#43
post #18

Maybe this is an opportunity to create a new kind of Show/Ask HN, called “Who’s got questions?” For example. I’m a self-described senior electron/react/iOS app dev and I have created exactly one API in my life using node/express/GraphQL/mongo/redis on heroku. It works great! I had a ton of fun learning and deploying and now maintaining. Now... I want to add some features such as long-running (30s-10m) batch jobs. How…

Use a queue. For example, a redis list. Then you can have scalable workers lpop to process the jobs and save the results somewhere. Would require 2 endpoints, one to schedule the job and one to fetch the results. You can generate a uuid to id each job.

Or you can use a managed queue service like SQS as well.

Re: Learn X by Doing Y – A project-based learning search engine

#44

I detected videos of Siraj Raval to learn deep learning. That make me doubt of the teaching quality of the site.

Can you elaborate? (I have no idea who he is)

as a reference: https://twitter.com/AndrewM_Webb/status/1183150368945049605

Re: Learn X by Doing Y – A project-based learning search engine

#46
post #35

This looks really cool. The thing that makes me sad is that there are way too many resources on stuff like React and python and not much material on stuff like webgl. I wanna learn webgl!! Where do i go

Here is a Udacity course using webgl: https://www.udacity.com/course/interactive-3d-graphics--cs29...

Here is the Class Central page with reviews: https://www.classcentral.com/course/udacity-interactive-3d-g... You can search for other courses on class central, though searching for webgl didn't actually find the Udacity course - had to look at related courses for a no longer available Coursera course listing that searching did find.

Edit: Also, Packt's free ebook of the day is currently Learn Three.js, which is a wrapper around webgl. Only available for the next 9 hours or so. If you don't have a packt subscription, you can only read it in a web browser. https://www.packtpub.com/free-learning

Re: Learn X by Doing Y – A project-based learning search engine

#47

Couldn't find any Arduino projects but i wanted to contribute. After a quick google search, I found this: https://create.arduino.cc/projecthub Which seems to be a narrower mindset of the OP's vision. Should i link that page or pick a couple projects?

just added the first 10 tutorials pages from this website

Re: Learn X by Doing Y – A project-based learning search engine

#48

My pet peeve: there are still many developer-oriented sites (including this site) that can't handle special characters in search. For example, searching for `C#` or `C++` returns C, C++, C# results.

I just added a parameter taking into account # and + for C# and C++. The results goes from 140 without to 27 and 111 with.

Re: Learn X by Doing Y – A project-based learning search engine

#50

My pet peeve: there are still many developer-oriented sites (including this site) that can't handle special characters in search. For example, searching for `C#` or `C++` returns C, C++, C# results.

Oh dear this is a pet peeve when I was searching for pirated video tutorials back then.
Post reply on HN