The Big Programming Thread - Page 574
Forum Index > General Forum |
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. | ||
Blisse
Canada3710 Posts
| ||
Ben...
Canada3485 Posts
On January 30 2015 02:25 Arnstein wrote: Yesterday I implemented UDP in Ada in a stupid way(by using streams). What would be the best way to do this? Can you elaborate at all? Are you restricted in what languages/tools you can use? Does it have to be Ada? How close to the "definition" of UDP do you need to go? Are you required to be able to send datagrams without connections (which is why streams are usually a no-no)? I can see using streams being pretty easy to kinda, sorta implement UDP because you'd essentially just send a structure of some type as your representation of a datagram. But again, that violates the idea that UDP doesn't require a continuous connection. Implementing UDP would certainly be an interesting thing to do. I've used the standard UDP stuff in a few programs (chat clients and the like), but never actually thought about implementing it. | ||
Nesserev
Belgium2760 Posts
| ||
Arnstein
Norway3381 Posts
On January 30 2015 08:37 Ben... wrote: Can you elaborate at all? Are you restricted in what languages/tools you can use? Does it have to be Ada? How close to the "definition" of UDP do you need to go? Are you required to be able to send datagrams without connections (which is why streams are usually a no-no)? I can see using streams being pretty easy to kinda, sorta implement UDP because you'd essentially just send a structure of some type as your representation of a datagram. But again, that violates the idea that UDP doesn't require a continuous connection. Implementing UDP would certainly be an interesting thing to do. I've used the standard UDP stuff in a few programs (chat clients and the like), but never actually thought about implementing it. No, I did it because I'm crazy, not because I had to The main problem I had was with buffer size, as it just received until the buffer was full. What tools in Ada would be better to use than streams? | ||
icystorage
Jollibee19343 Posts
iframes + javascript? | ||
Manit0u
Poland17053 Posts
On January 30 2015 17:47 icystorage wrote: What technology do you suggest I use if I want a copy paste html code to a customer's website to integrate for him to use? iframes + javascript? Could you be a bit more specific? You want to copy-paste pure html? What for? Creating content? You have wysiwyg editors that turn everything into html code if that's what you want. Something like http://ckeditor.com/ Or do you simply want the clipboard? http://zeroclipboard.org/ | ||
bangsholt
Denmark138 Posts
| ||
Manit0u
Poland17053 Posts
| ||
Nesserev
Belgium2760 Posts
| ||
Nesserev
Belgium2760 Posts
| ||
ZenithM
France15952 Posts
On January 31 2015 04:44 Manit0u wrote: "Learn a language" each month sounds like something great for students or young people with time on their hands. If you have a job, wife and kids it doesn't really sound feasible. That, and there comes a point where you really don't need to learn other languages, when you know already like 10 or 15 :D As for me, I don't really have time either, sorry :/ | ||
Ilikestarcraft
Korea (South)17709 Posts
| ||
Manit0u
Poland17053 Posts
Or maybe add it to the list? Seems like a decent book at a quick glance and weighs in under 400p so not that huge. What's nice about it is that it shows you the actual implementations of the patterns as well as benefits and downsides of each of them. | ||
Deleted User 101379
4849 Posts
On February 01 2015 01:32 Manit0u wrote: Since I've already read the Code Complete, I'll instead read Design Patterns by Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides. Been lying on my shelf for a while now and I never really mustered enough incentive to read it. Might as well do it now thanks to your initiative Or maybe add it to the list? Seems like a decent book at a quick glance and weighs in under 400p so not that huge. What's nice about it is that it shows you the actual implementations of the patterns as well as benefits and downsides of each of them. Be careful when reading Design Patterns (also called the "Gang of four book"). It's not a bad book, but it includes some patterns that should be avoided (e.g. Singletons) without really explaining the drawbacks of such patterns well enough. It's also more a book for beginners than for experienced programmers since most the patterns aren't really that advanced. I see that book mostly as a thesaurus that allows me to say "This code is using pattern X" and everyone roughly knows what I mean. | ||
Manit0u
Poland17053 Posts
On February 01 2015 03:28 Morfildur wrote: Be careful when reading Design Patterns (also called the "Gang of four book"). It's not a bad book, but it includes some patterns that should be avoided (e.g. Singletons) without really explaining the drawbacks of such patterns well enough. It's also more a book for beginners than for experienced programmers since most the patterns aren't really that advanced. I see that book mostly as a thesaurus that allows me to say "This code is using pattern X" and everyone roughly knows what I mean. Well, I'm not the most experienced programmer, especially in the OOP department since most of my experience is with structural programming (funnily enough though, all programming I've been paid for is OOP - C# and PHP). My knowledge of DP is seriously lacking (I mean, I'm probably using plenty of DPs in my work, but I'm not aware which exactly as I can't recognize them since I don't know them by heart). Seems like the right book for me as I really need to develop this "thesaurus" how you call it. P. S. And I already know that singletons are bad | ||
spinesheath
Germany8679 Posts
| ||
Blisse
Canada3710 Posts
| ||
Manit0u
Poland17053 Posts
On February 01 2015 03:58 spinesheath wrote: Just remember that it's an old book, written in a time OOP was relatively young and part of the content isn't all that advisable anymore. It's still pretty good as a reference on what a certain pattern is, not so much on which pattern to use. That's exactly what I need. Especially that I often need to work on legacy stuff that's been discontinued for years. If it'll help me better understand what's exactly going on in there it's worth it in my opinion. | ||
spinesheath
Germany8679 Posts
On February 01 2015 06:21 Manit0u wrote: That's exactly what I need. Especially that I often need to work on legacy stuff that's been discontinued for years. If it'll help me better understand what's exactly going on in there it's worth it in my opinion. Also keep in mind that legacy code often doesn't communicate (in class/variable names and comments) the design patterns it uses well - or not at all, and sometimes even communicates something entirely different. It's definitely worth reading. It's rather nice to read, too. | ||
LaNague
Germany9118 Posts
I personally find them completely useless as dont do anything with networking, i design and program for PC and integrated systems, but the fact that they have been offered to me makes me suspicious. Even IF i would have something to do with networking, why would i need to be certified in cisco protocols and maintenance, this seems very low level to me. Do these certs have some kind of special meaning in the IT world? Would you take them? | ||
| ||