HN user

techsin101

1,442 karma
Posts96
Comments483
View on HN
claudelessons.com 13d ago

Show HN: Become better at Prompting with bit sized lessons

techsin101
2pts0
chromewebstore.google.com 4mo ago

Navigate Search results by pressing 1,2,3 (Chrome Ext.)

techsin101
2pts0
news.ycombinator.com 1y ago

Ask HN: Do 10DLC Requirements make it impossible for hobby projects to send SMS?

techsin101
45pts19
news.ycombinator.com 1y ago

Ask HN: Fake CC that you can give to scammers and they get owned

techsin101
1pts5
news.ycombinator.com 2y ago

Ask HN: I can no longer like React, do you?

techsin101
30pts32
news.ycombinator.com 2y ago

Ask HN: Is there an AI Google map search?

techsin101
1pts1
news.ycombinator.com 3y ago

Ask HN: How do I go about this startup idea?

techsin101
2pts1
news.ycombinator.com 3y ago

Ask HN: I prefer single letter variables

techsin101
17pts50
news.ycombinator.com 3y ago

Ask HN: Is there a structure for startups where you can have 50 founders?

techsin101
2pts3
news.ycombinator.com 3y ago

Ask HN: How text AI generators aren't the end of search engines?

techsin101
2pts6
news.ycombinator.com 3y ago

Ask HN: HN what text editor do you use for notes?

techsin101
5pts20
news.ycombinator.com 3y ago

Ask HN: Text Book Recommendation for Math?

techsin101
5pts6
news.ycombinator.com 3y ago

Ask HN: How did you become better at programming?

techsin101
65pts42
news.ycombinator.com 3y ago

Ask HN: What country is easiest to go from USA and have insurance without job?

techsin101
19pts22
news.ycombinator.com 3y ago

Ask HN: Do you find Discord completely disorienting?

techsin101
88pts85
news.ycombinator.com 3y ago

Ask HN: What happened to the law that would prevent social platforms censorship?

techsin101
4pts4
news.ycombinator.com 3y ago

Ask HN: Do I Have ADHD?

techsin101
20pts21
news.ycombinator.com 3y ago

Tell HN: An example of how A/B testing ruined everything

techsin101
3pts2
news.ycombinator.com 3y ago

Ask HN: Please share your productivity and focus tips, hacks, mindsets, etc.

techsin101
1pts1
news.ycombinator.com 3y ago

Tell HN: Food is too expensive now

techsin101
22pts54
news.ycombinator.com 4y ago

Ask HN: Is there a math formula that can give me nth pie digit?

techsin101
21pts7
news.ycombinator.com 4y ago

Ask HN: Where do you take notes now (2022)?

techsin101
1pts2
news.ycombinator.com 4y ago

Ask HN: Is it true that any community that grows big enough, gets ruined?

techsin101
256pts198
news.ycombinator.com 4y ago

No Dislikes has officially ruined YouTube for me

techsin101
1097pts479
news.ycombinator.com 4y ago

Ask HN: How can I learn macroeconomics properly?

techsin101
111pts131
news.ycombinator.com 4y ago

Ask HN: How do you save data structures on disk?

techsin101
4pts6
news.ycombinator.com 4y ago

Ask HN: Can you build an open sourced real estate statistics site?

techsin101
1pts5
news.ycombinator.com 4y ago

Ask HN: Are you a developer and working on a startup?

techsin101
1pts0
news.ycombinator.com 4y ago

Ask HN: Is perception that YC has been taken over by MBAs correct?

techsin101
1pts0
news.ycombinator.com 4y ago

Ask HN: Looking to get back to RoR, resources?

techsin101
5pts4

seems like a dismissive attitude... engineer can cost 1M a year easily and that eliminates viability of lot of small ideas. It's no different than internet servers costing thousands and then suddenly innovation makes them cost less by many factors and creating a surge in new startups.

just from pure api perspective how is setA, setB, setC better than...

this.setState({this.state: val})

which was already pushing limit of normal behavior which is

state.A = val

just to be revise

i went from having to do

state.onlineStatus = 'active'

to

const [onlineStatus, setOnlineStatus] = useState('active')

Instead of being able to get autocomplete and normal refactoring you would get from plain js.. now you need to add typescript to supplement the mess...

const obj = {

onlineStatus: 'inactive', shoppingCart: '3899x', lastActive: 1834393939 }

obj. [autocomplete anywhere in the project]

vs MORE Boilerplate

At first I thought you were arguing against the point I made, but after reading this fully I totally agree. The worst offenders that are hell bent on naming variables as sentences are java developers. For some reason the boiler plate required by Java is no long enough for them. Lol. Joking aside, I think anywhere where the code is an API for external functions or anything like that. Having a very descriptive name and consistent convention is good, also if the variable is being carried over in a nested code or is being passed around or is being used 50 lines down somewhere then it is useful to name it in a way that is recognizable

Ultimately, I think even the choice of naming something and using a single letter communicates your intentions. If you make something a single letter then you're telling the reader that do not even worry about this variable it is just passing through, but if you need something your communicating your intentions of using this variable in the future it is more permanent in a sense

Sure, in this example user looks better. But as I said this code is not going to be existing on its own. There's going to be code preceded by this. Which is going to give a pretty good idea of what is being filtered on and you can always have comments before the code that can explain the general idea of what you're trying to achieve instead of burdening short-lived variables with a role of needing to give hints of what's going on at the expense of readability and speed of parsing mentally

If there is every time there a single variable is being searched then it means that it was not limited to that scope and by let's go. I mean in few lines front and back and if it wasn't then it should have never been a single letter variable. I see single letter variables as placeholders that are meant to live very temporarily. Few lines at best

Yea, often vars are placeholders and making them descripting just makes them misleading and harder to get to the point. But yea at least I trust myself to refactor code and make the var name more descriptive if I see it's no longer just temporary placeholder... but would be a challenge to have others follow the same principle. One using is short name because it only helps, another to use it because you are just lazy.

I'd prefer it like this...

// get users older than 90

a = data.results;

b = a.filter(u => u.dob > 123456)

seniorUsers = b.map(x => {name: x.name, age: x.age})

// self contained

// comes out with one final var that is named to be used later on

// other vars are obviously meant to be ignored and just placeholders

// comment explains what is happening so each var doesn't need sacrifice comprehension speed

The illusion of a dream that kept people grinding has shattered. Housing prices doubling means that it's now clear that you will never achieve financial freedom, not that most would have but now there is no hope. Without any end goal, it's pointless to give your 100%. Now people's next goal is to make best what you are gonna get, and that is to do minimum.

I won't say I'm pushed, but rather I get put a knife to throat, each time that has happened it has chipped away at my passion for programming in general. Now that I think of coding then the emotions that come up are negative. When I was a beginner emotions were positive and exhilarating, like I couldn't wait to wake up tomorrow and try this new thing. I believe it's all thanks "being pushed". I hate managers who think like this.

I do the later so I don't get stuck, i.e. if I have mastery over language/framework/etc then I'll not get stuck, because when I do get stuck my stress goes to cloud 9 and rapidly start losing hope. Spend days alternating between procrastinating and trying things which feels like putting hands on sizzling pan. But "the PROS" I've seen encounter bigger problems and move past them in a day or two, without going through entire cycle of despair.

i would disagree, if someone is highly specialized in a language X then they are going to be very resistant to learning something new. And if they have to then it'd be a slow process. They would have to learn: language, frameworks, build tools, code base, industry concepts. Compare this to someone who is already familiar with tech stack: they would be only learning code base and industry concepts.