But when choosing a language, advantages and disadvantages are entirely context dependent. The biggest advantage of Scala for me is that I can think and work in it better than I can any other language I've ever been exposed to.
Though sometimes I miss the old days when Pascal was all I knew and the language API was so limited that you pretty much had to roll everything yourself.
Meme:
(also knows as "Guess what day it is?")
Originator: SimonAndréForsberg & Jamal
Cultural Heigh: The 2nd Monitor
Background: On Jan 10 2014, the following remark was made in the chat room:
Simon André Forsberg: It's Friday, Friday. Gotta write code on Friday. singing
And then this...
> The Web site you are trying to access has been blocked by the Web Filter because it is in the Visual Search category, access to which has been blocked by the infrastructure team.
This switch should be an if statement instead.
if (input == null) // we didn't get an input from GetCustomEditorInput
{
switch (property.PropertyType.Name)
{
case "Boolean":
input = new ExpressFormsCheckBox()
...
I attempted to write a AVL Tree in a functional style and I was hoping to get it reviewed. This is my first review, so please forgive me if this is too general of a request. I was looking for the code to be clear and concise, any opportunity for improvement would be greatly appreciated! Thank you...
@bazola majority I see is two spaces as well, but I think that's because 4 spaces is pretty excessive. I think people only use 4 spaces because that's how many spaces make up a tab
@DanPantry pretty easy to make a GUI using Lua? I'm eventually going to need to make one for a business app to interact with my PL/pgSQL DB and I need it to work on OSX and Windows machine both
(but no other device)
I was going to learn Java but seems a bit overkill to make a simple GUI
I have this huge __init__ method, which is readable I think, but still doesn't feel right after watching Clean Coders videos (content of Clean Code book by Robert Cecil Martin).
How could I get rid of (refactor) the gigantic if..elif block in a nice, readable way? Or should I leave it as it is? D...
I am currently reading the book "Crack the Coding Interview" (5th edition). There is a particular problem in it saying Implement an algorithm to find kth to last element of a singly linked list. There are various approaches discussed to the problem. I am particularly confused by the recursive sol...
I am working in perl. My main module has many attributes in it (about 30). I need to call a function that is O(n) where n is currently 9 and I don't see it getting bigger than 20 in the next 5 years.
My question is this: I will need to call this function (determine_values) either 3 times, or ...
@RubberDuck I ended up replacing IRepository for IUnitOfWork on all IPresenter implementations. I'd put up the UoW for review, but transactions don't seem to work (I don't commit anything and it gets to db, and rollback doesn't do anything) so I might end up on SO first...
There are two different drivers for MySQL in ADOdb:
mysql
mysqlt
The first one (What you probably used) has no transaction support while the second one does.
Try using the mysqlt driver:
$conn = ADONewConnection("mysqlt");
in this question
Creating a vector of 10 positions and printing only prime numbers
the OP has posted 3 programs and has been told to post separate questions, would it be acceptable for me to edit the question to the code that does what the title says (and the tags)?
Meme: Stargree, Stargreed
Originator: Skiwi
Cultural Height: A conversation about a duck
Background: Stars shine in CR chat quite fluently, and it sort of means that we either find it funny or that we agree, if this were Facebook they would be Likes
> An integrated development environment (IDE) or interactive development environment is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and a debugger
@Donald.McLean I was starred earlier as saying - sarcastically - "in my day we didn't have your fancy shmancy coffeescript, we wrote REAL codes in javascript" or something to that effect
I don't have a view of "real programmers", if you program that's good enough for me :p
in this question
Creating a vector of 10 positions and printing only prime numbers
the OP has posted 3 programs and has been told to post separate questions, would it be acceptable for me to edit the question to the code that does what the title says (and the tags)?
@DanPantry Oh man. I recently updated my N++ to find that for some reason, global styles now apply to the Project and Function List panes... so now there are ugly white boxes around all the icons :(
I needed a way of attaching multiple repositories to a presenter. Given I already had an IRepository abstraction, coming up with an IUnitOfWork seemed the next logical step.
The code works, but I'm having issues with transactions because of MySQL (not sure if it's the driver or the underlying db...
I'm open to suggestions, but I'm going for functional over pretty, this will only be used by me & my graphic design partner to manage customers and projects
Hey @Mat'sMug... I hate to say this, but you might want to rethink mentioning this.
> The code works, but I'm having issues with transactions because of MySQL (not sure if it's the driver or the underlying db engine, but everything just goes through as if there was no transaction involved) - but that's irrelevant to the actual code - I'm sure I can hook this up to a SQL Server backend and it will work just as expected.
@DanPantry I guess it's quite hard to innovate new lambda syntaxes (Python doesn't count), although I think it's a good think that they re-use the same syntax as other langauges
@RubberDuck: My boss suggested .rar/.zipping up project files and time/dating them. I feel this is only slightly worse than what you have. So I feel for you.
Our application needed a function to sign out of Google. Unfortunately, there is no such API and I was forced to use an iframe to: http://accounts.google.com/Logout and a polling mechanism to see when the operation is complete.
I had a lot of doubts whether to put this code in a directive or in ...
How can a team of four people use Git (specifically Github for Windows) to push local changes to a shared network drive?
Right now (without Git) we have to copy the files from the network drive to our local machine, edit the files, and then re-upload them to the shared network drive. This is a ...
isn't there a shortcut in eclipse for a quick fix or something
like with resharper in visual studio if you get red line of death you can press ctrl-space and get a context menu to choose an appropriate action to fix the issue (i.e, 'move to new namespace', 'resolve X class from Y namespace')