« first day (1007 days earlier)      last day (4167 days later) » 

17:00
when you think about it though, footswitches are less silly than waving your hand against a hard surface and using your eyes to track how your hand is moving corresponding to a cursor.
r.i.p doug englebart
@LaughNowButWe'llBeInCharge ... uhm... what foot switch
You use your eyes to track your hand?
@CatPlusPlus what is ; used for anyway
I use nipples.
@kbok Yup. That is why I picked a screensaver in the first place. Doesn't get much more visual.
17:02
@EiyrioüvonKauyf Repeat last f... or F... command.
@EiyrioüvonKauyf By default? Some repeated movement.
does the question author get a ping/notification if I @author him in a comment on my answer?
Only if you include sufficient number of goats.
how many do I need?
17:03
@Pawnguy7 Yeah :p you get a lower cool factor though.
goat goats[20]; will those suffice?
0
Q: Code numbers to chars and write to a file

DragonGamerAgain I've got a little problem with my DLL: I try to convert a number (in this case "20") to a char which I can write to the file. It doesn't really matter in which way this is done (whether following the ascii-table or not), but I need a way to convert back as well. This was my attempt: file...

@kbok as opposed to a game?
(char*)20
seriously... the shit people try
also how do { and ( work in code ...
17:05
Why is making a tree so hard. D:
Because seeds are not magical.
We need magic fertilizer then!
@DeadMG I thought here " stupendously bad idea" you were going to say stupendously stupid
Then I can make a Treant and it'll wubs me and I'll take care of it and give it sun and pet its leaves.
@ThePhD what aspect; i assume you're not bioengineering one
17:06
@Pawnguy7 Yep.
@ThePhD treants don't wub u; they eat u
Link to messages.
=[
@LaughNowButWe'llBeInCharge But I can point you towards places where idiomatic C++ is wonderful.
(It's hell)
Nah, it's wonderful <3
@LaughNowButWe'llBeInCharge github.com/rmartinho/ogonek
For more crazy stuff, you can look at mickk/annex, for crazy template what-the-fuck. bitbucket.org/mickk/annex/wiki/Home
17:08
Annex is on bitbucket.
@BartekBanachewicz is working on an engine and has even sold a copy (copies?) of it.
I don't know the URL for bartek's stuff, because I don't even know what it's called
There's also springbok which has a lot of pretty well-written code in it.
I'm still within budget, and only one game left in my wishlist. Woot.
^@R.MartinhoFernandes steam sale?
I don't know why that repo even exists.
17:10
If you're into boost wanking, then you'll want to browse @sehe's answers. And that's about all the places that have good code that can actively remember @LaughNowButWe'llBeInCharge
baulder's gate is $5
@ThePhD yup... that's me. boost wanking is fine. ACE and POCO too. I'm coming from years of reluctant java coding where ~it's all about da frameworks~
@LaughNowButWe'llBeInCharge I'm sorry for your trauma.
@ThePhD i'm recovering and thank you for understanding. The first step is admitting you have a problem, right?
Java is not bad insofar as the core ideas of it are not bad. It was the design decisions after some of the core ideas that really made it flounder.
17:13
The JVM is a marvel of software engineering
Java's problem is not in JVM.
Java's problems are in its fundamental design choices.
also the security problems are the priority atm
i don't think anyone disagrees. The list of Java's problems are long indeed. I have respect for the language but it has just become too much.
17:15
Maybe I should reuse Springbok's name for something else.
I have a hard time coming up with project names lately.
There's languages people complain about, and ones that nobody uses.
And then there is VB.NET.
@CatPlusPlus what's the project about
Any recommendations for what I should do if we're buying a codebase from a contractor, and there are some weirdnesses. Like he never puts the "default:" in his switch() statements, so the compile hands out all these warnings about unhandled enums.
17:16
I heard that in one variant :D
Bill Gates still writes VB.NET
@melak47 TODO/time tracking.
E.g. -- all user-created classes are second-class citizens; all objects must be placed into the garbage collector; no operator overloading; no lambda support (IIRC); etc. etc.
@LaughNowButWe'llBeInCharge bill gates can do wtv the fuck he wants lol
Bill Gates could spend teh rest of his days writing in Machine Code, and nobody would give a fuck.
17:16
Java 8 has lambdas.
@Borgleader i know, but he chooses to write in VB.NET. I just think that is interesting.
oooooh .... anonymous functions
hey, c++11 beat java to the punch again
@CatPlusPlus eh, hm. BoringApp#213
Java isn't even worth punching at this point
and who says the standards process is too slow?
GC and operator overloading are not very significant, if you really have to mark them as problems.
17:18
Java 8 isn't that bad
Now, Scala is very interesting, but basically does little over what Haskell has been doing for years.
Also classes are not second-class citizens, what
@LaughNowButWe'llBeInCharge <s>can you compare Scala and Haskell</s> lemme just find a SO post
@CatPlusPlus User-defined classes are not allowed to do any of the same things as primitively defined types.
@Almo Tell them about it?
17:19
@ThePhD Like what?
For example, someone in Java through that the String class should have the ability to concatenate two strings with the operator+. But other classes can not and do not have that functionality.
I've never worked with a contractor; was just wondering if that's a reasonable thing to ask for
@LaughNowButWe'llBeInCharge He doesn't write code these days...
The most critical problems with Java are non-reified generics, checked exceptions and soul-crushing lack of expressiveness.
2
@EiyrioüvonKauyf hardly intelligently. I know little about either other than what I've read on paper and seen example code.
17:20
how do i strikeout things???
---word---
@ThePhD It's only String that's special-cased.
@BoltClock I need someone to fix chat . the formatting is non existent and it makes me sad
And that's mostly because Object has toString().
17:20
ok
@BoltClock also how can we not have Latex formatting in SO? Math SO is giant; also can we get wolfram alpha integration / a bot like Freenode. and is there a stackex. chat doc.
I am not a dev. I have no answers to any of those questions
@R.MartinhoFernandes i was wrong, not VB.NET, but "C, C++, and some BASIC"
@BoltClock how do i find a SO dev
... you can stop now
17:21
C# rather.
Ahahaha new chat features.
You must be new here.
Also there are no chat developers.
Furthermore, integer primitives are allowed to exist on the stack or heap, while classes are always garbage-collected and on the heap.
@R.MartinhoFernandes Your binary-to-text fucked up for a bit.
@ThePhD That's kinda far from any of the big problems.
(The heap is a stack!)
17:22
It's not really a problem at all.
@R.MartinhoFernandes Something behind me dropped to the floor and a second later your edit appeared.
Allocations on managed heap are basically free.
@R.MartinhoFernandes (Java's heap comes with the tax that it's always garbage-collected. D:)
Which makes it not free, just a pay-later deal.
@ThePhD You still on that bullshit?
user142019
@CatPlusPlus Terrible community designing terrible overcomplicated crap.
17:23
overengineered like XML
@R.MartinhoFernandes I don't like garbage collectors. ._.
Also that Android will never support Java 8.
Curse them and their framerate-fucking!
i wish java had friends
@CatPlusPlus Does it support Java7?
17:24
JVM has an incremental GC.
@R.MartinhoFernandes No.
@Aboutblank they are all dicks
user142019
IIRC Android uses Java 5.
user142019
17:24
Ah.
Java 6?
Jesus. D:
Not like there's much difference between 5 and 6.
come on, it's not like Java 7 introduced lambdas or something.
no. oh god. no
7 has try-with-resources.
17:25
anything < Java 8 should be shot
And some primitive generic type inference at declaration site.
The <>?
user142019
AFAIK Java 8 still lacks type inference for local variables so still not worth using.
@CatPlusPlus Mostly a platform upgrade.
string switches
17:26
Yeah, that's very useful.
user142019
==-based switches or no switches.
Pattern matching or bust.
Cue "pattern matching sucks"
user142019
looool == in Java.
I think internally C# just generates a dictionary and switches on TryGetValue for its string-based switch implementation.
17:26
Erm, no.
@R.MartinhoFernandes Hey, I was loading a game and couldn't say it in time :(
@R.MartinhoFernandes I was going to add For Sufficiently Large String-Based Switch Statements
For smaller ones it seems to just do a if/else tree.
i just made clang segfault :3
You monster.
if the case values are constants, it should be relatively trivial for the compiler to hash the string values at compile-time, and then generate an integer switch on hash(val).
17:28
Yeah, that's what I mean by Dictionary
Er. C#'s hash-mapping type is Dictionary<TK, TV>
Non-pattern switch is mostly useful for enums anyway.
I know, but that's not really the same thing.
Hi folks
what I described is in-place and mostly precomputed
generating a Dictionary would involve run-time allocation and hashing of the case values
@DeadMG It interns the string and uses reference compares.
17:29
What if you opt the strings out of the intern system?
IIRC there's a way to turn that off?
What?
Constants are always interned.
Ah.
There's no reason not to.
Why would you opt out of string interning :psyduck:
jees the clang backtrace is over 30 lines long ._.
17:31
Cool. Nobody cares.
@pourjour It doesn't work.
I need to remember my CVV code.
@CatPlusPlus i wish i could say "i'm testing code that sends things to the bin; oh look it works"
how do i get bin privs
@EiyrioüvonKauyf You don't.
:10716331 Attach a debugger and check the variables in your loop.
17:32
Ask in a year or two.
@kbok could you get the code from the link?
@pourjour Check your file handles, I suspect the file was not found in the working directory (the working dir is probably not what you think)
Use a debugger. Don't tell me you don't know how to use one. That only means it's time to learn it.
But but :effort:
@kbok Nah, the loop is wrong.
17:35
@R.MartinhoFernandes How is that?
@kbok I dunno, but since it copies something, the files must definitely exist.
@R.MartinhoFernandes yeah the file exist in the correct path
read produces an EBADF error if the fd is bad.
I'm suspicious about the loop
@R.MartinhoFernandes I assumed an empty file appeared which the explorer displayed as 1kb long
17:37
Fuck it's cold in here.
Evening
Okay now :D paperwork :D
Explorer isn't that bad.
It's not that good either.
@kbok: Looking at it, I'd guess that's basically a Blanc de Noir. The difference is that Rosé is basically a mix of red and white wine. A Blanc de Noir is a white wine made from non-white grapes. For a normal red wine, you crush the grapes and leave the skins in the juice for the first few days of fermentation. For a Blanc de Noir, you crush the grapes and remove the skins much sooner (sometimes immediately, sometimes after a few hours).
It rounds up to the nearest Kb. (Yes, in this case, it doesn't apply)
17:40
I mean it's not so bad it displays empty files as non-empty files.
@Jeffrey could you given an example why you think it is not good enough?
I have no idea why would you ever use it for file management, but that's another story.
@JerryCoffin Actually, red and white blends are forbidden for most of wine types (except for champagne)
@Jeffrey well me and @DeadMG are dying of heat so it evens out
17:41
@Tiina the whole "We don't follow standards. We create our standards" thingy.
Yes, in France, blending wine is downright illegal :)
If you remove the skins immediately, you'll end up with an almost-white wine (often just a hint of straw color to it). If you leave it in for a few hours, you get something like that one, with just a hint of color.
@Jeffrey :D true
@kbok the "source" variable type is it correct?
linux cannot wirelessly talk to windows I guess it's the same reason
fuck me, so hot I am struggling to read even the most basic of instructions
god help me when I want some food
(removed)
"to eat this apple, just start chewing on it" "huh? how do I chew it though?"
I said stop it.
reverse psychology?
17:44
@Tiina To be fair I don't even know how IE goes this years but I just remember how painful it was to make your website layout working on it and the bunch of lines of code you had to write just for it. So I just decided not to consider it anymore.
@kbok Not exactly -- you can't (normally) mix wine made from red vs. white grapes. A Rosé is normally a mixture of red and white, but both made from the same (red) grapes.
I didnt remove it, I just typed (removed)
Stop being ironic mods
more people? o_o
(removed)
17:46
@JerryCoffin hmm, that explains why jquery sometimes behaves bizarre on IE
@JerryCoffin Actually AFAIR Rosés are made by leaving the skins in for a few days
@Tiina your problem is IE. IE and some other people are too cool to follow some javascript standards iirc
fuck this, time to shit in a cold shower for the rest of the night or something
too cool to follow?
@JerryCoffin what happens if you mix them anyway
17:47
@Tiina Did you mean @Jeffrey?
right
@thecoshman thats unsanitary
@Eiyriou? :3
@Aboutblank i'm just ignoring that
@JerryCoffin what do you mean too cool to follow :)
@melak47 Depends on what you mix. The "you can't do it" is purely regulation, not a technical difficulty.
17:48
@Tiina that's why things like this exist: code.google.com/p/ie7-js
@melak47 You go to jail!
@Tiina Unless you're on mobile, just use the reply arrows next to messages. Reduces your chances of pinging the wrong person
@melak47 That's roughly counterfeiting
@BoltClock :D like this
@Tiina Yep, that's it
17:50
@ThePhD I'm actually pretty selective in my usage of boost. Pretty large portions make me want to run when used idiomatically. Also, I've a natural hesitation with the non header only libs.
But I could get over that minor bump if need be.
@BoltClock i m mostly working with linux, so I m a typer
@sehe boost makes me cringe. necessary evil
@sehe Yeah, some boost libs have a real entry cost for the guy after you
also just making sure - malloc and the other memory functions don't clean up after themselves right?
Still nothing compared to Java-style frameworks
17:52
@kbok and before that I'm the guy after me :)
@EiyrioüvonKauyf The memory is freed when your program crashes, yes
^ nah i mean assuming everything works out.
@sehe Well, I expect you to discover each lib only once :)
The SO's migrating system is sooo broken.
boost::interprocess::managed_shared_memory manager cleans up on destruction. that have me a headache -_-. it's not an assumption. if you try using anything it allocates after it dies. .... bad things
17:53
@EiyrioüvonKauyf That's a bold assumption but no, you have to free() everything afterwards
@kbok that's a different league but the net is comparable for me
@Jeffrey So are half the people who suggest sites to migrate to
@kbok mmmm yeah in a way. But I've pretty much dismissed some right away (e.g. MSM)
@BoltClock So what should I do if I believe a question should go to Code Review? Exactly?
@Jeffrey cry about it
17:55
Also, that's why there are votes and decisions are made in groups. We hope that a little bit more of half of the people knows what they are doing.
@sehe The big difference for me is the "pick what you need" approach of boost vs "take this whole package" approach of Java frameworks. With Java frameworks if you know the framework you're productive from day 1, else you get to learn everything. OTOH with boost you're very likely to know most of the bits already, even though you're very likely to have to learn about stuff too.
@sehe Never used it, I should read about it later
@sehe what is the use of that ...
@EtiennedeMartel lol, who wrote this?
17:58
@sehe IMO, Java frameworks are very rooted in the web developer mindset of "let's create a whole new framework from scratch because old ones are so outdated"
@Rapptz Thom Hartmann
@Rapptz As written at the top article, a certain Thom Hartmann.
It's based on old English law from 1689.
Although I don't see how the author's identity would influence what he wrote.
It was more so written in a sarcastic way, i.e. "Is this person serious?"
The Bill of Rights is an Act of the Parliament of England passed on 16 December 1689. It was a restatement in statutory form of the Declaration of Right presented by the Convention Parliament to William and Mary in March 1689 (or 1688 by Old Style dating), inviting them to become joint sovereigns of England. It lays down limits on the powers of the crown and sets out the rights of Parliament and rules for freedom of speech in Parliament, the requirement for regular elections to Parliament and the right to petition the monarch without fear of retribution. It reestablished the liberty of Pr...
17:59
...do you guys use nsfw tags

« first day (1007 days earlier)      last day (4167 days later) »