PlanetCrap 6.0!
Front Page (ATOM) • Submission Bin (4) • ArchivesUsersLoginCreate Account
You are currently not logged in.
T O P I C
The Future of Planetcrap's Message Board
January 7th 2012, 08:01 CET by Charles

With Quarter to Three in the process of becoming a forum that no one can post on at all (with a current 1/15th of the posts belonging to banned users), is this finally Planetcrap's chance to regain the spotlight? Will the site revive? WILL MORN COME BACK?

Probably not.
C O M M E N T S
Home » Topic: The Future of Planetcrap's Message Board

|«« - Previous Page - Next Page - »»|
#721 by Wudi
2012-04-16 22:27:20
/someone/something/

w0rd up!
#722 by m0nty
2012-04-17 03:58:47
http://tinfinger.blogspot.com
You guys are killing PlanetCrap.
#723 by Milan Brezovský
2012-04-17 12:52:28
http://uglycode.com
Really, Wudi, really?

- I've seen table names with diacritical marks, you know, like `Zázazníci` instead of `customers`
- I've seen the dickretarded habit of naming tables `tbl_something`
- I've seen tables that needed no less than 3 joins to be of any use, because some dickwad couldn't just add `order_id` to it.
- I've seen a database when foreign key (or lack thereof) to table users was called `user_id`, `users_id`, `id_users` or just `user`
- ditto with table names, mixing singulars and plurals, like `users` and `delivery`
- I'm not going to mention people who don't add PK, FK, indexes, or use VARCHAR for any data type, or instead of adding two columns with flags have one column with, say, numbers, and 2 special values like "NA" and "PENDING" (and of course NULL, too)

Bad data design is universal. People who don't know what they're actually doing will fuck projects up with any technology.

Parhelic Triangle is coming. Eventually.
#724 by Milan Brezovský
2012-04-17 13:09:24
http://uglycode.com
Also - just as you can make table Dimensions and set width, height, unit to NOT NULL, you can just as well make an XML schema that checks that.
(note - this snippet isn't valid, I'm just copypasting shit together)

<xs:element name="product_sku" type="xs:positiveInteger"/>
...
<xs:element name="dimensions">
  <xs:complexType>
    <xs:attribute name="width" use="required" />
    <xs:attribute name="height" use="required" />
    <xs:attribute name="width" use="required" type="unit" />
  </xs:complexType>
</xs:element>

<xs:simpleType name="unit">
  <xs:restriction base="xs:string">
    <xs:enumeration value="inch"/>
    <xs:enumeration value="mm"/>
    <xs:enumeration value="nautical mile"/>
  </xs:restriction>
</xs:simpleType>


So yes, it's much longer than defining column as ENUM or DECIMAL(10,2), but you can add regexps, complex types, all kinds of recursion, etc, etc. Again, not a replacement for database, but it has its uses.

That said, XML Schema (.xsd files) are not mandatory, and from my experience, not used that often (unless, of course, it's an enterprise solution, where no sane person would avoid XSD or some alternative like RELAX NG... but RELAX NG is for hippies like Ian Hickson).

Parhelic Triangle is coming. Eventually.
#725 by Milan Brezovský
2012-04-17 13:10:41
http://uglycode.com
Also, Gunpoint, please tell me that you've made that example up and it has no real basis in real projects. Pretty please?

Parhelic Triangle is coming. Eventually.
#726 by Gunp01nt
2012-04-17 13:44:51
supersimon33@hotmail.com
No, I've seen that several times on projects where people don't really understand XML or SOAP or webservices but they just generate a WSDL based on their weird object structure. In those cases they pretty much expect people to generate a proxy from the WSDL and never come into contact with the raw XML.

She's probably had sex with like 4 different guys by now and has no idea who he is anymore, his face lost in a memory sea of dicks.
#727 by Milan Brezovský
2012-04-17 18:46:14
http://uglycode.com
Gunpoint, that is... depressing. I'm depressed now.

In other non-news, what the fuck is so interesting about Tiny Towers? I know everybody bitched about it seven decades back, but, seriously? The game stops being fun after 2 minutes, then it's all pure F2P blackmail. I mean, seriously? The game has almost zero mechanics that don't require playing the game 230 times a day and waiting for 30 minutes for everything.

I mean, yes, I understand what F2P is, but I was hoping it would be a fun strategy game like Sim Tower for at least, I don't know, one week, two weeks? Oh naive me.

Parhelic Triangle is coming. Eventually.
#728 by Matt Perkins
2012-04-18 00:13:19
wizardque@yahoo.com http://whatwouldmattdo.com/
+1 for bago. Sounds like you need a less stressful job my friend.

+1 for XML. It has it's uses, and just like anything else, those uses can be perverted or incorrectly implemented, but it shouldn't diminish XML because people don't know how to correctly build it.


Real world examples I've used XML for: config files, transporting data between databases and between protocols, tiny database systems, web pages. All in cases where data needed to be more than just a list of numbers, but a fully self explained and relational system.

"programmers talk from a very deep gnome cavern, full of gold mechanics" - wisdom from the ancients
#729 by gaggle
2012-04-18 01:57:30
Tiny Towers is fairly disgusting.

"Roses are red, violets are blue, rubbish is dumped and so are you." : : - FML
#730 by gaggle
2012-04-18 02:12:28
We use YAML and JSON, but it sounds many of the same principles apply. Human-readable and -editable data allows easy prototyping of new features, since it's just a matter of adding new fields and values and you're done. And should one of the tools break that usually edits the data it's still possible to get shit done. Also easy to check history, since all the usual VCS tools work. Another major advantage we've had with files over databases is that it's dead-simple to branch off into a sandbox to develop new features. We're always adding stuff so the data is constantly evolving, and being able to easily branch code and data is all kinds of critical.

Basically comes down to editing a file is easy for everyone but databases require domain-specfic knowledge that no one in their right mind wants to get into. There's a time and a place for databases, but for almost all data I work with files are far more appropriate.

"Roses are red, violets are blue, rubbish is dumped and so are you." : : - FML
#731 by gaggle
2012-04-18 02:24:39
Actually, why use XML at all over JSON or YAML? Honest question, I'm not super familiar with XML. It could be that I'm spoiled by Python which comes fully supporting of both standards.

I mean, YAML allows serialization and deserialization to and from data-structures, it's as easy as calling YAML.dump/load. I hear XML is useful if the data needs validation but I don't know why you can't just validate the data itself once it's in data-form, if you don't trust the source.

For something like a config file YAML and JSON has been great successes for me since the data read/writes are completely trivial. It's my understanding you need to do more of the serialization legwork yourself with XML, but maybe I have that wrong?

"Roses are red, violets are blue, rubbish is dumped and so are you." : : - FML
#732 by Milan Brezovský
2012-04-18 02:30:31
http://uglycode.com
#730 by gaggle

We use YAML and JSON, but it sounds many of the same principles apply. Human-readable and -editable data allows easy prototyping of new features, since it's just a matter of adding new fields and values and you're done. And should one of the tools break that usually edits the data it's still possible to get shit done. Also easy to check history, since all the usual VCS tools work. Another major advantage we've had with files over databases is that it's dead-simple to branch off into a sandbox to develop new features. We're always adding stuff so the data is constantly evolving, and being able to easily branch code and data is all kinds of critical.

Basically comes down to editing a file is easy for everyone but databases require domain-specfic knowledge that no one in their right mind wants to get into. There's a time and a place for databases, but for almost all data I work with files are far more appropriate.

QFMFT

Parhelic Triangle is coming. Eventually.
#733 by Milan Brezovský
2012-04-18 02:35:13
http://uglycode.com
XML, YAML and JSON can be, if I remember this correctly, all converted between each other without data loss. XML has namespaces, that might be a bit tricky? Dunno. *hic*

Wudi might like YAML better since it's shorter. I think he looks like a YAML guy to me.

Validation by XML schema is good gaggle, because it usually throws an error before even you get to your parsing/processing/importing/API/RPC code. Basically, it's for saying "fuck off 3rd party, I'm not reading your XML, it doesn't validate plz fix kthxbai".

Parhelic Triangle is coming. Eventually.
#734 by Wudi
2012-04-18 02:48:14
I doubt I would like it either. I don't care much for this neckbeard shit.

Zep--

w0rd up!
#735 by Milan Brezovský
2012-04-18 16:47:16
http://uglycode.com
Said the guy who works with Microsoft technologies.

Parhelic Triangle is coming. Eventually.
#736 by Greg
2012-04-18 16:56:23
Are you saying that's a bad thing?

#737 by Milan Brezovský
2012-04-18 18:40:29
http://uglycode.com
I'm saying Microsoft developed XML, and MSSQL Server can index and search XML columns with XPath or XQuery or something. Or so I've heard. Which sounds pretty exciting to me, honestly.

Parhelic Triangle is coming. Eventually.
#738 by TreeFrog
2012-04-18 23:39:52
#730 by gaggle

Basically comes down to editing a file is easy for everyone but databases require domain-specfic knowledge that no one in their right mind wants to get into.


What? Hey, fuck you! Everyone needs a database. A data warehouse, even. EVERYONE. Whether they know it or not.

"One part disembowels me while another slowly eats its way through the gas line. As I bleed out on the floor, it reminds me that I need to buy milk." - Jibble
#739 by Milan Brezovský
2012-04-19 00:32:57
http://uglycode.com
TOAD for MySQL (or rather its working db compare tool) was a game-changer for us - a bit tardy game, yes, but it's a nice way to deploy changes between environments.

Also, I'm sure #738 is missing at least 4 links in the sig - linkedin profile, old website, new website, and some client reference.

Parhelic Triangle is coming. Eventually.
#740 by TreeFrog
2012-04-20 01:51:07
#739 by Milan Brezovský

Also, I'm sure #738 is missing at least 4 links in the sig - linkedin profile, old website, new website, and some client reference.

That's how I usually find work.
"Fuck you! Here's my CV."

"One part disembowels me while another slowly eats its way through the gas line. As I bleed out on the floor, it reminds me that I need to buy milk." - Jibble
#741 by Wudi
2012-04-20 02:51:59
Dim conf As New Soap.TicketConfiguration

                With conf
                    .DeviceId = ""
                    .ExtensionData = Nothing
                    .Id = 0
                End With

                Dim st = New Soap.ServiceTicket() With _
                { _
                .TicketNumber = "0", _
                .Summary = "New Summary Test", _
                .SiteName = "Silent Hill", _
                .Board = "MDSIA", _
                .ServiceType = "New", _
                .Status = "1", .StatusName = "New", _
                .ProblemDescription = "New Problem Test" _
                }

then I do this with throws an exception
                st.Configurations(0).Id = conf.Id

"Object reference not set to an instance of an object."

Well no shit, st.Configurations(0).Id= Nothing, why isn't it setting it to conf.id?

WTF am I doing wrong?

Zep--

w0rd up!
#742 by Milan Brezovský
2012-04-20 03:19:08
http://uglycode.com
Have you tried JavaScript?

Parhelic Triangle is coming. Eventually.
#743 by Wudi
2012-04-20 03:26:26
You use what are are told to use when they pay you, in this case vb.net 2008

Zep--

w0rd up!
#744 by Milan Brezovský
2012-04-20 03:56:27
http://uglycode.com
Heh. Luckily I don't have any experience with VB.net, but don't you have a stinking debugger? Is the array element 0 a valid instance?

Parhelic Triangle is coming. Eventually.
#745 by BobJustBob
2012-04-20 04:09:27
Sounds like st.Configurations or st.Configurations(0) is null, and it's choking when you try to access the Id property of a null object.

BUYBUYBUY
#746 by yotsuya
2012-04-20 04:21:45
41 new posts and it's all about fucking XML.

#747 by m0nty
2012-04-20 04:33:32
http://tinfinger.blogspot.com
They would fuck XML if they could. Freaks.
#748 by Wudi
2012-04-20 04:50:05
yeah...st.Configurations, st.Configurations(0), st.Configurations(0).Id

all those = "Nothing" when I breakpoint there..cannot even set it when I click the little + by "st"

i'm starting to think I can't set that to a value and that it's set and then returned by the web service

here's how the property is defined, is it settable?

        Public Property Configurations() As Soap.TicketConfiguration()
            Get
                Return Me.ConfigurationsField
            End Get
            Set
                If (Object.ReferenceEquals(Me.ConfigurationsField, value) <> true) Then
                    Me.ConfigurationsField = value
                    Me.RaisePropertyChanged("Configurations")
                End If
            End Set
        End Property


Zep--

w0rd up!
#749 by BobJustBob
2012-04-20 05:03:38
Seems like it should work. Are you actually setting the Configurations property or are you counting on it to be set by the ServiceTicket constructor?

BUYBUYBUY
#750 by Wudi
2012-04-20 05:07:21
the bit of code where i try to set it is in #741

Zep--

w0rd up!
#751 by BobJustBob
2012-04-20 05:23:37
No, you're setting st.Configurations(0).Id. Which you can't do, because you said st.Configurations is null. You should try setting st.Configurations = new Soap.TicketConfiguration() first, or whatever gives you the collection you're looking for.

BUYBUYBUY
#752 by Gabe
2012-04-20 08:52:46
http://www.dartpublishing.com
This should be what the future of PlanetCrap's message board is. :(
#753 by Milan Brezovský
2012-04-20 13:08:34
http://uglycode.com
Introducing the whole new Stack Overflow - where half of the answers is "eat a bag of dicks".

Also, anyone played Jagged Alliance: Back in Action? Is it as annoying as their voice acting?

Parhelic Triangle is coming. Eventually.
#754 by Greg
2012-04-20 14:17:07
WTF am I doing wrong?

Using VB.Net...

#755 by Milan Brezovský
2012-04-20 20:53:13
http://uglycode.com
SwiftKey X is a shitty application. I mean, how much does their "natural language" algorithms suck if even after scanning my motherfucking gmail, they cannot give me a suggestion for "motherfucking"? Is there another dictionary I could download, English (REAL)?

Parhelic Triangle is coming. Eventually.
#756 by anaqer
2012-04-21 00:51:32
Since we're talking programming stuff - today I saw my first couple of pages of C# code. Granted, there was quite an obvious level of wizard usage involved, but even considering that, for a console program not an awful lot beyond the level of helloworld... jesus fuck, but it looked ugly and bloated all to hell. Line after line, everything seemed to extend way past the sacred 80 column limit. Even as I'm in the midst of a Java project, it looked positively horrifying. I'm sure it was just bad formatting or whatever, but it still put me off even thinking about picking up C# anytime soon.

¤ "Apple hates everyone now." - BJB
#757 by BobJustBob
2012-04-21 01:28:49
80 columns are for old people.

BUYBUYBUY
#758 by gaggle
2012-04-21 03:23:21
80 columns is still a valid guideline imo. Very wide code is not good design anyway (whether by nesting or very long variable names), and 80 wide means your code will fit nicely on my portrait-mode monitor.

It's not that 80 is particularly awesome, it just do happens 80 is good enough and a classic standard everyone can conform to.

"Roses are red, violets are blue, rubbish is dumped and so are you." : : - FML
#759 by BobJustBob
2012-04-21 03:44:23
If you don't have a widescreen monitor, you have no business writing code. You should be printing newspapers or cobbling shoes.

BUYBUYBUY
#760 by gaggle
2012-04-21 03:58:55
Code on widescreen in portrait is amazing. Tall and beautiful.

"Roses are red, violets are blue, rubbish is dumped and so are you." : : - FML
#761 by Greg
2012-04-21 04:58:08
Use a proportional font. :D

I know it's heresy but it's all I code in nowadays.

#762 by Greg
2012-04-21 04:59:40
Also I don't know how you could go from Java to C# and say C# is bloated. They're basically the same fucking language.

C# (and the .net framework, which kind of gets lumped in automatically) is awesome.

#763 by gaggle
2012-04-21 05:26:16
I actually like proportional font personally but I had to give them up as it was causing code disalignments, e.g. let's say this call is more than 80 chars wide:
callSomeFunction(longvariablename, arg2, arg3)

The easy neat way to break it into multiple lines is this:
callSomeFunction(longvariablename,
                 arg2, arg3)



But that doesn't work with proportional font:
callSomeFunction(longvariablename,
                 arg2, arg3)



The only way with proportional fonts would be to format it with each argument alone and tabbed in once:
callSomeFunction(
    longvariablename,
    arg2,
    arg3
)


And while that's not wrong it's a) a bit too verbose having to do that, and b) I'd never convince my coworkers to follow such a guideline.

Too bad, proportional fonts are nice to read. Maybe it's a solvable problem but I've yet to see an IDE that allows proportional fonts and correct indentation.

"Roses are red, violets are blue, rubbish is dumped and so are you." : : - FML
#764 by Milan Brezovský
2012-04-21 12:24:00
http://uglycode.com
I usually try to fit into something reasonable like 120 columns.

Gaggle - have you tried Komodo IDE? I don't know about proportional/indentation thing, but I definitely recommend that software.

Parhelic Triangle is coming. Eventually.
#765 by Wudi
2012-04-21 14:43:51
It's all the curly braces that make those languages look bloated.

Back to my problem with .Configuration

Them: "Oh yeah...um..yeah..that Class is in the API..but uh..not totally implemented yet...
next version..maybe"

Me: "Eat a bag of dicks."

Zep--

w0rd up!
#766 by Gunp01nt
2012-04-21 18:50:30
supersimon33@hotmail.com
#762 by Greg

Also I don't know how you could go from Java to C# and say C# is bloated. They're basically the same fucking language.

C# (and the .net framework, which kind of gets lumped in automatically) is awesome.



This and this.

She's probably had sex with like 4 different guys by now and has no idea who he is anymore, his face lost in a memory sea of dicks.
#767 by gaggle
2012-04-22 03:02:56
I used Komodo IDE (and Komodo Edit) for a long time and really liked it. I recently switched to PyCharm and ended up sticking with it.

"Roses are red, violets are blue, rubbish is dumped and so are you." : : - FML
#768 by Matt Perkins
2012-04-23 22:08:17
wizardque@yahoo.com http://whatwouldmattdo.com/
Oooh! I coding discussion!

Except, the code wasn't posted for Zep's example, just the part where the exception is thrown. Really helpful. I hope you don't give bug reports like that.

As for Java and C#...  Do you know more than one language? If you do, and  one of those languages is Java, you will pick up C# incredibly fast.

The 80 is still a fine mark. I still do 80 width and if my method/function is longer than a page, it almost assuredly needs to be broken down further. Smaller code chunks are better in the long run anyway.

"programmers talk from a very deep gnome cavern, full of gold mechanics" - wisdom from the ancients
#769 by Matt Perkins
2012-04-23 22:09:57
wizardque@yahoo.com http://whatwouldmattdo.com/
I am just finishing up a PHP project, on a somewhat related note, for a project on the side. Now that is a both really cool language (quickly make code!) and an incredibly annoying language (no methods for my classes?). I had to work in 5.3.2, so maybe the latest version fixes up some things, but I kind of feel like the language tops out at string manipulation. *shrugs*

"programmers talk from a very deep gnome cavern, full of gold mechanics" - wisdom from the ancients
#770 by Wudi
2012-04-23 23:14:29
I posted the code and the class/property that would not set.

Go smoke another bowl, hippy.

Zep--

w0rd up!
C O M M E N T S
Home » Topic: The Future of Planetcrap's Message Board

|«« - Previous Page - Next Page - »»|
P O S T   A   C O M M E N T

You need to be logged in to post a comment here. If you don't have an account yet, you can create one here. Registration is free.
C R A P T A G S
Simple formatting: [b]bold[/b], [i]italic[/i], [u]underline[/u]
Web Links: [url=www.mans.de]Cool Site[/url], [url]www.mans.de[/url]
Email Links: [email=some@email.com]Email me[/email], [email]some@email.com[/email]
Simple formatting: Quoted text: [quote]Yadda yadda[/quote]
Front Page (ATOM) • Submission Bin (4) • ArchivesUsersLoginCreate Account
You are currently not logged in.
There are currently 0 people browsing this site. [Details]