Post Ayq5GdoYSfDrNBSVea by [email protected] | |
More posts by [email protected] | |
Post #AybItKh1s9EFObJt2m by [email protected] | |
0 likes, 0 repeats | |
I was talking to someone today about 'accents' in programming, where yo… | |
Post #AybItKnlT6cHjUTGXg by [email protected] | |
0 likes, 0 repeats | |
@simontatham some people write Go as if it was Enterprise Java, everything is a… | |
Post #AybZMOk5UizbcRdDt2 by [email protected] | |
0 likes, 0 repeats | |
@simontatham I'm not sure this is what you're looking for but I once ha… | |
Post #AybZMOu0tovs7EH9MG by [email protected] | |
0 likes, 0 repeats | |
@mjd I must admit I've never got round to properly understanding parser com… | |
Post #AybZMP2sMs1OYiQEAi by [email protected] | |
0 likes, 1 repeats | |
@simontatham @mjd I think the answer to your question depends on how the parser… | |
Post #AybZMPBNrEpKz6P1Qu by [email protected] | |
0 likes, 0 repeats | |
@simontatham And come to think of it I did write a book about how to write SML … | |
Post #Ayczane4Uj5WsIIzui by [email protected] | |
0 likes, 0 repeats | |
@simontatham a subtle version of this is writing based on the performance chara… | |
Post #AyczanlA4Ml9EHcexs by [email protected] | |
0 likes, 0 repeats | |
@aiiane do you have any concrete examples of that to hand?The only case like th… | |
Post #AyczanrtfK9BZAm2Sm by [email protected] | |
0 likes, 1 repeats | |
@simontatham @aiiane The Whitespace interpreter is written in "weird"… | |
Post #Ayq5GdoYSfDrNBSVea by [email protected] | |
0 likes, 0 repeats | |
@simontatham I'll list some examples and let you categorize them. 😃 Shel… | |
Post #Ayq5Gdve2ItTjAmAhk by [email protected] | |
0 likes, 0 repeats | |
@barubary I like your example about returning an object by value vs passing a r… | |
Post #Ayq5GkAkp2Xr5ltK5Y by [email protected] | |
0 likes, 0 repeats | |
@simontatham i think another example similar to the chomp one is reimplementing… | |
Post #Ayq5GkICNMV3SrNGgy by [email protected] | |
0 likes, 0 repeats | |
@b0rk ha, I hadn't seen that! Though I think trying to mimic Python subproc… | |
Post #Ayq5Guh1huIlil4EmO by [email protected] | |
0 likes, 0 repeats | |
@simontatham TIL, I should start using that! | |
Post #Ayq5H5IcH0JOcEjOl6 by [email protected] | |
0 likes, 0 repeats | |
@simontatham ex-APL programmers tend to have a very terse style, an inclination… | |
Post #Ayq5H5QPo0YB0QNcum by [email protected] | |
0 likes, 0 repeats | |
@doop I had to look at that twice to see that lines 22–30 were plain C functi… | |
Post #Ayq5HKSNuy2RcsPuZE by [email protected] | |
0 likes, 0 repeats | |
@simontatham There's definitely a thing in C where people create manual obj… | |
Post #Ayq5HKZ7VvQTxlZI48 by [email protected] | |
0 likes, 0 repeats | |
@cks yes, I think that's too general to count as an 'accent' from a… | |
Post #Ayq5Hf0nUjRtNOffyy by [email protected] | |
0 likes, 0 repeats | |
@simontatham I'd say there's also "accent within the language"… | |
Post #Ayq5Hf7t4N7VjNzL28 by [email protected] | |
0 likes, 0 repeats | |
@cceckman ah, that reminds me of a subtle case I've always wondered about: … | |
Post #Ayq5HfEcfKVY4H8iX2 by [email protected] | |
0 likes, 0 repeats | |
@simontatham @cceckman coming from C and bash I share your definition-first hab… | |
Post #Ayq5HfKeIvKQMxxWvQ by [email protected] | |
0 likes, 0 repeats | |
@relsqui @cceckman that's odd, I would have thought subroutines above main … | |
Post #Ayq5HfRNtsiShr6uQK by [email protected] | |
0 likes, 0 repeats | |
@simontatham @relsqui @cceckman in Python if A calls B, B only needs to have be… | |
Post #Ayq5HfXPXTXL0Xvioi by [email protected] | |
0 likes, 0 repeats | |
@drj @relsqui @cceckman hence, "if you're writing the main program at … | |
Post #Ayq5HjJjUGyKjHYr3I by [email protected] | |
0 likes, 0 repeats | |
@simontatham @relsqui @cceckman and there is quite a common split in Python. So… | |
Post #Ayq5IF4FRNbFCWYwMK by [email protected] | |
0 likes, 0 repeats | |
@simontatham Another example is realizing that not everything needs to be insid… | |
Post #Ayq5IFBL11GrYVsbPU by [email protected] | |
0 likes, 0 repeats | |
@march38 I hadn't realised that was a problem that C++ programmers had in t… | |
Post #Ayq5IXGFnTtlcyJmZU by [email protected] | |
0 likes, 0 repeats | |
@simontatham I hahe an example from my own (in)experienceIn Python, accessing a… | |
Post #Ayq5Iv9gxWuTjZQsfw by [email protected] | |
0 likes, 0 repeats | |
@simontatham An example, when coming from a language with sum types / discrimin… | |
Post #Ayq5IvGmXAa65YkXj6 by [email protected] | |
0 likes, 0 repeats | |
@phairupegiont good example, although the implementation choice seems odd to me… | |
Post #Ayq5IwrKclPb1CrFKq by [email protected] | |
0 likes, 0 repeats | |
@simontatham @phairupegiont you see a bit of "interface{}" all over t… | |
Post #Ayq5JJO2roeSt2KgNc by [email protected] | |
0 likes, 0 repeats | |
@simontatham Well, non-discriminated unions are not a very safe thing... C++ mi… | |
Post #Ayq5JUxXqAaGmK1gjw by [email protected] | |
0 likes, 0 repeats | |
@simontatham Fairly boring examples, but I've seen C++ written in C (class … | |
Post #Ayq5JV4HR7yJ7DB4Eq by [email protected] | |
0 likes, 0 repeats | |
@jmacarthur 'class names required as part of function names' – that r… | |
Post #Ayq5JlWsEaLoAWg81o by [email protected] | |
0 likes, 0 repeats | |
@simontatham I've seen C programmers working in other languages create a bi… | |
Post #Ayq5JldxoE1QWVzn4y by [email protected] | |
0 likes, 0 repeats | |
@tobyjaffey and I suppose the flip side of that is "no garbage collection?… | |
Post #Ayq5Jo1Qxvz5tszYwK by [email protected] | |
0 likes, 0 repeats | |
@simontatham @tobyjaffey I once looked through a PR by a former C# dev now work… | |
Post #Ayq5JtwgwTkwGuorNg by [email protected] | |
0 likes, 0 repeats | |
@cunobaros @simontatham @tobyjaffey Eek! | |
Post #Ayq5K3TdVMSLphInTs by [email protected] | |
0 likes, 0 repeats | |
@cunobaros @simontatham @tobyjaffey In a lot of cases in C# you're punished… | |
Post #Ayq5K6apv2zxUth5cW by [email protected] | |
0 likes, 0 repeats | |
@simontatham There's sometimes broader (cultural?) idioms that pervade a la… | |
Post #Ayq5K6gVZxXFmULcSe by [email protected] | |
0 likes, 0 repeats | |
@darkling oh yes, WhatnotFactoryFactory is a good example.(I always thought the… | |
Post #Ayq5K8gw7L4A0OYzPE by [email protected] | |
0 likes, 0 repeats | |
@simontatham @darkling ugh, PHPUnit is what happens when the Java programmers b… | |
Post #Ayq5KCATBzTMmrP7M8 by [email protected] | |
0 likes, 0 repeats | |
@simontatham I've often seen Greenspun's rule remodelled for exactly th… | |
Post #Ayq5KK5RkYCxLb7DdY by [email protected] | |
0 likes, 0 repeats | |
@simontatham Despite initially hating the idiom, I've written code that nat… |