« first day (1872 days earlier)      last day (3126 days later) » 

user55340
1:20 AM
Happy Coffee Day:
 
user55340
2:43 AM
Am I missing anything in this:
 
user55340
(realizing its a rather stylized view that actually does have some things missing - more important though, does it make sense?)
 
user55340
+------------+           +------------+
|            |           |10k delete  |
| Question   |           | votes      |
|            |           |possible    |
+-----+------+           +-----^------+
      |                        |
  Close vote               Two days
      |                        |
+-----v------+           +-----+------+        +-------------+
|  Review    |           |Score -3 or |        | Down voted  |
|  Queue     |           |below: 20k  |        | No posostive|
|            |           |delete Votes|        | answers     |
 
6:38 AM
571
A: My boss decided to add a "person to blame" field to every bug report. How can I convince him that it's a bad idea?

gnatTell them this is only an amateurish name for the Root Cause field used by professionals (when issue tracker does not have dedicated field, one can use comments for that). Search the web for something like software bug root cause analysis, there are plenty of resources to justify this reasoning ...

^^^ Flagged as offensive.
 
7:11 AM
Probably by his boss.
 
7:31 AM
0
Q: When was block scope for variables introduced to C, and why is it still frowned upon?

cnstIn light of the recent OBJ_obj2txt vulnerability in LibreSSL (which was found during the OpenSMTPD audit, and does not affect OpenSSL), it came to my attention that at least the memory leak issue has likely resulted from some earlier code refactoring, where the block scoped variable char *bndec w...

is an exact duplicate of
6
Q: Is the usage of internal scope blocks within a function bad style?

MainMaThere are some (quite rare) cases where there is a risk of: reusing a variable which is not intended to be reused (see example 1), or using a variable instead of another, semantically close (see example 2). Example 1: var data = this.InitializeData(); if (this.IsConsistent(data, this.state))...

Guy's just trying to start a debate anyway.
 
 
4 hours later…
11:50 AM
Happy Coffee Day
 
 
2 hours later…
user55340
1:41 PM
@JimmyHoffa glance at those videos from last night.
 
user41796
2:46 PM
@RobertHarvey He's certainly got a bit of a ranty tone to the question, no doubt. But that didn't stop me from addressing some of the incorrect assumptions behind that rant.
 
user114359
Hello! Feels like I have not been here in a year, but it has only been a week.
 
user41796
2
A: When was block scope for variables introduced to C, and why is it still frowned upon?

GlenH7TL;DR: It's not an issue of block scoping, but rather a misunderstanding of how pointers should be handled. Courtesy of the vulnerability listing that you posted, let's take a look at the code in question. 489 int 490 OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) 491 ...

 
user41796
I think I invested way too much effort in addressing a rant.
 
user55340
It's a good way to get rep.
 
user41796
True. And I need more delete votes.
 
3:09 PM
Paris is a terrible place to need to take a dump.
4
 
user114359
3:24 PM
Sometimes it is best not to wonder why someone asks a question:
 
user114359
50
Q: If cow = beef, pig = pork, and deer = venison, then where is the word for human = [flesh as food source]?

CorbinneMaybe it's the season of Halloween, because it's kind of a grim question, but I have seriously wondered from a language point of view - is there a word for human as 'food-meat', or has there ever been, in English or related historical languages? Obviously there is sanctity of life in civilizati...

 
user41796
@MichaelT sed s/posostive/positive/ And I didn't think that missing tags blocks the migrate. I thought the system substitutes instead. Otherwise, looks correct, yes.
 
user55340
3:50 PM
Fairly sure for regular closes, missing tag will do it. Mods can force it through though.
 
user55340
It's the start of a post on mso for a flow chart with answers as links from each box.
 
user41796
@MichaelT That could be the difference then, yes
 
user41796
I know on Engineering, I have seen and have migrated questions that ended up with that tag. But my votes are a bit different over on Engineering.
 
user55340
I'd have to dig a bit... I recall pinging World about a migration that didn't because of a tag.
 
5:38 PM
hello everyone
 
whatisname, are you familiar with the web development workplace, by chance..?
I have (what I believe to be) an "ethics" question in web development for small businesses
(and yes, programming is involved)
 
5:54 PM
not specifically web development exactly
let's hear it anyway
 
ah nevermind, it's OK; I asked the javascript chat
my question was essentially this: is it ethical to use a basic template when making websites for small businesses/clients and then spend more time customizing it for that specific client, rather than trying to build a basic structure from scratch?
those who responded in the javascript chat all said "yes," and that it's the norm in the web dev industry
(a "basic template" being a bootstrap template)
however, if anyone here would like to offer their own input, I'd be curious to hear their responses
 
Intuitively I'd say programmers.stackexchange.com would be a better match... — moooeeeep 35 secs ago
 
user114359
@daOnlyBG What you describe is very roughly what my employer does to make money, as does every other company in the market.
 
Sure, why not? A template is just another tool you can use. In some sense it's not much different from using a library or framework. The client pays for a solution to a technical problem (normally). If a template solves it (and all legal issues like copyright/payment etc are properly resolved it should be ok. (unless explicitly agreed not to use templates, though why should they even care?)
 
user114359
A template is simply the common, boring crap that you would need to do every time anyway, so why not reuse it? Our profession is built around code reuse.
 
6:11 PM
@daOnlyBG: ethically there is nothing wrong with it, plus, most clients would rather you do that anyway, because they'd rather you start with something mostly there and make it work in an hour, than to charge them 10x and do it from scratch
the only other concern is ownership of your template in situations with assigned copyrights
 
I'm voting to close this question as off-topic here because I think it would better fit to programmers.stackexchange.com and should maybe migrated there. — moooeeeep 17 secs ago
 
Yeah, that was my understanding. It's my understanding that a basic tenet of coding is to not "reinvent the wheel." Nevertheless, I wanted to make sure that this wasn't a big "no-no," since as a web-developer, one would be making money off this code
 
how is using a template any different than using the microsoft <whatever> library?
 
@Duga what harm is it to you if I'm asking this question here?
 
user114359
@daOnlyBG The only "no-no" is if the following two conditions are met. 1. the template or code being reused contains customer-specific code or data, including proprietary or confidential customer information. 2. your company and the customer have a contract in place that expressly forbids sharing said code or data.
 
6:13 PM
@daOnlyBG: Duga is a bot
 
ah, ok
 
user114359
@daOnlyBG If you follow the link, someone recommended posting a question here at Programmers that was asked at SO. SO gets bad questions, sometimes people recommend cross-posting here. That alerts us to be proactive and clean it up ASAP.
 
@Snowman OK, so one should check (and then double check) the license for the template, and any specific contract with the client
 
user114359
@daOnlyBG If it truly is just a template, none of what I wrote should be applicable. But I have seen an employer take a customer's code that we billed them for, then reuse it with another customer. Lawyers were involved and it checked out.
 
Was it a big headache?
(you know, lawyer involvement)
 
user114359
6:15 PM
Yes, but not for me.
 
Ah, ok
 
@Snowman Apologies, if the impression occured that broadness would be a criterion for migration to programmers. I rather meant to indicate that the question should either be migrated there or even closed altogether because it's indeed kind of broad. — moooeeeep 31 secs ago
 
user114359
That was all at the executive level, reusing code between $10 million customer projects.
 
Interesting. Well, in the specific scenario I have in mind, I don't think that would be an issue
but hey, thanks to everyone here for offering their responses
 
user55340
-4
Q: Algorithm for best discount for multi-city trip

aygulThere is multi-city trip for the clients. Prices are like p1, p2, ... pn for every next destination and there might be a single discount for the trips like pi to p(i+1) which is never higher than pi, let's say ni<=pi. And there might be some group discounts like only for p1-p4 there is g1_4 and m...

 
user55340
6:21 PM
^^ improve my company core product that I can't describe.
 
user114359
@MichaelT I have worked on similar problems before, and there is no way we can answer this in a reasonable amount of space anyway.
 
user55340
Especially when the starting point isn't defined.
 
user55340
It will become a morphing question from hell as additional tidbits are added.
 
user114359
You are right, it is probably a rules engine which is a whole different can of worms.
 
user55340
The custom rules engine in the pos was a nightmare to debug.
 
user55340
6:37 PM
Btw, if you see an A* question that lacks , add it.
 
user114359
@LightnessRacesinOrbit What I have done in similar situations in the past is to have a single build server (hardware) running multiple build servers (software) each in a VM. Use the same build environment: CI server, compilers, etc. but each server would have its own versions of the software being built, supporting libraries, etc.
 
user114359
The whole shebang is server-side, managed by MIS, configured by a small number of developers who can be trusted not to mess up a build server's configuration because one build is a special snowflake and needs to screw up the other 20 builds on the same server.
 
@Snowman That sounds like what I was fantasising
Well, with the exception of a single, centralised CI server, I guess
@Snowman haha yeah - well summarised ;)
I guess then, ultimately, from a logical perspective you just end up with multiple build servers..
 
user114359
The worst thing is to have builds running on developer's systems where there is no consistency or repeatability.
 
Agreed.
What sort of software did you use to make the creation/management of the VMs as seamless and pain-free as possible? It would be nice if I could sort of set them up without having to manually install an OS and whatnot each bloomin' time
 
user114359
6:58 PM
I have not managed a C++ build server before, but I have done it with Java using Jenkins. Best to have a template VM with the OS and all the server software which you can clone if you truly need another environment.
 
Okay so just script the rest then I guess
 
user114359
As many scripts as possible - automation saves time and prevents lazy typos and other errors
 
As well as automated builds, would you allow development on those VMs? Or encourage developers to keep their own copies of each VM locally for development? Seems like managing sync'd user lists on the build server VMs would be a pain otherwise.
 
user114359
You might be able to do this with one server though, and switch between library versions and compilers and whatever else via configuration
 
That's what I'd really like, but I think the goal of also targeting e.g. CentOS ruins that. Consequently dropping it (and focusing on VMs) at least opens us up to autobuilding Windows software too, I guess.
 
7:01 PM
@LightnessRacesinOrbit we used jenkins with docker for a variable build environment (different platforms, etc)
@Snowman docker helped us with this too, it provided consistent build environments on both systems (CI/local)
 
user114359
@LightnessRacesinOrbit Network accounts! Any build server worth its salt should hook into AD or LDAP
 
@Snowman Fair point
 
How big is your team, too?
 
@enderland only 6-9 (depending on a few things; there is a h/w team that occasionally intersects with us when they're writing firmware and it's going into SVN)
 
user55340
@Snowman I've done progress on Jenkins before. And node.
 
user55340
7:04 PM
It's just about invoking the right build script and having the stuff on the server.
 
user55340
The progress stuff was even more fun with 32 and 64 bit builds requiring different servers (can't have both on the same machine) so had slave affinity setup for that.
 
user114359
@MichaelT yep, that's the idea. Put all the stuff you need (e.g. dependencies) on the server and switch between them via config
 
Docker looks like what I was hoping for, too. c.f. VMs
 
user55340
@LightnessRacesinOrbit check out devops borat on docker.
 
So. I'd create n scripts one for configuring each build environment under Docker. I'd publish these scripts for "personal" use, publishing (somewhere) stringent rules on which build environment is to be used for which project. I'd also set up Docker and Jenkins on my physical build server and have CI running there. Sound about right?
I still need to look into how Docker can get me e.g. a CentOS 6 build environment on a Fedora host (looks like it can, though), and I'd still need a VM for Windows builds (perhaps I give up on that).
But otherwise doesn't look like too many moving parts... which is nice....
Actually I'm probably just as likely to let all if not all dev happen in Docker instances on the build server.... I guess....
I'm sure I'll have many more questions, but I guess I should have a play around with these tools first and see how I get on. But this has been very helpful — I feel much more confident that I'm on the right/conventional track. Thanks! Feel free to dump further ideas at me....
@MichaelT You mean Twitter?
@enderland What was your host OS?
 
user55340
7:21 PM
In devops is turtle all way down but at bottom is perl script.
 
he's no Pakalu Papito
 
user55340
This one hits home for me:
 
user55340
Childrens of J2EE devops are have unfair advantage for assemble Lego because they can able use Spring Integration.
 
user55340
You are not true Java programmer if you are not write enterprise software for personal project.
 
user114359
That twitter account is pure win
 
7:29 PM
@LightnessRacesinOrbit ubuntu for the host, generally, though our build system might have been different than that? I'm not really sure what our jenkins was running :)
I'd guess ubunutu too
 
Think I'll probably stick with Fedora. Though, since I'm rebuilding the whole thing, I have choice.
Docker is really the core of this though I reckon. Might still need VMs if I can't use it to "simulate" foreign distros. Like we need to build CentOS RPMs occasionally.
Need to read more.
 
@LightnessRacesinOrbit I think it can simulate other distros, we had an ARM build going too
so I'd think it could do a different version of linux
 
@enderland ok
We have three ARM targets going on as well, but IIRC none of them are for machines with actual Linux on them so that can be built pretty much anywhere. Basic cross-compilation, that one; the Docker images for those would be pretty thin.
While doing all this I'm also trying to keep in mind I'd want it to be bloody simple to use and maintain, for all involved. Snowman alluded to why earlier.
 
that's why I was asking about team size... :)
 
:P
I'll be maintaining it overall, but I really want it to be easy to recreate in future, easy to document, easy to handoff if/when I leave .... and easy to use locally for dev. Everyone's on board with streamlining our multi-target builds, but I still have to sell the solution!
 
user55340
7:45 PM
Reasons to hate JavaScript++:
 
user55340
48
A: Make your language unusable

VɪʜᴀɴJavaScript Shell This will make the language completely unusable. clear(this); Isn't it nice how JavaScript has such a nice function to destroy itself? This is pretty simple, the clear function completely empty an object. this refers to the global object clearing out everything including ...

 
=(
 
Huh confused about their pricing model though.
 
8:34 PM
Gahhh. Never ever derive your implementations directly from types. It works and there's no explaining why. What the hell have I done.
 
user55340
Meh. That one box is boring. It's 42424
 
8:50 PM
@MichaelT :)
 
user55340
@RobertHarvey if you can't override the == operator, the only reasonable thing for it to do is a reference equality test. Value equality must be overridable
 
9:07 PM
Of course.
 
Ok, time to go home, and ponder the terrible things I did today.
 
You beat a homeless man?
 
that's way more code than I should have written to do that.
@RobertHarvey feels about right
 
user55340
He abstained from coffee.
 
@MichaelT missed my second cuppa - was too busy coding and recoding a couple thousand lines of junk over and over... if I have to redo it this many times, the whole idea is probably just wrongheaded.
 
user55340
9:09 PM
Watch the video on a perfect cup and relax.
 
user55340
Put on some German electronica and open up that file where it was done right.
 
psr
10:34 PM
@JimmyHoffa Well, at least be consoled by the fact that if more developers pondered the terrible things they did the world of code would be a better place.
 
11:32 PM
and software would be much more expensive and we'd be lucky to be at a Win95 level of development today
 

« first day (1872 days earlier)      last day (3126 days later) »