Programming as a career

Message Bookmarked
Bookmark Removed
Not all messages are displayed: show all messages (806 of them)

but wouldn't /^(9A)*(9B)*(9C)*$/ allow 9A9A9A9A? i can only have at most one of each.

Sorry, yes, it would - I misread "at least 1 of A, B and C" to mean that repeats were OK as long as A-B-C were still in order.

Probably something to be said with listing the valid combinations separately for readability, though. As long as it doesn't result in such a massive list nobody will ever read the whole thing...

a passing spacecadet, Tuesday, 21 June 2022 21:20 (one year ago) link

maybe i'm missing something but isn't it just A.*B.*C
haven't done regex in ages

adam t. (abanana), Friday, 24 June 2022 17:01 (one year ago) link

never mind

adam t. (abanana), Friday, 24 June 2022 17:04 (one year ago) link

two months pass...

maybe i should do more regex? tried for a programming job for the first time in over a decade, flubbed a coding task where it required a "\w" but I put in a "*". fun but stressful.

formerly abanana (dat), Wednesday, 24 August 2022 04:40 (one year ago) link

i love writing regexes--they're like a fun puzzle imo. regex101.com is a good tool for writing/debugging

diamonddave85 (diamonddave85), Wednesday, 24 August 2022 14:46 (one year ago) link

but \w / \W seems designed to confuse

koogs, Wednesday, 24 August 2022 15:26 (one year ago) link

I enjoy writing regexes too, but I don’t think I’ve ever written one without referring to a cheat sheet. They don’t seem like good material for interview questions because who can remember all those special characters.

o. nate, Wednesday, 24 August 2022 18:41 (one year ago) link

I have spent my entire career avoding using regex as much as I possibly can, the most unreadable abominations that they are.

Chewshabadoo, Wednesday, 24 August 2022 19:00 (one year ago) link

xp yeah it reminds me of the tests I got in college where you had to remember specific syntax which always felt dumb because in the real world you could just Google it. which I still do, often :)

in retrospect it was kind of funny how adamant they were about not sharing your code with your classmates, even calling it "plagiarism" over and over, when in reality like half of what I do is copy something and change it a bit

frogbs, Wednesday, 24 August 2022 19:04 (one year ago) link

lol, I was careful to specify that I enjoy writing regexes. Reading them, not so much.

o. nate, Wednesday, 24 August 2022 19:38 (one year ago) link

you bugger

the man with the chili in his eyes (ledge), Wednesday, 24 August 2022 19:58 (one year ago) link

(Google image search has the answer. i remember doing it at the time and getting less than half)

koogs, Wednesday, 24 August 2022 20:05 (one year ago) link

two months pass...

https://thetypingoftheregex.com/

ionjusit (P. Flick), Thursday, 27 October 2022 14:29 (one year ago) link

so,

"What have you done to his eyes?"

with "What" and "have" highlighted. what matches that? 4 letter words with a 'ha' in them? how do you write that as a reg exp? what am i missing?

koogs, Thursday, 27 October 2022 15:57 (one year ago) link

would it work to do everything in string before 'you'?

I have to google regex solutions rather than knuckling down and learning the syntax, so i don't share this as someone who can complete it. Admire anyone who can though!

ionjusit (P. Flick), Thursday, 27 October 2022 16:44 (one year ago) link

um, maybe, letters rather than words. it goes so quickly though it's hard to spot the patterns.

i had another that was two words starting with ex among other words.

koogs, Thursday, 27 October 2022 17:16 (one year ago) link

there's a video of the game on the guy's twitter feed, you use the global flag: /What|have/g

ledge, Thursday, 27 October 2022 17:49 (one year ago) link

I guess /[^\s]+ha[^\s]+/ would work, harder to type quickly though.

ledge, Thursday, 27 October 2022 17:52 (one year ago) link

Ugh so fussy, but I guess that's regex for you (I keep forgetting to match the punctuation when that's part of what it looks for).

Fartleby the Scrivener (Leee), Thursday, 27 October 2022 18:01 (one year ago) link

i've written my fair share of regexes and i have no idea how to do the exclusions... what's the syntax? also symbol ligatures (try typing !=) are for disgusting savages

diamonddave85 (diamonddave85), Thursday, 27 October 2022 19:55 (one year ago) link

symbol ligatures and cursive italics or, as i call it, "frontend brain".

𝔠𝔞𝔢𝔨 (caek), Thursday, 27 October 2022 19:57 (one year ago) link

ligatures and italics have over 600 years or + of history tho – I think they're extremely useful.

fpsa, Friday, 28 October 2022 02:47 (one year ago) link

Regex is, and always has been, a horror show, so this is very apt.

Chewshabadoo, Friday, 28 October 2022 07:15 (one year ago) link

regex stands for reginald, ex-marine

lag∞n, Friday, 28 October 2022 19:04 (one year ago) link

I feel a new screename comin' on!

Capital Radio Sweetheart (James Redd and the Blecchs), Friday, 28 October 2022 19:17 (one year ago) link

HI DERE!

Regex Dwight (James Redd and the Blecchs), Friday, 28 October 2022 19:20 (one year ago) link

Should probably post this in the macOS hoonja-doonja thread, but holy crap this was the best $3 I spent.
https://krillapps.com/patterns/

Elvis Telecom, Wednesday, 2 November 2022 08:49 (one year ago) link

My point is really that product designers who can’t program struggle to iterate. They can make the design process feel glacial and cumbersome. If you can program, it’s possible to brute-force a solution and retain some creative momentum. I guess this is probably a better discussion for a different thread!

― Allen (etaeoe), Friday, November 4, 2022 12:09 PM (ten minutes ago) bookmarkflaglink

ok i put it here

lag∞n, Friday, 4 November 2022 16:21 (one year ago) link

whats the nature of the block as far as iteration just not understanding how much work various changes will take / inability to design with flexibility baked in

lag∞n, Friday, 4 November 2022 16:23 (one year ago) link

the one good PM i've ever worked with came from 4th line tech support. PMs who start there career in non-technical roles are generally useless. MBA types are worse.

𝔠𝔞𝔢𝔨 (caek), Friday, 4 November 2022 16:40 (one year ago) link

lol I had typed out a long comment responding to that in the other thread but gave up when it was moving too quickly

mh, Friday, 4 November 2022 18:08 (one year ago) link

tl;dr version is that product ideas and direction can come from anywhere but you have to
1. Have someone running a project who can comprehend the nature of the work being done by people reporting to them, whether that's a management relationship or just a project coordinator
2. Have people who can successfully break that work down into digestible components, and explain to that management how they have value. Maybe that's an individual developer, maybe that's the person guiding a software development team

not all projects have easy first deliverable pieces and the terrible project managers are the ones who think a demo is going to "work" off the bat. and the really bad ones don't understand what completing something looks like and think that as soon as it appears to "work" you can just send it out the door

mh, Friday, 4 November 2022 18:16 (one year ago) link

are we talking about project managers or product managers? i was talking about product.

𝔠𝔞𝔢𝔨 (caek), Friday, 4 November 2022 18:18 (one year ago) link

I think product design (what is the thing being addressed, what are the working parts, how do people interact with this) is a different skill from product management or project management, for sure

one of the best project managers I had did work to learn all the jargon and how the pieces interacted but had absolutely no idea what half the things actually were. but they could run meetings very well, communicate with other groups to figure out if we were lined up with what other teams and stakeholders expected

mh, Friday, 4 November 2022 18:20 (one year ago) link

yeah I kind of conflated the two, but I think in the twitter example (sleeping on floor lady) it sounded like those roles were also very conflated

mh, Friday, 4 November 2022 18:21 (one year ago) link

They are often conflated. They shouldn’t be! I do think both are valuable, I just don’t think product designers who make web shit but can’t program are super useful.

Allen (etaeoe), Friday, 4 November 2022 18:49 (one year ago) link

I don’t know if we’re too easy on product designers (i.e., it’s fine you don’t know anything about technology) or too easy on engineers (i.e., it’s fine you don’t know anything about the product you’re writing). Maybe it’s both.

Allen (etaeoe), Friday, 4 November 2022 18:50 (one year ago) link

I've mentioned it before, but the one guy I knew in high school who was enamored with Google when it first appeared in the late 90s, then went to the nice school, did a non-programming course of study, and then went to work at Google was just heartbroken when he got there and found out that management wouldn't even consider product ideas if they didn't come from programmers

he quit that place and did ok later though

mh, Friday, 4 November 2022 18:56 (one year ago) link

one month passes...

broke some tests that were asserting using the toString() output of an object containing other objects containing other objects containing other objects

koogs, Wednesday, 21 December 2022 11:25 (one year ago) link

I respect their confidence in their ability to maintain consistent string representations.

Allen (etaeoe), Wednesday, 21 December 2022 14:14 (one year ago) link

elsewhere we have tests that compare the md5sum of the (binary file) output with an expected md5sum. and if they don't match, then what? absolutely no way of debugging it. could be one bit out, could be complee garbage.

koogs, Wednesday, 21 December 2022 15:01 (one year ago) link

One bit out would be impressive, until your assassination by the NSA shortly after.

Andrew Farrell, Wednesday, 21 December 2022 18:47 (one year ago) link

(i didn't mean we were generating clashes, more that the output could be a single bit different from the expected but the md5sum would be completely different and there'd be no way of knowing how close you are)

koogs, Wednesday, 21 December 2022 19:46 (one year ago) link

Oh yeah, sure!

Andrew Farrell, Wednesday, 21 December 2022 19:50 (one year ago) link

I think it’s relatively affordable these days to generate MD5 collisions these days

G. D’Arcy Cheesewright (silby), Wednesday, 21 December 2022 21:15 (one year ago) link

Oh yeah good point!

Andrew Farrell, Wednesday, 21 December 2022 21:23 (one year ago) link

these days!

G. D’Arcy Cheesewright (silby), Wednesday, 21 December 2022 22:41 (one year ago) link

three months pass...

The byline -- is he ours? https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/

Shartreuse (Leee), Tuesday, 28 March 2023 17:45 (one year ago) link

wrong dude

mh, Tuesday, 28 March 2023 17:45 (one year ago) link


You must be logged in to post. Please either login here, or if you are not registered, you may register here.