Better HN
topnewbestaskshowjobs
Log inSign up

fullstackchris

742 karma · joined Feb 28, 2018 (8y ago) · 625 submissions

Owner of Full Stack Craft fullstackcraft.com

fullstackchris.at.hn

meet.hn/city/at-Feldkirch

Interests: Freelancing, Investment, Mobile Development, Open Source, Programming, Remote Work, Running, Startups, Technology, Travel, UI/UX Design, Web Development, Writing, Philosophy, Outdoor Activities, Hacking, Fintech, Cycling, DevOps

---

wonderfuldev_cn693xi6wq7203nxugqijvyc

Submissions

comment 5y ago · link · parent

Shameless self promotion, I did exactly that, blog post explains it:

https://chrisfrew.in/blog/converting-a-large-project-from-ja...

This method does have some caveats, but can get your a sort of starting point using TypeScript for any sized JavaScript project.

comment 5y ago · link · parent

And yet, the reality IS that 90% of the web is using legacy stuff - heck, even something like 50% of the web still has jQuery on it. (haven't checked the figure in a while, but I guess it is still close to that figure).

I think the true anger is that something so essential and basic to JS development has this giant breaking change if you want to switch over to ESM - there's no reverse compatibility or fallback - it just breaks.

comment 5y ago · link · parent

Did anyone hear NPR's reporting on this? They said the early study was originally halted BECAUSE of it's positive effects at preventing hospitalization and death... very weird, I hope it is a typo or I'm understanding it wrong...

comment 5y ago · link · parent

Curious here, as I may be involved in such an endeavor soon... any takeaways, best practices, would not recommend, etc.?

First major hurdle I'm anticipating while going through the go tutorial is that go doesn't have classes... that'll be fun.

545.

Ask HN: Do you have experience porting a .NET API to Go?

1 points · by fullstackchris · 5y ago · 1 comment

comment 5y ago · link · parent

I fail to see how this can actaully be used as an exploit. As some commenters have said, yes, it may be a risk to some open source tools where there is poor due diligence for merge request review process - but that is almost never the case.

Otherwise, if you own your own code, this obviously isn't an issue. (Unless, of couse, for some reason you want to program exploits into software at your organization :) )

Heck, even GitHub already shows a warning for files that have bi-directional unicode...

A bit of an overemotional title if you ask me.

comment 5y ago · link · parent

But many other languages are like this. AFAIK, C# is the same - there are no first class functions allowed, only classes.

comment 5y ago · link · parent

Please build a login with just HTML.

comment 5y ago · link · parent

Yes, my feeling exactly - especially when some of the "manager" level comments assume all tech should be infinitely fast when being shipped / released. Releasing to web is usually possible to optimize (in terms of how long it takes) with many strategies, but don't even get me started about mobile... the store approvals take anyway 24-48 hours!

I can't really tell the difference in this thread through jealous snide side comments and those which just lack understanding of large production applications.

Of course the guy is going to push tools he has courses about, I wouldn't expect different from anybody else.

comment 5y ago · link · parent

I agree. While TypeScript is good for any JavaScript project, Node based APIs have always felt like the tooling has lagged behind other frameworks and languages. I've since really started to enjoy .NET for backend tasks - but of course there are many other good options.

comment 5y ago · link · parent

As a bit of a pushback to this - doing the opposite and not considering optimizations and edge cases is perhaps a major source of so many YC startups (and any startups out there that need tech in general) fail when they reach any sort of critical mass - simple is always good, if it actually works at scale.

Facebook's now infamous implosion a few days ago harkens to this - their system is clearly NOT simple, but it works extremely well 99.9% of the time.

comment 5y ago · link · parent

This is a one liner in NGINX...

comment 5y ago · link · parent

and the login for your users?

comment 5y ago · link · parent

If you're ever looking to support TypeScript eventually, the Monaco editor (https://github.com/Microsoft/monaco-editor) is your place to go. This is the same codebase that powers VS Code, yet is browser compatible and can come with all the Intellisense you need!

EDIT: Actually it probably supports a variety languages

555.

Shell Prompt Colors(github.com ↗)

1 points · by fullstackchris · 5y ago · discuss

comment 5y ago · link · parent

I could see this being really powerful _for certain parts of a product or system_ but not the whole thing. Seems to be the overall understanding I get reading some of these horror stories.

comment 5y ago · link · parent

not if nobody uses it ¯\_(ツ)_/¯

comment 5y ago · link · parent

Exactly my thinking every time I read about them. It's one idea thought up by one scientist. It's so human of us to think some advanced race would build a giant capture device around a star... did anyone stop to ask that if a civilization could do that, they would likely already have technology that could (to our eyes) generate power out of thin air? Nope, caveman brain build big wall around star to get ALL power!

comment 5y ago · link · parent

this isn't entire true - actually i don't think there was a single country in europe that made going outside alone an actual fine with law behind it. it was made to appear that way, but i've heard many anecdotal stories that when stopped by the police, the police ended up admiting they couldn't really do anything

comment 5y ago · link · parent

Hearing stuff like this a lot recently, I always think about the often repeated vision that Keynes had, saying that we (his grandchildren) would be working 15 hour work weeks. I think our economy is so rich and efficient now, that scenario could actually exist, but everyone is still duped by the workaday culture infinitely persisting the 40 hour work week idea.

Before I'm barraged with "what about people in the service industry!?" I do confess, I'm not sure what the argument would be - indeed, some people are perhaps only working part time at those positions, perhaps maybe around that 15 hour figure. But for those who work full time in the service industry, I guess I'm not sure what there leverage could be - raising the minimum wage perhaps? But that argument is age old and I've heard pros and cons both for and against. Also, in a country like the US where are social programs are far behind most of places like the EU for example, it's especially hard to argue or expect anything to actually become a reality for some of those service jobs. I guess only time will tell.

comment 5y ago · link · parent

Can confirm from multiple sites, Gatsby with CSS modules runs like lightning

comment 5y ago · link · parent

Big surprise that using CSS the original way it was supposed to be used... is the most performant. CSS-in-JS has always been a sort of "hack" for me. Sure it's a great DX, but it's really just an abuse of JavaScript to have CSS capabilities "just because we can".

comment 5y ago · link · parent

all forks on GitHub are public, i took the liberty and did some snooping, the only fork which had some new commits was this one: https://github.com/jesshowe/SectorTradingAlgorithm

comment 5y ago · link · parent

I knew enough to expect it was about programming, but in the other way: a code or program generator. This seems about art generation! Very interesting still.

comment 5y ago · link · parent

what planet are you on? there have already been multiple studies that show the efficiacy of existing vaccines are not as effective against some of the variants. don't doubt that there will be bootsters for this

comment 5y ago · link · parent

yes but natural immunity =/= vaccine immunity (and please don't say bUt vAcCinE aNTIBoDiEs aRe bEtTeR tHaN ThoSe pRodUCed bY nATuRaL aNtIbODiEs)

comment 5y ago · link · parent

Not sure why you are being downvoted. You are correct, and this is LITERALLY the case with existing virus boosters like Tetanus (actually the combined Tetanus / Polio / Diptheria / Pertusis). Many booster vaccines are recommended at regular intervals (some 5 years, some 10 years, some somewhere within that range). You wouldn't see people downvoting advice to get your Tetanus booster every 10 years! Yet they'll downvote such a suggestion about COVID boosters? I just don't understand. Its biology folks.

Actually this _really_ pisses me off that you were downvoted. Everyone is treating this vaccine plan (and I mean speaking from the US point of view vaccine plan) like it is the end of the pandemic permanantly. I can assure everybody that it is NOT. Indeed, there has been talk of these universal flu & cold vaccines for decades, but they have yet to be produced - just look how long the COVID vaccines took to be released worldwide when the first one was produced in January of 2020 (not a typo). Meanwhile, multiple countries in Africa, as well as all of India are still being ravaged by this virus - where is thier vaccine help? There is such a western centric twist on HackerNews that it really makes me question just how intelligent our "best programmers in the world" really are. From my initial view point, it seems everyone here understands the entire situtation no better than any other anectdotal theory from the average lurker on 4chan or reddit.

comment 5y ago · link · parent

cmon guys it's mid may, it's peak grass pollen season (in the northern hemisphere)... that has nothing to do with vaccines. smh, anectdotal this, anectdotal that

comment 5y ago · link · parent

Ah, there was some guy on a podcast, I think Sam Harris or Tim Ferriss, that was writing a book and / or publishing on exactly this type of research. They reviewed like 500 some startups and how they failed (or succeeded) it was one of the first scientific based studies like that... would love if someone browsing could comment the name if this rings a bell, I'd have to hunt it down...

570.

Show HN: React-use-please-stay – React hook to animate page title and favicon(github.com ↗)

3 points · by fullstackchris · 5y ago · discuss

1
1718192021