Better HN
topnewbestaskshowjobs
Log inSign up

techsin101

1,442 karma · joined Oct 14, 2015 (11y ago) · 589 submissions

Submissions

1.

Show HN: Key Jump – jump to search results by pressing 1,2,3(chromewebstore.google.com ↗)

2 points · by techsin101 · 2mo ago · discuss

2.

Show HN: Become better at Prompting with bit sized lessons(claudelessons.com ↗)

2 points · by techsin101 · 4mo ago · discuss

3.

Navigate Search results by pressing 1,2,3 (Chrome Ext.)(chromewebstore.google.com ↗)

2 points · by techsin101 · 8mo ago · discuss

4.

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

45 points · by techsin101 · 2y ago · 19 comments

5.

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

1 points · by techsin101 · 2y ago · 5 comments

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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

8.

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

30 points · by techsin101 · 2y ago · 32 comments

9.

Ask HN: Is there an AI Google map search?

1 points · by techsin101 · 2y ago · 1 comment

10.

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

2 points · by techsin101 · 3y ago · 1 comment

comment 3y ago · link · parent

yes this as well... wrong info is worse than no info. Short var almost is like writing _list "_" indicates it's an internal property ignore it

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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

comment 3y ago · link · parent

.... Always

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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

18.

Ask HN: I prefer single letter variables

17 points · by techsin101 · 3y ago · 50 comments

comment 3y ago · link · parent

investors pay you money

you give investors equity

you use that money to pay for services, like a logo

you exchanged equity for logo, what's unclear there?

20.

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

2 points · by techsin101 · 3y ago · 3 comments

21.

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

2 points · by techsin101 · 3y ago · 6 comments

comment 4y ago · link · parent

that would suck immensely for various downsides

comment 4y ago · link · parent

is there a tool that uses to create UX/UI designs. It'd be really cool to get inspirations...

comment 4y ago · link · parent

Unless entire team is spending 2 days on docs every week, docs are hell. I prefer comments in the code.

comment 4y ago · link · parent

also Trillium and Zettlr

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

only down side if vscode isn't open then it takes a while to open up

comment 4y ago · link · parent

I use notepad and trying to move away from it. 1st there is friction creating new files, 2nd no search functionality, 3rd I've too much freedom to just create files anywhere.

comment 4y ago · link · parent

Hey, if this is upsetting then I apologize
12345
20