I absolutely fucking hate GUI work. It's so fucking tedious.
Using FlexSpy I can set verticalAlign of an element to Middle and it works BEAUTIFULLY, but I cannot change it anywhere in the code. No matter the number of "this.setStyles" I set I cannot get to this one single fucking element and I don't understand it.
override protected function createChildren():void{
super.createChildren();
this.setStyle("verticalAlign","middle");
var f:FileReference = new FileReference();
f.save("createChildren","createChildren.txt");
}
public function MyClass(){
init();
var f:FileReference = new FileReference();
f.save("createChildren","constructor.txt");
}
public function init():void{
var f:FileReference = new FileReference();
f.save("createChildren","init.txt");
}
Hi Folks,
Is there any way to prevent the resizing of the columns of the scorecard component at run time? I've made sure they all reference formulas and have made the rows non selectable but I've now noticed that you can resize the columns at run time, which seems very odd.
How can this be prevented?
Thanks,
Jeanne
To answer the original question, you can prevent resizing of the columns by adding a button on top of your headers and removing the background and label. This does change the mouse pointer into a handm, but it removes the resize action.
Example: This micro-optimisation (slightly anonymised)
We have a struct that is sent over the network which has an 8-byte human readable field that can be used to identify what the struct is. Think of it as an ID field. So if you've got your favourite network snooper open (for diagnostics or otherwise), you'll be able to tell what's flying over the wire at a glance.
In the code, the ID has been encoded into a uint64_t, instead of being left as a human readable string.
From what I can see, this is so that basically you can now use a switch statement to compare the 8 byte field.
I am going to refactor this so that the appropriate handlers register the ID string that they're interested in and they get called back, instead of having a dedicated switch {} decoder which needs to be extended for every message that gets added.
Example: This micro-optimisation (slightly anonymised)
We have a struct that is sent over the network which has an 8-byte human readable field that can be used to identify what the struct is. Think of it as an ID field. So if you've got your favourite network snooper open (for diagnostics or otherwise), you'll be able to tell what's flying over the wire at a glance.
In the code, the ID has been encoded into a uint64_t, instead of being left as a human readable string.
From what I can see, this is so that basically, you can now use a switch statement to compare the 8 byte field.
Makes sense to me.
There's no way to read data as any format other than the one it was originally written in after all. Human readable and machine readable are mutually exclusive in all cases.
So that new handlers can just register their string ID and callback, without needing to modify the message decoder (which does other things such as length and some field verification).
Edit: Okay
Just needing to vent
Because crap code increases my blood pressure dramatically because it's just causing problems for everyone else and my god this is making my eyes bleed - indentation is not even consistent and why are some identifiers which are not macros all capitalised and whhhhyyyyyyyyy!?
If you end up decoding everything inside the initial message decoder like so:
switch( message.ID )
{
case cID_MSG1:
msg1handler.handler( message ); // tMessageDecoder now depends on tMsg1handler
break;
case cID_MSG2:
msg2handler.handler( message ); // tMessageDecoder now depends on tMsg2handler
break;
case cID_MSG3:
msg3handler.handler( message ); // tMessageDecoder now depends on tMsg3handler
break;
}
then you end up with tMessageDecoder dependent on every single message handler that you've got decoding which is silly and does not scale.
The dependency tree for that class looks something silly like:
I much prefer it the other way around, because why should the message decoder have to know anything about the internals of the message when that's the responsibility of the message handler?
And this function in the threaded class doesn't even pass the "what if two threads called you one after another" test, let alone the "what if two threads called you simultaneously" test.
I needed new business cards for an upcoming convention. Nothing worth creating a post about, except that I went from being a Senior Software Engineer to Vice President, Development.
My pay and responsibilities are unchanged. However, according to my next resume, I'm a totally more important person.
Seriously though, does VP, Dev carry much more weight than SSE? Should I be moving code down my resume and talk up project management?
I think that the internet has been for years on the path to creating what is essentially an electronic Necronomicon: A collection of blasphemous unrealities so perverse that to even glimpse at its contents, if but for a moment, is to irrevocably forfeit a portion of your sanity.
Xbox - PearlBlueS0ul, Steam
If you ever need to talk to someone, feel free to message me. Yes, that includes you.
I needed new business cards for an upcoming convention. Nothing worth creating a post about, except that I went from being a Senior Software Engineer to Vice President, Development.
My pay and responsibilities are unchanged. However, according to my next resume, I'm a totally more important person.
Seriously though, does VP, Dev carry much more weight than SSE? Should I be moving code down my resume and talk up project management?
Yah, pretty much.
As VP, you're emphasising your management roles/responsibilities, as opposed to your code monkey roles/responsibilities.
Unit tests are a project apart, not a #define option that you turn on in the main project.
Interesting concept. We keep all of our tests in the main project, but most be in standalone implementation files. We than use build control flags to decide if we want to enable the tests. Personally the upside for this is that it becomes easier to keep the source and tests synchronized even with a heavy topic branch based workflow.
Technically stress doesn't give anyone ulcers. They're a bacterial infection as much as anything else you'd take antibiotics for.
Stress will, of course, weaken your immune system. But that hardly seems relevant.
Well it's the air quality of this place. With the mold spores + people not washing their hands at all, I'm willing to bet I got something. It can't be a coincidence that this happened right around the time the basement on base got flooded and everyone moved back to the main office.
Slightly non-programming related. I'm going to be getting a esophagogastroduodenoscopy on Monday. I didn't realize that was a word until it happened.
I say it's slightly non-programming related because technically I got whatever I got while at this job while programming..
That's stretching isn't it? Also it's relieving to see someone else complain about their job in this thread.
Hey, I complain sometimes. I've just been trying to keep it in check lately because I feel like I complain about too much stuff too often (not just work, just life in general) and there really are a lot of good parts of this job as well. I also work on some cool stuff and may actually want to mention names/show off on occasion and I don't want to have that come up in a web search and be tracked back to me complaining about my job every other page.
Slightly non-programming related. I'm going to be getting a esophagogastroduodenoscopy on Monday. I didn't realize that was a word until it happened.
I say it's slightly non-programming related because technically I got whatever I got while at this job while programming..
That's stretching isn't it? Also it's relieving to see someone else complain about their job in this thread.
Hey, I complain sometimes. I've just been trying to keep it in check lately because I feel like I complain about too much stuff too often and there really are a lot of good parts of this job as well. I also work on some cool stuff and may actually want to mention names/show off on occasion and I don't want to have that come up in a web search and be tracked back to me complaining about my job every other page.
Re: Gender, hey you never know!
Re: Rest, Yeah I worried about that but at this point it's probably too late for me. I have no venting place anymore (I stopped doing it on Facebook) so otherwise I would go home and drink myself stupid if I didn't have this thread.
mightyjongyoSour CrrmEast Bay, CaliforniaRegistered Userregular
I have clearly not done my job well enough when I'm the only person in the company who knows how to operate the new system. To the point where I get sidetracked every time someone uses the damn thing.
In my defense, it's a goddamn prototype, and I was planning on doing an upgrade soon which would allow people to use it without me (it makes it more like our current systems, which people know how to use).
Unit tests are a project apart, not a #define option that you turn on in the main project.
Interesting concept. We keep all of our tests in the main project, but most be in standalone implementation files. We than use build control flags to decide if we want to enable the tests. Personally the upside for this is that it becomes easier to keep the source and tests synchronized even with a heavy topic branch based workflow.
I will do that sometimes, but only with C interfaces and I don't want to expose the internals directly, but need to use them in the tests
Unit tests are a project apart, not a #define option that you turn on in the main project.
Interesting concept. We keep all of our tests in the main project, but most be in standalone implementation files. We than use build control flags to decide if we want to enable the tests. Personally the upside for this is that it becomes easier to keep the source and tests synchronized even with a heavy topic branch based workflow.
I will do that sometimes, but only with C interfaces and I don't want to expose the internals directly, but need to use them in the tests
It might be because I have only ever worked one way, but placing my tests in a separate repository than the code boggles my mind. The software process around validating that branches use the correct test repository branch must be annoying.
Posts
Using FlexSpy I can set verticalAlign of an element to Middle and it works BEAUTIFULLY, but I cannot change it anywhere in the code. No matter the number of "this.setStyles" I set I cannot get to this one single fucking element and I don't understand it.
None of these are getting called at all.
How is that even remotely acceptable?
"Fuck you, who cares if someone resizes it? If it bothers you, don't resize the columns and use it as is."
Lend me your stabbing knife
In fact
Tell me who your supplier is
I'm going to need a crate of them
There is some serious crap code here
and I'm tempted to burn it to the ground
Example: This micro-optimisation (slightly anonymised)
We have a struct that is sent over the network which has an 8-byte human readable field that can be used to identify what the struct is. Think of it as an ID field. So if you've got your favourite network snooper open (for diagnostics or otherwise), you'll be able to tell what's flying over the wire at a glance.
In the code, the ID has been encoded into a uint64_t, instead of being left as a human readable string.
From what I can see, this is so that basically you can now use a switch statement to compare the 8 byte field.
I am going to refactor this so that the appropriate handlers register the ID string that they're interested in and they get called back, instead of having a dedicated switch {} decoder which needs to be extended for every message that gets added.
Makes sense to me.
There's no way to read data as any format other than the one it was originally written in after all. Human readable and machine readable are mutually exclusive in all cases.
You could do that, or you could do the slightly most extensible:
So that new handlers can just register their string ID and callback, without needing to modify the message decoder (which does other things such as length and some field verification).
Edit: Okay
Just needing to vent
Because crap code increases my blood pressure dramatically because it's just causing problems for everyone else and my god this is making my eyes bleed - indentation is not even consistent and why are some identifiers which are not macros all capitalised and whhhhyyyyyyyyy!?
If you end up decoding everything inside the initial message decoder like so:
then you end up with tMessageDecoder dependent on every single message handler that you've got decoding which is silly and does not scale.
The dependency tree for that class looks something silly like:
I much prefer it the other way around, because why should the message decoder have to know anything about the internals of the message when that's the responsibility of the message handler?
Okay
Calming down
Need to create a jira, put all that in there
Make it sound nice and non-hostile
IF YOU'RE GOING TO COPY AND PASTE CODE AND THEN MODIFY IT THEN UPDATE THE COMMENTS AS WELL
OH MY GOD I AM GOING TO STAB
Edit:
WHY ARE YOU EVEN COPYING/PASTING IN THE FIRST PLACE?!!!!?!?!?!?!
And this function in the threaded class doesn't even pass the "what if two threads called you one after another" test, let alone the "what if two threads called you simultaneously" test.
I mean seriously
This is just
RUDHJISFDSFJSDF
STAB
YOU DO NOT #define YOUR UNIT TESTS IN LIKE THIS
Unit tests are a project apart, not a #define option that you turn on in the main project.
DSFJXDFXZFJ#J(JIEJIROJERISJIDSFJIDSF
STAB
Edit:
Fuck it
Burning it to the ground
Too many WTFs to fix
Oh my god
He's reinvented the logging subsystem, but badly
I say this as someone who has written two, is about to change one to use (r)syslog, and has to maintain all of them.
My pay and responsibilities are unchanged. However, according to my next resume, I'm a totally more important person.
Seriously though, does VP, Dev carry much more weight than SSE? Should I be moving code down my resume and talk up project management?
If you ever need to talk to someone, feel free to message me. Yes, that includes you.
Yah, pretty much.
As VP, you're emphasising your management roles/responsibilities, as opposed to your code monkey roles/responsibilities.
You're a manager now, Harry!
This sounds like you need to find a new employee more than anything.
Interesting concept. We keep all of our tests in the main project, but most be in standalone implementation files. We than use build control flags to decide if we want to enable the tests. Personally the upside for this is that it becomes easier to keep the source and tests synchronized even with a heavy topic branch based workflow.
I say it's slightly non-programming related because technically I got whatever I got while at this job while programming..
That's stretching isn't it? Also it's relieving to see someone else complain about their job in this thread.
You could have just said "this job is giving me ulcers".
But where's the fun in that?? (the procedure is to check if I do have ulcers)
If you replace visual studio with monodevelop, you're okay but it's just not the same. Still better than Java and Eclipse.
Stress will, of course, weaken your immune system. But that hardly seems relevant.
Also chronic use of NSAIDs can cause them. So if you have migraines you're at a higher risk to begin with.
Very interesting.
Well it's the air quality of this place. With the mold spores + people not washing their hands at all, I'm willing to bet I got something. It can't be a coincidence that this happened right around the time the basement on base got flooded and everyone moved back to the main office.
Hey, I complain sometimes. I've just been trying to keep it in check lately because I feel like I complain about too much stuff too often (not just work, just life in general) and there really are a lot of good parts of this job as well. I also work on some cool stuff and may actually want to mention names/show off on occasion and I don't want to have that come up in a web search and be tracked back to me complaining about my job every other page.
Re: Gender, hey you never know!
Re: Rest, Yeah I worried about that but at this point it's probably too late for me. I have no venting place anymore (I stopped doing it on Facebook) so otherwise I would go home and drink myself stupid if I didn't have this thread.
In my defense, it's a goddamn prototype, and I was planning on doing an upgrade soon which would allow people to use it without me (it makes it more like our current systems, which people know how to use).
I will do that sometimes, but only with C interfaces and I don't want to expose the internals directly, but need to use them in the tests
It might be because I have only ever worked one way, but placing my tests in a separate repository than the code boggles my mind. The software process around validating that branches use the correct test repository branch must be annoying.