Hacker Newsnew | past | comments | ask | show | jobs | submit | augustk's commentslogin

Better stick to a single point of exit.

https://news.ycombinator.com/item?id=20311080


There is nothing wrong with early exit, but you have to be sensible.

Just like there's nothing wrong with the ternary operator if you are sensible. I've seen nested ?: abominations that would make Jesus give you a funny look.


I disagree, I think returns should either be at the very start (checking inputs should be able to return before anything happens based on invalid inputs) or at the very end. Proceeding to do a bunch of stuff & then try to undo it because an input was invalid is error-prone.


If the input parameters are invalid there is an error in the program so it makes more sense to use the assert function. Why would you need to undo something due to the restriction of a single point of exit?


Well, maybe. Could also just use psrc directly instead of doing the manipulation in src.


The discussion you linked to convinces me of the opposite.


Then there is the joy of making the program source code as easy as possible to comprehend. This motivation seems to be rather unusual among programmers unfortunately.


> Now just UTF-16 and non '\n' newline types remaining to go

Also ISO 8601 (YYYY-MM-DD) should be the default date format.



After installation you need to enable it in Settings -> Apps -> Safari -> Extensions -> uBlock Origin Lite.

I also uninstalled my previous advertising blocker AdBlock Pro by selecting "Delete App" in Settings -> General -> iPhone Storage -> AdBlock Pro.


Yes I tried that before I commented. It just says "not supported by this version of safari"


If it is all lies, what could be the incentive for the women to make up a story like this?

https://medium.com/@yifanxing/my-experience-with-sexual-hara...


The Scala community soap-opera was a total shit show. Both of the women involved later ended up in relationships with Travis Brown, another prominent and extremely controversial Scala figure. Travis then entered a long running war against John De Goes and a bunch of other people in the Scala community before rage-quitting.

I don't believe the women entirely made it up, or that Jon Pretty is entirely guilt-free. Likely he is a narcissist who took advantage of his status to pursue sexual relationships where there was a huge imbalance of power. Maybe this strayed into manipulative gaslighting, I don't know. But it also seems entirely plausible that the women in question desired a relationship with a powerful older man and that the relationships were essentially consensual. It's a mess of power, sex, alcohol, a lack of shared social norms, and overlapping social and professional relationships. Quite where the truth lies between "totally non-consensual gaslighting" and "consensual relationship with large imbalance of power" I don't claim to know.


No one said it was all lies actually. Even the guy. He could say "I didn't sleep wih a young attendee of a conference I helped her get into, after getting her drunk at my airbnb". But he just vaguely said "fake evidence" and "short relationship". If what she said is true, "short relationship" is hella euphemism


The same thing happened to Bertrand Meyer's language Eiffel.


Two separate classes in my University course was entirely done in Eiffel, I came out with the view it ran businesses everywhere and then never heard it again in the 25 years between then, and reading your comment above.


My intro course at university was also done in Eiffel, this was at the ANU in early 2000's


My university's intro course was in Eiffel. For my year they switched to java


The interview "Discipline in Thought" is also quite interesting:

https://www.youtube.com/watch?v=mLEOZO1GwVc


No, "modules that hide design decisions" implies modular programming. I think schools should teach modular programming before object-oriented programming. Then this confusion wouldn't arise so often. For a small modular programming language (which also supports OOP), have a look at Oberon:

https://www.miasap.se/obnc/oberon-report.html


I think it would be a good idea to define a subset of the current web technologies and make all important sites like banks, tax office etc. to adhere to this standard basic functionality. It also needs a logo which can be used on these sites.


We used to have such a thing: it was called HTML. Sites were supposed to have their content in the HTML, and if JS wasn't enabled, you'd still get the semantic hypertext. A vast majority of web pages are text and images, and don't actually require fancy CSS/JS. But the ship of progressive enhancement has long sailed,[0] and tons of static sites have JS, and all the hundreds of APIs that entails, baked into their functionality. Hell, there are many sites nowadays that will use JS to stream the HTML to your device for some reason.

[0]: JQuery/AJAX were probably the beginning of the end. But even without those, you had developers doing things like putting main images in CSS using the background property, overloading text with icon fonts, loading videos using "blob:" crap, or other abuse of semantics. Once it became possible to push more state to the browser instead of the server, the floodgates opened. I remember in the dial-up days, you could take a browser offline, and webpages would function perfectly, yet now, even hitting the back button can be a gamble. Now, hitting File > Save fails 95% of the time for me.


I wholeheartedly agree. When was progressive enhancement thrown out the window?

https://en.wikipedia.org/wiki/Progressive_enhancement


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: