Hacker Newsnew | past | comments | ask | show | jobs | submit | more BiteCode_dev's commentslogin

Alternatively, just don't write an SPA. Write a regular site, with just the few interactive elements you need.

If you use react or vue, you can plug components precisely anywhere on the page, you don't need to take over the page entirely.

In fact, with vue, you can even put the template in the HTML directly, and just hook the logic on to it, angularjs v1 style.


> In fact, with vue, you can even put the template in the HTML directly, and just hook the logic on to it, angularjs v1 style.

That's what I do, I love the simplicity of it and how it lets you render html pages server side, with the added JS for interactivity.

Maybe not the cleanest architecture but extremely straightforward.


+1. I would even pay to watch you code this.


Didn’t know there was a market for coding session watchers. Let me know if someone’s interested in watch me slow-code my current long running side project: Focusly.


> Didn’t know there was a market for coding session watchers.

I think this is an actual niche on Twitch.


Unless the AI can talk tot the patient to get some context, it's going to be taking decisions with only very partial information, no matter how good it is.

Still, I'm thinking that as it improves, it's going to show that doctors are not that good at their job on average, and that's going to be fun to watch.


> Still, I'm thinking that as it improves, it's going to show that doctors are not that good at their job on average, and that's going to be fun to watch.

Medical AI is trained on labels generated by doctors. Can you explain how it will exceed the performance of doctors on average? Are you assuming that the labels will be generated by the "top x%" of doctors? If so, how will you identify those individuals? Or is there some other mechanism you're expecting to improve the performance?


Medical ML is not about making decisions but about informing decisions. It is a tool for the doctor, not a replacement.


I think AI should always be a support tool, but people are always talking about replacing doctors...

And a high volume if diverse quality data is fundamental: https://en.capillary.io/posts/ai-medical-diagnosis-guide/


>I think AI should always be a support tool, but people are always talking about replacing doctors...

Because Americans are trying to solve their healthcare crisis by attacking the doctors and literally not the entire rest of the industry which controls the spiraling healthcare costs. The end of result if we manage to eliminate doctors is still spiraling out of control healthcare.


That's what it should be, that's not how it's being sold, and how it's going to be used.

Just like for wikipedia.


Radiologists aren't talking to the patient either and don't have earlier scans available, they "just" comment on the image; so the doctor who does have the patient, their history and the radiology report(s) might as well receive the report from a ML system instead of a human radiologist.


That’s how it is in the US, and it’s terrible.

In other places, e.g. Mexico, India, the radiologist can very much be talking to the patient, and can have information from earlier scans.


For preserving comments, use redbaron: https://github.com/PyCQA/redbaron

It's lossless, besides, the API is much nicer.


This is a recurring joke with my brother. One day he was giving me an advice that was technically true but absolutely impossible to follow.

I told him: "You know how to win a race again Usain Bolt? Just run faster!".

Now we regularly use "just run faster" as a punchline.


I think my classmates in IT school learned much more from bypassing the network restrictions to play WoW in class than from the teachers themself.


Above all, it's much more usable now, especially with 3.10 around the corner:

- you can use list[] instead of typing.List[]. Same for dicts or sets.

- you will be able to use bool | str instead of typing.Union[bool, str]

- mypy has saner default, is better supported by IDE and is way faster

- a lot of edge cases are now covered, including protocols for duck typing, vartype, etc.

- fantastic libs such as pydantic, fastapi and typer make using them a ton of fun


That's basically how most modern frameworks do it.

Django-Rest-Framework does that with view + serializer + validators.

A more recent example, with a leaner and cooler implementation is FastAPI, where type hints are also use to declare validation on your end point, while a model is used for serializing the response.


A bit of a plug, but if you are using python in your project already, give a try to pydoit (pydoit.org/). It completely replaced make, task runners or build systems for me.

Pydoit is the sweet spot for most of my use cases:

- it scales up (graph of deps, file watcher, etc) but above all, it scales DOWN (simple stuff are dead simple)

- it promotes a declarative task definition

- it embraces the shell yet let you use python if you need to

- it gets out of your way and doesn't try to rule your project. It just runs what you want and disapear.

- the doc is nice

The biggest drawback is that you need to pip install it, which means non python devs will avoid it. I wish it was provided as an stand alone executable


a meta-plug is in order for pipx, then: https://pipxproject.github.io/pipx/

which wholly abstracts "pip install this thing that has an entry_point without hating your life."



Having to work with multi-language codebases cures one real fast of any interest in single-language build systems.

Still, make kinda sucks. I've yet to meet a build system that ticks these boxes: multi-language, simple, fast.


pydoit is not single language in the sense it limits your to tasks for your language. It's completely agnostic in that sense, and I use it for non python projects as well.

Even the fact it's using python to declare your tasks is not a problem: it's basically a function signature and a mapping, nothing you can't master in 5 minutes, and certainly simpler than make files DSL. Also easier to get right and debug.

The problem is the fact you need python to install it and run it, which non python dev will rightfully not care to do.




More details for those who are interested. The physics package is about the size of a grain of rice.

https://www.nist.gov/system/files/documents/2017/05/09/VCAT-...

Many teams around the world are actively developing improvements on this technology.

https://www.nist.gov/news-events/news/2019/05/nist-team-demo...


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

Search: