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

For me, I would reduce the functionality to just one key: ESC. I always pressed ESC key mindlessly when thinking of the next thing to write. I pressed too many useless ESC like fidgeting. If I can offload it to the foot...


Sourcetrail?


Yep, Sourcetrail can do that, for the languages it supports. (It has an SDK so additional languages can be added, with effort.) Give it a method, another method, and it will draw a line from point A to B (with all the functions in between) using static analysis plus you can explore before and after to see what calls what. You can even see field usage though there it can be confused sometimes, understanding varies by language. But it’s still really useful. Doesn’t yet support cross-language integrations but it has a lot of potential now being open source. It works great for individual developer use, for team use I’d want to try my hand porting it to React or the web in order to more easily share views with others, and perhaps use a central database. For now you can make Sourcetrail projects as part of a CI system to share them with other team members.

In addition to Sourcetrail, I also recommend adding OpenTelemetry for distributed projects or flame graphs for less distributed ones. Some of the videos Honeycomb.io put together really highlight the value of distributed tracing, such as this one: https://youtu.be/GuIWQ-EF7YE and the OpenTelemetry Collector makes it simple to filter telemetry, route it to services or drop a majority of traces which don’t have exceptions, for example.

One day I hope OpenTelemetry tracing can be baked into any language the way flame graphs tend to enjoy first-class support in Java, and that tools like Sourcetrail can be baked into IDEs such that runtime metadata is available just by hovering your mouse over modules and functions. Kind of like CodeLens shown here, but for understanding the code: https://docs.microsoft.com/en-us/azure/azure-monitor/app/asp...

Something like https://www.codestream.com/use-cases/code-documentation works as a social network and documentation hub but doesn’t necessarily bring in production telemetry or models/ontology from code (such as Lattix, but that’s specialized to code organization in a way…) Maybe Project Cortex but for source code? https://techcommunity.microsoft.com/t5/microsoft-365-blog/in...

JetBrains Space or GitHub doesn’t yet analyze code beyond dependencies/security issues/CI but might in the future.

Finally, there are tools like https://backstage.io/ which hint at a future where developers build their own infra tools for the rest of the company to use… but that hasn’t extended much into the realm of modelling, documentation or telemetry yet. Folks might be lucky if they have a hosted copy of SourceGraph right now… the future, I think, builds on all of these ideas.


Can you use sourcetrail on properitery codebases as well? I see it's GPL and according to my understanding, it's okay to use it on properitery software as long as you don't make any modifications to the sourcetrail software itself. Are there any hidden commercial licenses before I try it out on my company's codebase?


I’m not a lawyer but if you’re not embedding GPL code output into your code, you’re fine. Using GPL code to write or reason about code under a different license is not the same thing as having GPL software output a copy of its own GPL-licensed code, for example: https://softwareengineering.stackexchange.com/questions/5221...

The only other risk is letting your company’s proprietary code be visible by third-parties but Sourcetrail runs locally on your computer and can run completely offline.

As to Sourcetrail’s licensing— it previously had a closed license and was supported by a startup with a number of employees. It recently went open source and can be supported financially through Patreon: https://www.sourcetrail.com/blog/open_source/


I highly recommend this book. The chapters were "bite sized". Compared with the dinosaur book, it was easier to finish one chapter after I started on it. The chapters on concurrency made me cry with "so this is how XXX works" a lot. I also found the references near the end of each chapter were full of gems.

I self-taught CS, so not surprisingly there were lots of "void" and "dots" in my knowledge space. This book connected lots of dots together.


This is just wishful thinking in the current situation. Don’t expect Chinese government to reverse what it has been doing for years in this political shitshow. Chinese living in US are unfortunately sandwiched in the between and helpless.


Well said



Jim Keller once said randomness was baked in the modern computer chip design. The execution routes were almost always different even if you ran the same deterministic code for multiple times. But in the end you got the same result almost every single time (“almost” has many 9s after the decimal point). But this layer of operations has been abstracted away from most of us. So don’t feel too sad... maybe the world has been like this for a long time


Can you give reference that AWS was after car selling business? I only know there was AWS engineering platforms for automotive industry.


Why might doing this to a Chinese firm feel justified? (I understand this question doesn’t matter to Trump’s true believers.) Finding the vaccine had better to be international teamwork. China is the ground zero in this pandemic. It has a lot offer and lose. I would argue China is a big ally in this case.


[flagged]


EVERY country puts itself first. International cooperation happens either when they have capacity to spare, or when it is mutually beneficial. Your demonization of China based on its political system is based on stereotypes of what "evil communists/authoritarian states" are in theory, not on what they actually are in practice. China is not comparable to the Soviet Union.

Which words say things in China are still out of control, and why do you trust those words? I have family in China, if things are out of control instead of getting better, I would know it.

You say all of this right after China donated tons of medical equipment and medical teams to Iran and Italy.

I saw how things were in China during the early days of the lockdown, how both people and government cooperated. I will believe my own eyes.

Of course, no government is perfect. Mistakes will be made. And some people are corrupt. But none of that means that throwing the baby out with the bathwater -- being overly cynical and declaring all governments as evil -- is the right answer. Now is the time for both people and governments to learn about what cooperation and good governance is about.


There are countries, like most in the EU, or Canada, or NZ, or JP or South Korea who have their own self-interest but still contribute to the greater cause and global concerns. And there are countries like China and in recent years the US which only care for their own interests. Look just at trade and investment terms - the ones I listed first are very open, the latter totally set rules that prefer own players. The same in any geopolitical concern.


I don't know how much of the claim that those countries are more "altruistic" than China is true. For the sake of argument, let's assume it is true.

I ask you this: must a country be "altruistic"? Is it wrong for a country to look after its own interest?

Clearly, if there interest conflicts with yours, then there is a problem -- but that is a problem regardless of whether they are normally altruistic.

But as long as their interests don't conflict with yours, is it wrong to be "selfish" (or a more charitable interpretation: "to mind one's own business")?

And even if a country helps another not for altruistic reasons, but because there is something to gain, then is there anything wrong with that? Isn't that also called a win-win? Donating and being altruistic is a neutral-win, but couldn't one argue that win-win deals are more sustainable?


[flagged]


> Then you should know better than anyone here that even your family is strongly incentivized by an Orwellian surveillance system with a social credit score system to lie even to you.

Yeah... No, that's not how it works. Hasn't for 40 years. I was born there.

> I also do not believe that you are arguing in good faith - it is no secret that Chinese astroturfing is all over the internet.

Check my account history and my github profile. I am a real person.

> This is literally the government that is imprisoning millions of ethnic Muslims and at best forcing propaganda down their throats

Okay. This claim is true. But I don't think you are viewing this particular situation from the right angle. Check Kim Iversen: https://youtu.be/Ff4YZBi4UTc Check CGTN: https://youtu.be/h2yMjbB1q24

TLDR: Terrorism. For 20 years. 10% of the population is radicalized and thinks killing others is good. Hundreds of people killed, thousands wounded. In part fueled by poverty, in part fueled by radical education. Something clearly must be done. But what?

The US chose to bomb muslim countries. China chose to force them to go to school to learn ethics, mandarin, and job skills -- what you call "forcing propaganda down their throat".

Now, forcing people to do anything is less than ideal. And they are probably forcing more people than necessary because they can't identify exactly who is radicalized and who isn't. But living in a safe society, where there are no people out to kill you, is ALSO a human right. You can't just ignore this real problem and only focus on the government action part.

I am not saying it is all good but the situation is much more different and nuanced than 'China imprisons millions because China is evil'.

> Do not by swayed so easily by shallow propaganda in the form of aid donations - this does not mean that China is actually recovered

Then shouldn't you be glad that China is over stretching itself? If China is in a bad shape them donating to other countries will destroy China. Never interrupt an enemy who is making a mistake.

> Why is China saber rattling right now about how the US was the origin of the virus[0]?

China isn't claiming the US is definitely the origin. China says this is a possibility. This is based on DNA research of the virus, as well as timing:

1. the US has more mutations of the virus, while China has fewer. Virologists says that this suggests the strain in China is not the original one, and that the ones in US are older. Or something like that: i am not a virologist so i don't fully understand this. Someone who is more knowledge, please fill in.

2. The start of the virus coincided with some military games event where the US army visited Wuhan.

China is not saying the US engineered the virus. It is saying the virus might naturally have started in the US, where it went undetected and brushed away as an abnormally bad flu season.

Now, this is still very much speculation and conspiracy theory-y, I will give you that. But the US CDC isn't exactly doing a good job with investigating the general situation in the US population.

Seeing how the US media talks about China, and seeing how China has traditionally been very defensive in its communications, I don't think it is weird at all for China to one day have become more assertive.


Indeed, obviously China has not stemmed covid. We'll see it come back bigger & more widespread with finger pointing to foreigners.


> Because the CCP, like any authoritarian, communist party, puts itself first

It is the US that is putting itself first in this case though. In addition to that i would claim that pretty much every single government right now is quite authoritarian.


> I see “no backups” as a feature

I will appreciate the “backup” feature. You don’t have to use it but users are better off to have such an option after understanding the risks.


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

Search: