|
Member 7989122 wrote: I could see that as a way to stop all dogfights about The One and Only True Way to Format Code. Yup, was also one of the reasons
Still, there is no "one true way"; simplest solution would be to "accept all", or have some tool do the formatting. Not wanting to have discussions on were whitespace goes is a bad argument to stop all formatting.
Member 7989122 wrote: You should consider starting to program in APL. In APL one major goal is to write the entire application on a sigle line. Only worked there for a year, two tops. No discussions on how to format the VB.NET code since VS automatically did that.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
The first time I went on a customer trip with my boss. I was an intern at the time. We were writing a control system for part of a manufacturing line. At one point, a part of the application I had written stopped working. I couldn't understand what was wrong, my boss was getting pissed, and the customer was looking unimpressed. We spent hours going over this and not getting anywhere. Finally, I went back and compared the code we were running to my original copy. They were different, and I hadn't made the changes. When I showed it to my boss, he admitted changing some things because he didn't like how I did part of it. When we put my code back, the application started working again.
I didn't say more than a half-dozen words to the guy the whole 10-hour drive home.
Software Zen: delete this;
|
|
|
|
|
Spending a beautifully sunny Saturday morning in the cold server room of Skopje airport, because the (redundant) servers weren't communicating with each other, only to find that it was because the installation engineers hadn't followed my very clear, very detailed instructions on installing the Synaptic software.
They hadn't bothered following the section on configuring exceptions for Synaptic's internal firewall, so the servers weren't being allowed to talk to each other.
As is typical, once I'd found the problem, it took only a couple of minutes to fix -- but the day was ruined.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Had a boss who should have been running his company rather than writing code.
I inherited a codebase that had a function that was about 700 lines long, and it had been copied 7 times, each with different parameters and had very subtle changes being made to the bodies of each duplicated function. After about 3 years of seeing this code almost daily (it was pretty much central to everything the app did), I took it upon myself to refactor the code so there was a single function. The next logical step would've been to refactor the one function some more into smaller chunks, but by that time I was still too afraid of breaking it that's where I stopped.
|
|
|
|
|
I remember working with a old Dual Core between 2008-2009. I have a lot of problems with the power supply!!!
|
|
|
|
|
Okay so i have this lil optimizing compiler and it's almost ready potentially for an article save one issue.
It does not do powerset construction at all. So everything gets rendered as an NFA, and yet i trim the NFA yielding some DFA parts to it without going through the full DFA transformation.
This isn't what i wanted.
What I wanted was to do a partial DFA transformation opportunistically but I've stumped myself going about it.
I can hack this together as is and produce an article for it, feeling like it could or rather should be better.
Or I can wait on it and keep trying for i don't know how long until i get it Right(TM)
The only the problem with the latter way is I see no light at the end of this tunnel and while I think it's possible i can't even be sure this approach is feasible in the first place.
Real programmers use butterflies
|
|
|
|
|
In academia, partial results are frequently published in case someone else can pick up the ball and run with it (apologies to British football fans for the shite metaphor).
|
|
|
|
|
I want to post that here, but i also don't think it's appropriate for here. Maybe I'll hang on to it for now.
Turns out, there's a way to do unicode DFAs i just found out about.
I'd much prefer that for my lexers as it's much faster.
I also found a port of brics (a java automata library to C#) so I may use that because brics is legend. the only reason I haven't used brics was it was in java.
Well, there's that issue down. So I guess rolex will now support unicode.
Real programmers use butterflies
|
|
|
|
|
Started doing some work with the Windows 10 speech synthesizer.
It's pretty good at recognizing comas, etc. and inserting the appropriate pauses when they're there.
It's amazing how irritating it gets when they're not.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
|
my kind of music
Live long and prosper
|
|
|
|
|
It did come to mind. Still have some cassettes.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
|
I see what you did there!
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
That's what happens with not enough comas ... or paragraphs.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
I look forward to your article !
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
Ok, so I got me some new laptops and was looking for suggestions/opinions on restart/shutdown.
And lets throw the Docks in too- I have one USB-C dock and another that is Thunderbolt; can these benefit from occasional power downs?
Currently I hibernate the machine, leave the monitors on, and unplug the docks over the weekend.
Director of Transmogrification Services
Shinobi of Query Language
Master of Yoda Conditional
|
|
|
|
|
Depends on the software you use - I find I have to power cycle from time to time on the Surface where it sleep /hibernates most of the time. If I don't, I lose the mouse pointer.
And hibernate can be a PITA if you have network shares onto a power-saving NAS - if it goes into low-power mode and spins the disks down, Windows doesn't always reconnect them properly. The same with access to SQL via the Desktop machine, even if no apps accessing it are open when the Surface is hibernated.
Herself also has "odd problems" with her Jigsaw app - sleep or hibernate with it running full screen and it always comes back with a blank screen, which is annoying to say the least.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I've had issues with my Surface losing the mouse, too. Bluetooth mouse. Same with a Lenovo Yoga before the Surface. Bought a cheap HP Bluetooth mouse (HP # H3T51AA) about a year ago & haven't had a single drop since.
|
|
|
|
|
It's more my work laptop that I am questioning; and it arises when I intend to actually work from home and VPN back into work. Sometimes the Cisco client just doesn't want to "let go" if I don't power down before re-connecting in the office.
Director of Transmogrification Services
Shinobi of Query Language
Master of Yoda Conditional
|
|
|
|
|
I shutdown my home machine every night. My work machines are powered 24x7 and are rebooted periodically when updates are installed.
/ravi
|
|
|
|
|
this and that.
I'd rather be phishing!
|
|
|
|
|
MadMyche wrote: Currently I hibernate the machine Be really careful with hibernate. I'm one of the thousands of people whose laptop system drive suddenly found itself in a RAW state, because of flaws in the hibernate process.
There's no recovery from that; you have to repartition and format the drive (after you've used disk tools to recover umpty-million unnamed files from it).
Just put it to sleep. the average laptop will sleep on battery for an immense length of time, so it's not going to land you with a huge power bill if it (or the dock) is plugged in.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
I'd be blaming the disk controller doing a bad job of power management rather than the OS. And frankly, based on my own experience, I've had much worse luck recovering from sleep sessions than hibernating.
My desktop systems run 24/7 (and have for years), but I always let my laptops hibernate - especially the older ones that otherwise take a long time to do a full reboot. Maybe I'm just lucky, but I've never encountered the sort of situation you're describing.
And I'll bring this up just because I hate them with a passion: Are your drives by any chance misfortune Seagate?
|
|
|
|
|
I've read that Hibernate is very rough on SSDs (related to max lifetime writes) so that should be a consideration too.
|
|
|
|