Better HN
topnewbestaskshowjobs
Log inSign up

_thinx

6 karma · joined May 2, 2022 (4y ago) · 49 submissions

Engineer, Tech-Product enthusiasm, Million users logistic system builder.
Submissions

31.

Curl Sharing Made Safe(getcurl.app ↗)

2 points · by _thinx · 4y ago · 2 comments

32.

The average working day of Charles Darwin is ~4h/day(twitter.com ↗)

3 points · by _thinx · 4y ago · discuss

comment 4y ago · link · parent

I have worked for my current company since 2015, so these are tactics I used:

1/ 30m meeting. Everyone who wants to make a meeting with me must via the invitation ( send to my calendar ), and the meeting duration must be 30m ( or less than ).

2/ Document by priority. I track the top 3 problems by their frequency and make the document ( troubleshooting ) next week. Automate your work first, after that, do delegate.

3/ Keep the fire burning. I mean you have to find your top 3 reasons, why you are still here, and work for the company. If you tried but can't find them, leave.

Hope it can help.

comment 4y ago · link · parent

I built several tracing systems, but none of them capturing & storing the API's response, cause too expensive, you know. Could you share more about your tracing system? I think we can learn from others.

comment 4y ago · link · parent

Agree! That's why I think a centralize tracing system is too expensive. Still looking for a better way to send API bug report.

comment 4y ago · link · parent

I think that, the author is focus on the strategy, but not tactic. He mention more about the important of understanding your own value system and which position the salary is in this system. How to increase your value in current company instead of finding others.

comment 4y ago · link · parent

Why don't you use HN ?

comment 4y ago · link · parent

Ah, I got some ideal here. So, you mean:

1/ We should have an API tracing system, hosted in a server for example, which capture all requests, including the params, headers, response. with some secure rule, e.g. hide Secret-Token header.

2/ Each request will have a header, its value is the request-id for example

3/ Whenever a bug come, we just need use request-id from 2/ and search the information in 1/

Right ?

comment 4y ago · link · parent

yes, thinking about that. Actually, an API bug report should be:

1/ secured, the credentials should not be exposed.

2/ enough information, e.g. the response must be snapshot, general parameters should be transparent.

3/ easy to re-produce and confirm resolved.

What do you think?

40.

Salary Negotiation Strategy(alexewerlof.medium.com ↗)

3 points · by _thinx · 4y ago · 2 comments

comment 4y ago · link · parent

Hey @zhangruinan, could you show your product here? I can be your beta user :)

comment 4y ago · link · parent

How does it works ? Could you give some example please :D

comment 4y ago · link · parent

Sorry, maybe I don't say clearly enough :(. Let show some code, hope it easy to understand.

I found that, the order listing API doesn't work as expected. I send the curl to my teammate. Please take a look at `-H 'X-Access-Token: SECRET_TOKEN' \`

```

curl 'https://mocha.lozi.vn/v6/users/me/orders' \ -X GET \ -H 'X-Access-Token: SECRET_TOKEN' \ -H 'Host: mocha.lozi.vn' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:101.0) Gecko/20100101 Firefox/101.0' \ -H 'Accept: /' \ -H 'Accept-Language: vi_VN' \ -H 'Accept-Encoding: gzip, deflate, br' \ -H 'X-Lozi-Client: 1' \ -H 'X-City-ID: 50' \ -H 'Origin: https://loship.vn' \ -H 'Connection: keep-alive' \ -H 'Referer: https://loship.vn/' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Site: cross-site'

```

The problem is:

1/ If I don't replace the real token by SECRET_TOKEN, others can use it to buying their own stuffs, by my token. :(

2/ If I replace the real token by SECRET_TOKEN, it's so hard to detect what the problem is, cause my teammate can't see the response, and can't request to re-produce the issue too.

comment 4y ago · link · parent

I thought about that way. But, we can't re-produce or see the API's response. So, it so hard to detect the API's issue, right :?

comment 4y ago · link · parent

Actually, I'm a terminal guy, and I like to use curl than postman

comment 4y ago · link · parent

I think that way is not secure enough. For example, I can use Secret Token, which is exposed in curl, to do something like ~ buying my own stuff .

So, there have anyway to secure the curl ? But we are still easy to detect the API issue.

comment 4y ago · link · parent

I was stressful whenever my teammates, talented developers, share the curl, which including the secret credentials like - Authorization Token, for detecting and resolving the issues. So, I am curious that how you guys do that ? There have any better way to send an API bug report ?

Updated:

--

I think that way is not secure enough. For example, I can use Secret Token, which is exposed in curl, to do something like ~ buying my own stuff .

So, there have anyway to secure the curl ? But we are still easy to detect the API issue.

48.

Ask HN: Developers, how do you send an API bug report?

4 points · by _thinx · 4y ago · 18 comments

49.

Hey developer, how do you send an API bug report?

1 points · by _thinx · 4y ago · discuss

12