top | item 40274481

(no title)

joehx2 | 1 year ago

> Does [mixing the syntax] happen to you too?

Yes. I switch between Java and JavaScript/TypeScript frequently. Probably the biggest syntax typo I make is switching the arrow functions: -> vs =>. Also, switching between the various `.includes`, `.contains`, `.size`, and `.length`.

Since my IDE catches it immediately, it doesn't really have any long-term affects.

discuss

order

atomicnumber3|1 year ago

I switch between Java, go, Ruby, python, and js. And yes I'm a mess. The worst is which versions of "strip" vs "trim" each language uses to remove white space from the sides of strings.

I dread the next time I have to interview because I'm going to look silly, accidentally adding or removing semicolons and parens around if statements and etc.

Honestly aside from those, I don't notice it too much and there's kind of a muscle memory for it eventually where the switching becomes mostly unconscious.

fidotron|1 year ago

String manipulation and those damn strconv Itoa funcs in go are what kill me. I have to look that up every time and feel a complete idiot for it!

smegsicle|1 year ago

that still doesn't explain what language you're switching from where 'affects' is used like that

kevindamm|1 year ago

*affects* (noun)

- a set of observable manifestations of an experienced emotion : the facial expressions, gestures, postures, vocal intonations, etc., that typically accompany an emotion

- the conscious emotion that occurs in reaction to a thought or experience

I suppose the IDE doesn't show any emotion from these context switching hiccups.